I am finishing up going through the "Getting To Blinky 4.0" series of videos. My first board order has been sent to OshPark and I am eagerly awaiting its arrival so I can badly solder it together
.
That being said I have been thinking about what I want to do for my second board. I was thinking of something I could suction cup to the bathroom mirror. It would have a single button that you would push and it would light an LED for two minutes. Or maybe flash a bunch of LEDs (LEDs are like googly-eyes... more is always better
). My hope is that it will help prevent the kids from skimping out on toothbrushing.
While I could probably do this with a 555/556 (1 monostable for the 2-minutes and a bistable for the blinking), it would require a rather large capacitor and/or high value resistors that would make it somewhat impractical.
That being said I went to digikey and found the cheapest micro that is in a package I think I could handle: PIC16F54. I threw together a quick schematic on upverter to flesh out the concept, and hoped someone might be willing to give some feedback. In particular I want to make sure I could program this in circuit (with a PICKIT) and the button would work ( I based it on the scematic I found here:
http://ww1.microchip.com/downloads/en/DeviceDoc/41584A.pdf ).
I only put a few LEDs on the schematic, but I am leaning toward adding more (maybe 8 total), but I would not put any on the ICSP pins. I will probably limit it to lighting only 1 or two at a time.
I am planning on powering it from a CR2032 or similar.
I have also attached some pseudo code to run on the PIC.
My expectation is that everytime the button is pressed it will start executing from the top of main, is this right?