Giter VIP home page Giter VIP logo

arduino-menorah's Introduction

arduino-menorah

Arduino-based electric menorah

Compiling

To build using make, install the arduino-mk package. I use Ubuntu, so the import path is relative where files live in the apt installation. Alternatively, one can import it into the Arduino GUI if they desire.

Hardware

Building the menorah is fairly straightforward, as is shown by the diagram below. All resistors in the diagram are 100 Ohm. The blue LED is the Shamash. Since the candles of the menorah are typically placed right to left and lit left to right, the circuit in the diagram below is oriented so the Shamash is on the right-hand side of the menorah. Then, when the LEDs light up, they light up from left to right.

Configuring

The amount of LEDs can be configured via the blue, green, and yellow wires connected to A0, A1, A2. The analog inputs are read digitally as GPIO inputs where the values make a 3-bit number where A0 is the least significant bit. To set a bit low, connect its corresponding wire to ground. The number to set is one less than the amount of LEDs to be lit. To change the number of lights, first set the enable pin (purple on the diagram) to ground (set the switch so all lights are off), set the desired number of lights, then flip the switch to set the enable pin to high. The lights will light up with a small delay between LEDs, then remain on until the enable pin goes low again or the Arduino is powered off.

Arduino menorah circuit setup

arduino-menorah's People

Contributors

domagalski avatar

Stargazers

Jonah Miller avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.