Connecting pushbutton with Arduino and making light patterns

It's so cool if we press a button and all the LEDs dance on our command. So let's get started!

Mar 5, 2021

1365 views

0 respects

Components and supplies

1

Arduino UNO

1

5 mm LED: Red

8

Resistor 220 ohm

1

Resistor 10k ohm

1

Push Button

1

Male to male wires

Tools and machines

1

Arduino IDE

Project description

Code

Upload this code and see results by simply pressing the pushbutton

c_cpp

I highly recommend to type this code (in short) so you can get familiar with all the commands that are used in this code!

Downloadable files

Connection of Push button with Arduino and LEDs

This connection is for example. You have to do connection as commented in the code. This code is to show you only the connection! Do It Yourself!

Connection of Push button with Arduino and LEDs

Image

Connection of Push button with Arduino and LEDs

This connection is for example. You have to do connection as commented in the code. This code is to show you only the connection! Do It Yourself!

Connection of Push button with Arduino and LEDs

Image

Comments

Only logged in users can leave comments

rudraksh2008

0 Followers

0 Projects

0