I wan to build an led flasher using a 12f683 and some sort of dial that I can turn to adjust the flash rate. I want to be able to turn the dial or wheel to make the flash rate increas or decrease accordingly. Can anyone help with get start with some sample code.
Thanks,
Rb8720
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
Posted: Mon Oct 01, 2007 2:39 pm
Sorry, no code. It looks simple enough.
Looks like you have a A to D converter and a timer.
1)setup timer, on trip of timer, toggle LED
2)setup A to D for correct pin
3)wire a 10k pot to A to D like the PICDEM 2 plus schematic show.
R16
http://ww1.microchip.com/downloads/en/DeviceDoc/PICDEM%202%20Plus%20RoHS.pdf
In software read A to D, when it changes, have the new value set a new value in timer.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum