Charges during the day, blings (blinks) during the night.

Outdoor Christmas lights? year around? no batteries? Gigantic autonomous art installations? Yes it can be all yours.... add your own light or perhaps piezo buzzer for audio pranks.

- 5V solar cell
- 2.5V Super Capacitor with 10F provides energy storage
- Attiny85 runs the charge circuit and blinks the LEDs
- Completely sealed/waterproof in epoxy
- 3 pairs of LEDs blink depending on available storage voltage
   (2) green  blink at 2.4-2.5 volts
   (2) red blink at 2.1-2.5 volts
   (2) red using Joule Thief blink 1.1-2.1 volts
- Attiny sleeps between blinks and during charging consuming 2 micro amps
    2uA is really small; for instance, a single AAA battery can bleed 2uA for 42 years

Other Thoughts:
- Printed circuit board vs Drawn circuit board
    A sharpie pen is used to draw the circuits
- Super Capacitors… 100,000+ discharge cycles is 270 years of daytime charging
   Designing wondrous, chintzy gadgets into the future
-  perhpas design some type of real time clock so a number of lights can blink in unison at say midnight or only during the month of December.

Step 1: Circuit and Parts

The circuit is pretty simple. Attiny85 Microcontroller, Super Capacitor, a few LEDs. At first I just had a zenner diode protecting the super capacitor from over charging (past 2.5Volts) but the zenner bleeds!  Next I used the attiny85 to control charging and turn on one or more LEDs as the charge approaches 2.5 volts.

In the next couple of steps you can see how I etched the board. You may choose to order a printed circuit board OSHpark or you may draw your own circuit board as shown in the next steps.

Circuit Board from OSHPark. ~$8 per board

or make your own board using:
- copper clad board from Radio Shack
- PCB etchant solution from Radio Shack

Here are the electronic parts. I made a BOM through Mouser.  The total cost is $6.88
  • qty(1) Super Capacitor 2.5V, 10F. mouser
  • qty(1) Attiny85, DIP. mouser
  • qty(1) 8pin dip socket. mouser or Radio Shack
  • qty(2) TO-92 NPN transistors. mouser
  • qty(1) 1K resistors 0805. mouser
  • qty(1) 10K resistors 0805. mouser
  • qty(2) 100K resistors 0805. mouser
  • qty(1) 22pF capacitor 0805. mouser
  • qty(2) n-channel mosfets SMD. mouser
  • qty(1) zenner diode 2.4v smd. mouser
  • qty(1) diode smd. mouser

Next you may need these parts:
Adafruit Round Solar Panel, $2.95
Epoxy Mold , from TAP plastics, $11.95

Other Schematic Notes
       RESET  1|            |5  VCC
       A3 PB3  2|            |6  PB2 A1 (SCK)
       A2 PB4  3|            |7  PB1 (MISO) PWM
            GND  4|            |8  PB0 (MOSI) PWM
The capVoltage (PB2) is sensing the voltage between the zener diode and 100K resistor. I manually measured the voltage across the super capacitor and across the 100K resistor and calculated the ADC (@ pin PB2, capVoltage) 
****this is required for testing as the attiny85 does not have a Serial Monitor to tell you what it is reading*****

Here is an abbreviated table of measurements:
Capacitor(V)      100k(V)       estimated ADC
1.1v                    0.26v           0.26/1.1 * 1023 => 242
2.03v                  1.01v           1.01/2.03 * 1023 => 509
2.49v                  1.42v           1.42/2.49 * 1023 => 583
this works because the zenner voltage leaks current depending on the super capacitor voltage where as the 100k resistor draws current at a more predictable rate.  In lieu of using the traditional breakdown voltage of the zenner (2.4V specified) I'm using the fact that the diode drains a lot of current (even below 2.4V!)... this happens in somewhat a predictable manner (per the table above).
You must meditate on this for awhile. 

Digital input PB3 drains to ground when the daylight is not strong enough to open the mosfet gate (Q2). This works really well as solar cells will maintain relatively high voltage with no current and little daylight. It has to be pitch black for the mosfet to drain PB3!

Solar Bling is on display at the AFRU Gallery ByteMe 3.0 exhibit for the month of January 2014.<br> <br> AFRU Gallery<br> 534 Southeast Oak Street, Portland, 97214<br> <a href="http://www.afrugallery.com/event/byteme3/" rel="nofollow">http://www.afrugallery.com/event/byteme3/</a><br> <br> <img alt="ByteMe" height="400" src="http://www.afrugallery.com/wp-content/uploads/2013/12/03_Small.jpg" width="600"> /&gt;<br>
<p>Great project!</p><p>How did you make the attiny85 check if the capacitor is under 1.1v volts, if the attiny85 itself requires over 1.8v to operate?</p>

About This Instructable




Bio: just have to figure out how all these things go together....
More by hydronics:Fish eye Ellie's Rotary Dial Mini-Split 7-day Thermostat for a tiny house 
Add instructable to: