3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED Hanukkah Menorah

Step 5Source Code

Update: board files and code are available here https://github.com/szczys/LED-menorah

I have written the source code so that it performs in this manner:

  • Plug in the power and the device starts up, lighting the Shamash (candle in the middle).
  • Each button push lights an additional candle from right to left, allowing for the prayer to be said before the next candle is lit.
  • After about 1 hour the lights will "burn out" when the device goes into power down mode. In this state very little power is consumed and the device will wait until the next night of Hanukkah.
  • One button push will wake the device up from sleep and light the Shamash.

This source code is written in C for the avr-gcc comiler. I have also included a HEX file that can be burnt directly to a tiny13 without the need to be compiled.

The ATtiny13 uses the factory fuse settings:
hfuse: 0xFF
lfuse: 0x6A
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
41
Followers
6
Author:barney_1