Attiny 85 Led Ladder Game




Introduction: Attiny 85 Led Ladder Game

First f all I would like to point out that this project is not made by me, (I made the device shown here following another instructable).The sole purpose of this instructable is to correct lots of the mistakes the previous project had.This is the link for the original one:

Step 1: Gathering the Materials

    --Parts needed--

    • 1*attiny85 microcontroller
    • 1*tactile switch
    • 1*1kohm resistor
    • 1*slide switch
    • 12*leds (3 red, 3 yellow, 3 green and 3 blue ones)
    • 1*battery holder
    • 1*arduino uno (the programmer)
    • 1*10 uf electrolytic capacitor

    As you can see I have used an uncommon type of led in this project.These are 1.8mm leds and they are much smaller than the common ones (5mm, 3mm).They are also much harder to find, so I would recommend to use more casual sizes like 3mm.I used these just because I could stack them together in order to save more space in the circuit board.Also I would recomend (if you want to make this project the same size as I did) to go with a resistor the same size as the one in the picture witch is about 4mm wide (most resistors have an 6mm width), this actually helps a lot while soldering.For the last two parts refer to step 4

    Step 2: The Scematic

    This is the part where this instructable differentiates form the original one, all the changes i made revolve around the way the leds are charlieplexed.The original schematic had a lot of errors witch have (probably) been solved.The resistors 2,3,4,5 are optional and that is why they are not mentioned on the parts list.They are meant to control the brightness of the leds.The original article mentioned the use of an 15kohm resistor in place of r1 (the 1kohm one that I use), apparently other values work too like 10k or even less.
    • IMPORTANT SIDENOTE!!!!!!! there is a connection between two wires (I am talking about the schematic) only where there is a dot otherwise they do not connect (this was for the less experienced users)

    Step 3: The Code

    • The code has remained untouched.The credits (as far as I am concerned) belong to user 'lendss' who reated this project
    • If you experience any problems while compiling the code visit the original instructable for help

    Step 4: Uploading the Code to the Attiny

    1. This step requires the use of an arduino uno in order to act as a programmer for the attiny chip.You will also need a 10 uf electrolitic capacitor
    2. You will also need to have installed the arduino IDE (version 1.6 and higher)
    • At first open the preferences menu on the arduino software.
    • Find the "Additional Boards Manager URLs" and paste the following URL:

    • Hit "ok" and open "Boards Manager" on the "Tools" menu.
    • From the boards manager you will see an entry for"Attiny", install it.
    • Connect your arduino.
    • From "file>examples"select "arduinoISP" and upload it to your board.
    • Disconnect your board and start wiring it to the ic as shown in the pictures
    • First connect the capacitor to the arduino with the positive pin to the reset pin and the negative to ground
    • Then connect the arduino to the ic like it is done in the pictures
    • Pay close attintion to the wiring:
    • Arduino pin 10 goes to attiny pin 1
    • Arduino pin 11 goes to attint pin 5
    • Arduino pin 12 goes to attiny pin 6
    • Arduino pin 13 goes to attiny pin 7
    • Arduino ground goes to attiny pin 4
    • Arduino 3.3v goes to attiny pin 8
    • Connect the arduino board to your computer.
    • Then open "Tools>Board" and select "Attiny"
    • Open "Tools>Processor" and select "ATtiny85"
    • Open "Tools>Clock"and select "1mhz internal"
    • Select the port your arduino is connected through "Tools>Port"
    • Go to "Tools>Programmer" and select "Arduino as ISP"
    • Upload the code

    For more information visit this link:

    Step 5: Soldering

    As far as creating the device itself the whole process is pretty straight forward.The way way everything is wired and placed is almost identical to the schematic, so it should not be that hard

    Step 6: End

    If everything has been done correctly then it should be fully functional.For any questions leave a comment and I will reply as soon as I can.

    1 Person Made This Project!


    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    7 Discussions


    3 years ago


    Could you please tell me where you got the code from, as this is my code and has been stolen before. I don't mind sharing it at all, but I do mind the copyright notice and my name being removed.
    The original project was shared by myself here:
    and the original code is


    Reply 3 years ago

    Sorry, just saw you linked to the 'original' post, i missed that bit. That post has been removed as he copy/pasted my code removing my name, and refused to co-operate with myself or the instructables staff


    4 years ago

    I think it is very important that you show us a picture of the other side of the pcb. Thanks.

    Kostas Sarioglou
    Kostas Sarioglou

    Reply 4 years ago

    On the schematic L1,L2,L3 are red L4,L5,L6 are yellow L7,L8,L9 are green L10,L11,L12 are blue

    Kostas Sarioglou
    Kostas Sarioglou

    Reply 4 years ago

    Well.....I would, but as you can see the battery holder is blocking the view.Dont worry though, the schematic resembles a lot the actual layout I created on the pcb so it will not be that difficut to recreate it.


    4 years ago

    In addition, it would be great if you could indicate on the schematic, which color of led goes where?