Interfacing Push Button Thumbnail

03- Arduino Tutorials- Interfacing a Push Button || Digital Input Sensing || Arduino Uno Leave a comment

Hello everyone!!! Welcome back to the Blog.

In the last post of the Arduino Tutorial series we talked about interfacing an LED with the Arduino Uno R3 board and we also talked about controlling the rate of blinking of the LED through code. In this post then, we will take it a step further by connecting a push button to the Arduino board and controlling the rate of blinking of the LED through this push button. So for example, if we push the button then the LED should blink at a rate, let’s say 100 milliseconds and if we leave the push button then it should blink at a different rate let’s say 1000 milliseconds. So effectively, we will be checking here for a digital input (press of the button) and change the rate according to that.

In the last circuit, we had connected a resistor to Pin 8 of the Arduino board to which the positive(anode) pin of the LED was connected. We will modify this circuit further and connect the push button to Pin 7 of the Arduino board. All the pins from 0 to 13 on the board can be used for both digital input/output operations. A circuit diagram has been given below for your reference:

Circuit Diagram:

Interfacing Push Button with Arduino

I would now like you to go through the video below where I explain everything in details including the circuit and the actual code:




Shop Smart with us for Best Prices:

If you want to continue on with this series I would ask you to visit our YouTube channel and subscribe to receive continuous notifications. You can also subscribe to our Newsletter below to get email notification of each post as and when they are posted.

You can also follow us on social media platforms such as  Facebook and Twitter.

Thanks a lot for reading through this post. Feel free to follow through this series and comment your queries in the comment box below. Also feel free to contact us regarding any out of stock product and we will try to get back to you as soon as possible.

Leave a Reply