Not sure what might be going on
I have 2 projects and Team Pitch Count Receiver and I was able to get the PWM working 100% with the excellent help from Martin.
Now I went to my Pitch Count Transmitter and used the same Port E0 as the other project and soon as the PIC is loaded my Pezio rang load and for every.
I placed my digital scope and sure enough the setting of Enabled cause the port to active.
I have 2 pictures and the Program enclosed. I have looked to see I can see Port E0 being activated. When I watch the CHIP I never see it light I even put a LED on the flowcode and it never triggered.
The siginal is low but the Piezo activates full volume.
John
PWM1 --- Causes Pulses
Moderator: Benj
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
PWM1 --- Causes Pulses
- Attachments
-
- Pitcher count Master_017_July 25_JL.fcfx
- Flowcode
- (118.41 KiB) Downloaded 264 times
-
- Disabled
- PWM1 Disabled.jpg (90.24 KiB) Viewed 6041 times
-
- Enabled
- PWM1 Enabled.jpg (96.55 KiB) Viewed 6041 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PWM1 --- Causes Pulses
hi John,
I'm not following what the issue is?
Can you go in to more details please?
Martin
I'm not following what the issue is?
Can you go in to more details please?
Martin
Martin
-
- Posts: 315
- Joined: Sun Jun 23, 2013 1:29 pm
- Has thanked: 28 times
- Been thanked: 61 times
- Contact:
Re: PWM1 --- Causes Pulses
Hi,
Sorry but I don't understand what your asking
But looking at your scope screen, if I'm reading it right, you look like you have pulses of 5mV (20mV per division) and you are asking use why you don't get an LED to work yes/no?
Matt
Sorry but I don't understand what your asking
But looking at your scope screen, if I'm reading it right, you look like you have pulses of 5mV (20mV per division) and you are asking use why you don't get an LED to work yes/no?
Matt
-
- Flowcode v5 User
- Posts: 211
- Joined: Tue Feb 19, 2013 9:51 pm
- Has thanked: 72 times
- Been thanked: 177 times
- Contact:
Re: PWM1 --- Causes Pulses
Maybe set the pin the piezo is on to output low at the beginning of your main? A pull down resistor might help too.
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: PWM1 --- Causes Pulses
Hello
I have the current program attatched.
When I have the piezo connected and I "Enable" the PWM port E0 has a signal that activates the Piezo.
I was able to capture 2 screen images
1. Port E0 with PWM "Disabled" ----- Clean Port
2. Port E0 with PWM " Enabled ---- Port has a pulse.....
I did not have to add the Actions for the PWM just making it Enabled cause the action. I can't figure why the Port E0 would produce a Pulse just by Enable the unit.
I guess it is hard to follow with out a PIC to load and see.
John
I have the current program attatched.
When I have the piezo connected and I "Enable" the PWM port E0 has a signal that activates the Piezo.
I was able to capture 2 screen images
1. Port E0 with PWM "Disabled" ----- Clean Port
2. Port E0 with PWM " Enabled ---- Port has a pulse.....
I did not have to add the Actions for the PWM just making it Enabled cause the action. I can't figure why the Port E0 would produce a Pulse just by Enable the unit.
I guess it is hard to follow with out a PIC to load and see.
John
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: PWM1 --- Causes Pulses
Hi
That's what the PWM component does, it outputs the pulses when you enable it. Based on the properties that you set for it.
(You have set Channel 3, Port E.0)
Hope that helps.
Leigh
That's what the PWM component does, it outputs the pulses when you enable it. Based on the properties that you set for it.
(You have set Channel 3, Port E.0)
Hope that helps.
Leigh
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: PWM1 --- Causes Pulses
What you could to is after PWM1 Enable,
place a SetDutyCycle with a duty of 0 then buzzer will only work when a SetDutyCycle of suggested 62 is reached.
Martin
place a SetDutyCycle with a duty of 0 then buzzer will only work when a SetDutyCycle of suggested 62 is reached.
Martin
Martin