Introduction: How To:2 Button 2 Different Led Sequences

Picture of How To:2 Button 2 Different Led Sequences

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

Step 1: Hardware Required

Picture of 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:

Picture of 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]

Picture of 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

Picture of Enjoy

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

Again just started working with Arduino!

XD

Comments

maewert (author)2017-01-09

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!

alexb369 (author)maewert2017-03-26

Thanks for the tip ill definitely use it in the future

About This Instructable

1,752views

22favorites

Bio: 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
More by alexb369:How To:2 Button 2 Different Led SequencesHow To: Really Cool Led Script for Arduino
Add instructable to: