Assignment 3

Functioning of 3X3 LED Grid using Arduino microcontroller

In this programming assignment we got to learn basic programming along with its application in ARDUINO microcontroller.The objective was to run our names by switching 9 LEDs ON/OFF along with push button.Subsequent tasks involved:-
1. With a press of one push button, the letters of the name blink every 1000ms.
2. With press of another push button, all LEDs blink ON and OFF with a delay of 1000ms 5 times.


This entire process has to be documented and a video has to be uploaded on the webpage.

Components Required

We need to the following components to build this setup:-

Component              No.

Breadboard                      1

LEDs                            9

Push buttons                     2

Arduino Kit                       1

Resistors                        9

Jumper wires                   ~22

Laptop                          1



1. Building the Circuit

The schematic circuit diagram below shows the way I have build the circuit.The longer end or ANODE is indivual for each of the LEDs whereas the Ground is mostly common for all.

The subsequent images shows the steps of building up the circuit
Connections were made according to the above diagram and tested by uploading the code from arduino IDE

2. Programming in ARDUINO

Prior to this task I had only little insights on C++ programming, this helped me little into programming the code also I had help from Ayush my teammate.
Click here for Arduino Code

  • Intialization of all input ports

  • NOTE:- The Serial.begin(9600)runs the data rate at bits per second.

  • Defining the loops and setting up the function for blinking the LEDs 5times at the delay of 1000ms and also iterating the number of letters according to the inputs.

  • 3. Final Working Video

    Now the completed task videos are embeded below.Have a look at it.

    Name Blink (VINAY)



    LED BLINK Five Times