High-Low Binary LED Arduino Game

About: I'm an Electrical Engineer who dabbles in just about everything. By trade, I'm a controls engineer and design machines for the largest manufacturing plants in the world. At home, I make a lot of embedded sys...

This is a pretty simple game:  The Arduino shows a number in binary on the green LEDs.  You then guess whether your green number is bigger than the computer's number.  The Arduino shows its number on the red LEDs.  If you were right, you will see a green flashing pattern.  If you are wrong, you'll see a red flashing pattern.

I designed this project as a workshop for people in a design competition I've been organizing.  This instructable is a brief overview of the workshop.

Binary is pretty easy to read.  Google "Count binary on fingers" to see how.

Good luck!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Parts

You will need:

Arduino or clone

3 green LEDS
3 red LEDs
6 120 ohm resistors
2 10k ohm resistors

usb a to b cable
jumpers (or 22ga solid wire)

Step 2: Wiring

I feel the pictures explain this better.  Please click each picture and then hover over the different yellow rectangles. 

The wiring is as follows:

Green LEDs - pins 2, 3, 4
Red LEDs - pins 5, 6, 7
"Swiches" - pins 11 and 12

Step 3: Programming

The source code is available here: http://code.google.com/p/csuopendesignproject1/downloads/list

Simply open it in the Arduino IDE, compile it, and upload it to your board.  You are done!

Step 4: Afterthoughts

The code is very well commented on.  This is so people unexperienced with Arduino can follow along pretty easily.  A great deal more information was shared during the workshop, but this serves as a basic tutorial.

Be the First to Share


    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • STEM Contest

      STEM Contest