Instructables
Picture of Solar Bling
SAM_0366.JPG
SAM_0387.JPG
SAM_0402.JPG
SAM_0358.JPG
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.


Specifications:
- 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.


 
Remove these adsRemove these ads by Signing Up

Step 1: Circuit and Parts

Picture of 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!


hydronics (author) 3 months ago
Solar Bling is on display at the AFRU Gallery ByteMe 3.0 exhibit for the month of January 2014.

AFRU Gallery
534 Southeast Oak Street, Portland, 97214
http://www.afrugallery.com/event/byteme3/

ByteMe />
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!