How To:2 Button 2 Different Led Sequences

1,987

22

3

Introduction: How To:2 Button 2 Different Led Sequences

About: I love working with electronics!!! I love working with electronics, laptops, and building things!!! I just started working with Arduino as of December 30, 2016

THIS IS A CODE IN WHICH HAS 2 DIFFERENT LED SEQUENCES FOR TWO SEPARTE BUTTONS! ENJOY!!! XD

Step 1: Hardware Required

(12) light emitting diodes [leds]

- divided into 4 sets of 3 with different colors

(2) 10k resistors

(2) momentary button switches [4 pins]

(1) Arduino uno R3

(1) solderless bread board

(1) usb cable to power the board

(9) bread board jumper wires

Step 2: Assembly:

now put everything together according to the picture [forgot to take progress pictures]

-if the picture is too complicated follow the assembly steps in my code.

Step 3: The Sketch [code]

to download the sketch click the link below.

- the title of the file is button44.

--------------------------------------------------------------------------------------------------------------

DOWNLOAD LINK:

http://wherearethemods.weebly.com/uploads/6/9/5/0/69503177/button44.ino

Step 4: Enjoy

THANKS AND ENJOY THIS 2 LED 2 SEQUENCE CODE FOR ARDUINO UNO.

Again just started working with Arduino!

XD

Make it Glow Contest 2016

Participated in the
Make it Glow Contest 2016

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    3 Discussions

    0
    tony gard
    tony gard

    3 years ago

    how do i connect led to pushbutton without using bread board???

    0
    maewert
    maewert

    4 years ago

    Very nice instructable.

    By the way, the Arduino inputs have internal pull up resistors that you can turn on so that you can eliminate the 10K resistors. Here is a link that explains a lot about them: https://www.baldengineer.com/arduino-internal-pull...

    Best Wishes!

    0
    alexb369
    alexb369

    Reply 3 years ago

    Thanks for the tip ill definitely use it in the future