Arrow Indicator Circuit – Arduino Project

(View on Desktop/Laptop for Best Experience)

This project mainly aims to cover a part of Basics regarding Arduino IDE and Interfacing of Arduino with other components. Let’s get straight into building this project !

Table of Content :
  • Description of the Project
  • Components Needed
  • Understanding & Procedure
  • Explanation of Code

1. Description of the Project

Problem Statement :

Our main objective for the project is to make a Arrow Keypad like thing in order to control the LEDs. The LEDs indicates the direction corresponding to the button which we pressed on the keypad

Fig.1 Arrow Keypad
Fig.2 What LED pattern should appear when button is pressed

2. Components Needed

  • Arduino Uno
  • Breadboard
  • 4 Red LEDs 
  • 4 Push Buttons
  • 4 Resistors  (220 ohms)
  • Jumper Wires

Reference Article Alert !!

How to check Resistance value of your resistor? – Refer this Article : Dealing with Resistors

3. Understanding & Procedure

- Understanding

Note that, there are no connections among the LEDs

  • Each LED is separately connected to Arduino
  • Similarly each push button is also connected separately to Arduino Board
  • But the connection between the two (LED and pushbuttons) is done through Arduino. That’s the job of a Microcontroller –> ‘To connect the things as instructed in code’
Fig. Each LED and each pushbutton connected separately

We will see how to connect each component with Arduino

3.1 Single LED Connections :
  • The adjacent circuit diagram shows the connections that are to be made to control LED with the help of Arduino
  • The diagram has been prepared with the help of TinkerCad (Simulation Software)

*Code for the Blinking of LED can be found in our GitHub Repository – Click Here

3.2 Single Push Button Connections :
  • The pushbutton serves as an INPUT for most of the times.
  • It gives a value of 0 or LOW when not pressed and gives a value of 1 or HIGH when pressed.
  • There is another way to connect a pushbutton i.e. by adding a Pull-up Resistor.  

*Code for the usage of Push Button is also added in our GitHub Repository – Click Here

3.3 LED + Push Button :
  • Now that, we have learnt to interface button and LED separately, it’s time to interface them with Arduino at once.
  • Check the code. The comments will guide you to understand the idea behind each line

*Code for the ‘controlling LED with Push Button’ is also added in the GitHub Repository – Click Here

- Procedure

After Being Comfortable with the above three mini-projects, the main project is very easy to do as we have do the same thing, but now, it has to be done multiple times.

Step-1 :

We need the LED matrix type setup to be in a square shape (diamond shape). So accordingly we arrange setting up the LEDs and corresponding resistors to protect those LEDs

Reference Article Alert :

How to choose correct Resistor for a specific coloured LED ? – Refer the Article : Dealing with Resistors

You will learn that –> It is safe to use a higher resistance resistor than the required value. So we go for 220 ohms.

Connect the LEDs as learnt in Section 3.1

Step-2 :
  • Attach the 4 Push Buttons to the breadboard in a keypad fashion. 
  • The connections of each button has to be done with Arduino as explained in Section 3.2

Overall Diagram in TinkerCad can be shown as :

The same thing in Reality looks something like :

4. Explanation of Code :

The Complete Code for this Project can be found in the GitHub Repository by name ‘Main Project Code’ – Click Here

  • We are using some kind of nomenclature here in order to properly keep a track of which LED we are talking about or else which button we are referring to.

Below is the attached file for Code Explanation. This will exactly give you an idea of the flow that the project code has in it.

Actual Execution :

When fwd key is pressed :
When left key is pressed :
When right key is pressed :
When back key is pressed :

Conclusion :

So, with this, we have learnt to do the basic interfacing of the components with Arduino. There’s a still lot to learn about Arduino. There are also many sensors that can be used in order for different projects. 

This Article was all about keeping it as basic as possible so that it is much interesting for people/students to read and see

Keep Learning !

1 thought on “Arrow Indicator Circuit – Arduino Project”

Leave a Comment

Your email address will not be published. Required fields are marked *