Had another project idea (not my final year...). It's a solar powered garden light. I've got several variations in might, but what got me started on this line of thought was a spotlight.
Basically, was thinking a small solar panel could charge a NiCad battery pack (3.6 or 4.8 volts, have some 6 volt/50ma panels), through a diode. I could use the ADC to measure the solar panel's output (before the diode, so I'm not testing the battery) to sense darkness, then turn on some LEDs. Brown out detector on the MCU would shut it down when the batteries get low.
New to MCUs, and haven't messed with the ADC or brown-out detection, so not entirely sure this scheme will work. Going to use an ATtiny13v, which will work down to 1.8 volts. Believe the LEDs are 3.7 volts 20mA, white 15 degrees, 80,000 mcd (yeah bright).
Anyway, if this works out, can do simulated firelight, RGB, chasers, pulsers, and well any other LED effect I can dream up (fertile imagination...).
So, any pointers or directions on the ADC and Brown-out? The data sheet makes it sound so simple, but...
Basically, was thinking a small solar panel could charge a NiCad battery pack (3.6 or 4.8 volts, have some 6 volt/50ma panels), through a diode. I could use the ADC to measure the solar panel's output (before the diode, so I'm not testing the battery) to sense darkness, then turn on some LEDs. Brown out detector on the MCU would shut it down when the batteries get low.
New to MCUs, and haven't messed with the ADC or brown-out detection, so not entirely sure this scheme will work. Going to use an ATtiny13v, which will work down to 1.8 volts. Believe the LEDs are 3.7 volts 20mA, white 15 degrees, 80,000 mcd (yeah bright).
Anyway, if this works out, can do simulated firelight, RGB, chasers, pulsers, and well any other LED effect I can dream up (fertile imagination...).
So, any pointers or directions on the ADC and Brown-out? The data sheet makes it sound so simple, but...