Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - hemiguy

Pages: [1]
1
Technical support / alternating on off leds
« on: August 08, 2012, 07:59:47 AM »
Hi.
I am using a Nano-10 for led illumination on a vision system. I have a pot on each of the the two two analog inputs to vary the intensity,  then alternately turn on/off the two PWM outputs to create alternate flashing banks of leds. I'm using a .01s clock on each line for timing. Custom functions control the input and output.

Its working ok, but now I want to use a couple of digital inputs to change the timing for high medium low flash rate.
I'm not sure how to go about it.  I could add another line with a different clock rate, but they would all count as it goes through each loop.
My attempts at using timers have not been good. Does anyone have a suggestion?
Thanks,
John


Pages: [1]