Shop OBEX P1 Docs P2 Docs Learn Events
continuous pwm...again — Parallax Forums

continuous pwm...again

ArchiverArchiver Posts: 46,084
edited 2002-12-19 13:35 in General Discussion
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
Sign In or Register to comment.