Monday, July 20, 2020

How to connect a Push Button to an Arduino UNO using Push Button Module (Method 2) - Arduino Tutorials #13

In this post, I will show you how to connect a push-button module to an Arduino UNO. In my earlier post, I have also shared how to connect a regular push-button to Arduino Uno. You can read that post by clicking here.

If you prefer video mode you can click here to watch it on YouTube. This particular section starts at 1:30 mark.

First, connect the circuit according to the circuit diagram.

Note: In the video the connection is different. The module which I purchased had wrong marking or connections so I had to interchange the GND & VCC connection to make it work. In my opinion, first, try the below circuit diagram. If this does not work only then try interchanging the connections.

After making the connection connect the circuit to a Laptop or a Desktop

Next, select all the appropriate board, port, and the programmer and upload the sketch Button which is under File > Examples > Digital

After uploading the sketch when you press the Push Button you should get a blink on the Built-in LED

For sketch explanation please refer my previous post or click here to read it (Explanation is at the bottom of the page)

Affiliate Links:
    Arduino UNO 
    Push Button Module
Thank You For Reading !!!

No comments:

Post a Comment

Hi, Thanks for Commenting !!!