PWM sounds simple in theory, but...
MarkS
Posts: 342
I was trying to dim an LED. It sounds simple. You keep it on, I'm assuming in a loop where you keep outputing a '1', for a certain amount of time and then do the same thing, but turn it off for a certain amount of time and repeat ad nauseum. I couldn't get it to work though. I'm running the PLL at x16, so 80_000_000 = 1 second. That info really does not help too much. If I wanted to dim an LED by x%, what do I do?
Comments
RoboGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"
Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.jameco.com
·
propeller.wikispaces.com/PWM
Thanks!
I don't know, I'll check ..
----
Edit: Yes TWO typos... generally happens when "improving" text without re-checking :-(
Called "Vers 4.0" now
I also added an example in the main routine: Ramp-Up/Ramp down
Post Edited (deSilva) : 1/1/2008 11:28:12 AM GMT
where the 100 should be a 10_000?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm new to the propeller!
As you say bulkhead! Improvement to the worse ...
Luckily the comment shows the issue.
I also had a misspelled variable
right?
BTW - Happy New Year - David