Arduino (Leonardo Pro Micro) push button tutorial on breadboard with LED and buzzer

Teacher
Vivek Gupta
Vivek Gupta
Role : Writing free tutorials in free time
  • Website : http://vsgupta.in/
  • Experience : 5+ Years
  • Specialist in : IoT, NLP, Machine Learning, Chatbots, Voice Assistants, Hardware Engineering
Read More

Setting up push button on breadboard with Arduino Leonardo Pro Micro and LED

Introduction

Welcome to this tutorial. If you are directly seeing this tutorial, then you can start of from beginning from previous tutorial. You can continue if you just want to continue this. Keep the following  circuit diagram handy and tally it with your Arduino Breadboard circuit with this circuit diagram to avoid any mistakes.

Arduino-Leonardo-push-button-tutorial-stepwise-circuit-diagram

Arduino-Leonardo-push-button-tutorial-stepwise-circuit-diagram

  1. If you are directly seeing this tutorial, then please complete the below circuit first. The tutorial on below circuit is here "http://iotmonk.com/courses/getting-started-with-arduino/" you will get the following circuit. Now we will resume from here.
Arduino-Leonardo-push-button-tutorial-stepwise (1)

Arduino-Leonardo-push-button-tutorial-stepwise (1)

2. Follow the blue dot area and connect the black wire from -ve rail of breadboard into the following terminal of  breadboard as shown below.

Arduino-Leonardo-push-button-tutorial-stepwise (2)

Arduino-Leonardo-push-button-tutorial-stepwise (2)

3. Now again, connect the +ve rail of breadboard on the terminal of breadboard in the following way.

Arduino-Leonardo-push-button-tutorial-stepwise (3)

Arduino-Leonardo-push-button-tutorial-stepwise (3)

4. Now, we will extend the power supply of the Arduino microcontroller to the other rail of the breadboard.

Arduino-Leonardo-push-button-tutorial-stepwise (4)

Arduino-Leonardo-push-button-tutorial-stepwise (4)

5. Finally, we will connect the right rail of breadboard to the left rail. Follow the below image, and connect the wires as shown.

Arduino-Leonardo-push-button-tutorial-stepwise (5)

Arduino-Leonardo-push-button-tutorial-stepwise (5)

6. Now connect take the button and connect in following manner. If you have 2 legged tactile button, then you will connect in the following manner. In the further steps, you will understand the connections.

Arduino-Leonardo-push-button-tutorial-stepwise (6)

Arduino-Leonardo-push-button-tutorial-stepwise (6)

Arduino-Leonardo-push-button-tutorial-stepwise (8)

Arduino-Leonardo-push-button-tutorial-stepwise (8)

7. Now connect the 9nth pin of Arduino Leonardo Pro Micro to ground rail of breadboard using a 10k resistor. This setup is called "Pull Down Resistor". It will hold down the logic to '0' if there is not input on the pin. I.E. the default value of pin no 9 will be 0.

Arduino-Leonardo-push-button-tutorial-stepwise (9)

Arduino-Leonardo-push-button-tutorial-stepwise (9)

8. Now connect the first leg of button to vcc. So when we press button, we will get +5V or logic '1' on the other leg of push button.

Arduino-Leonardo-push-button-tutorial-stepwise (10)

Arduino-Leonardo-push-button-tutorial-stepwise (10)

9. Now finally connect the pin no 9 of Arduino Leonardo Pro Micro to 2nd leg of push button. Refer below image.

Arduino-Leonardo-push-button-tutorial-stepwise (11)

Arduino-Leonardo-push-button-tutorial-stepwise (11)

And you are done! Now move on to next step for programming it and seeing the out put of the setup.

Please login to get access to the quiz
(Next Lesson) Arduino Leonardo Pro Micro Button with LED, Programming and Output
Back to Arduino (Leonardo Pro Micro) push button tutorial on breadboard with LED and buzzer

No Comments

Post a Reply