continuous pwm...again
Archiver
Posts: 46,084
Well here I am again. Thanks first off to everyone for the help. New
issue, my little project (read a button then fade up or down) had a
sudden last minuet demand. Seems the theatre the show goes to next
does not have a main curtain and the lighting designer wants the
light to go out on it's own after 25 min. So my stamp question:
counting; as of now I have a For...Next loop that after setting the
pin high (driving a MOSFET) goes for 50 000 counts with a Pause of
30. 50 000 X 30 = 1 500 000 which divided by 60 000(milliseconds in a
minuet) = 25. After the loop it goes to a pwm fade out. Is this right?
Second question: is there any way of making the Cycles part of PWM
longer? E.g. longer fade out. I have to do this with just the stamp
due to space restrictions in the lantern and time restrictions. The
truck leaves with the set for Detriot today(Dec 19). No time to use
Al Williams PAK( it came in yesterday Al, thanks). Ian
issue, my little project (read a button then fade up or down) had a
sudden last minuet demand. Seems the theatre the show goes to next
does not have a main curtain and the lighting designer wants the
light to go out on it's own after 25 min. So my stamp question:
counting; as of now I have a For...Next loop that after setting the
pin high (driving a MOSFET) goes for 50 000 counts with a Pause of
30. 50 000 X 30 = 1 500 000 which divided by 60 000(milliseconds in a
minuet) = 25. After the loop it goes to a pwm fade out. Is this right?
Second question: is there any way of making the Cycles part of PWM
longer? E.g. longer fade out. I have to do this with just the stamp
due to space restrictions in the lantern and time restrictions. The
truck leaves with the set for Detriot today(Dec 19). No time to use
Al Williams PAK( it came in yesterday Al, thanks). Ian