I wanted to make an LED menorah for a friend. In planning this I decided I wanted to keep the parts-count very low and use components I had on hand. I think I have achieved my goals and couldn’t be happier at the outcome of this project.
Please visit my webpage for more on this and other projects:
Disclaimer: I am not Jewish. I have done a bit of Internet research about the Hanukkah Menorah in order to learn the principles behind it’s design, and how the candles are lit. I respect this religion and mean no offense in the case of any errors I have made regarding this tradition. Please contact me and I will be happy to make changes to this instructable.
In the design process I set several goals:
- Controlled by an AVR ATtiny13
- Interfaced with 1 push button
- Driven by ~3v of unregulated power
- Incorporate an auto-off function to simulate the candles burning out each night.
I chose the tiny13 because I had several on hand just collecting dust. In order to control 9 leds without a shift register (a separate part) I needed to implement a charlieplex.
A schematic is available below.
For those electrical engineers reading this, I have two points to make:
1. I did not use a pull-up resistor for the reset pin, it is left floating. This is not a critical application so if we have a random reset it’s not the end of the world.
2. I did not use a decoupling capacitor because I’m using unregulated power and I don’t think it’s essential
- Power supply that puts out between 2.7v and 3.3v. I am using 2 AAA batteries but I have also run this off of a CR2032 3v battery.
- 9 LEDs (I used white)
- 4 resistors (22ohm – Red,Red,Black)
- 1 momentary push button (these are common, I salvaged mine from a broken stereo system)
- 1 pin header (2 pins)
- 1 DIP socket (8 pins) – this is optional as you could just solder the microcontroller directly onto the board.
- 1 AVR ATtiny13 microcontroller
- 1 Circuit board of some type
Note: I etched my own circuit board because I am set up to do so. That being said, this should be a pretty easy project to do point-to-point soldering on some perf board.
Update: Board files and code are available here https://github.com/szczys/LED-menorah
As I said in the last step, you can either etch your own board, or use perf board.
I have pictures of the etched board as well as the Eagle CAD pictures of the artwork and layout. I used one jumper (seen in red on the second picture) wire. I could have avoided this and gone with a completely one-sided board but it would have meant running a trace in between pads of and LED. For ease of the etching process I decided one jumper was best.
In case you’re wondering, I use the toner transfer method with cupric chloride as my etchant.
The most important thing during assembly is the polarity of the LEDs. With most designs the polarity of the LEDs would all be in the same direction for for ease of PCB design I have flipped half the them. This means you must follow the component layout graphic to ensure the flat side of the LEDs are facing the appropriate direction.
1. Solder a jumper wire in place. I used the clipped lead from a resistor.
2. Bend the LEDs at a 90 degree angle and solder in place. Be careful of the polarity. All of the LEDs should be at the same height except the LED in the middle. This is for the light called the Shamash and should be higher than the rest.
3. Solder the 4 resistors in place.
4. Solder the momentary push button in place.
5. Solder the IC socket in place. (if you are going to solder the IC directly to the board you should probably program it first)
6. Solder the 2-pin header in place. This will be used for power. Note that I soldered mine the underside of the board so the power can be connected to the back. I will also use this to stand the menorah upright.
Tip: To solder a pin header to the underside of the board I slide the black plastic up the pins about half way, solder the pins in place, then slide the plastic back down.
For more Detail: LED Hanukkah Menorah using Microcontroller ATtiny13
This free embedded project also found using: