Switch bouncing and debouncing with Arduino

(click to enlarge)

This experiment is similar to the previous one. The components and the circuit are the same as that of this experiment of the Pull down resistor. In that experiment we used a momentary switch to momentarily turn on the LED. Whereas in today's experiment we will turn on the LED and keep it on until the button is pressed again. Hence it will work as a Toggle switch instead of a momentary switch. We can achieve this effect by making changes in the code that we upload on the Arduino's board.

We are going to to use the example program in Arduino's IDE
File - Examples - Digital - Debounce

But the name is strange!, it is not toggle or something similar. It is Debounce. What is de-bounce ? What is it that is bouncing in this circuit that we need to de-bounce? Let us try to understand that below.

Arduino Digital Button with Pullup and Pulldown resistors

click to enlarge
Let us learn how a Pushbutton works on an Arduino's board. We will program the Arduino so that It can send a signal to a LED whenever the push button is pressed.

We can make the LED turn on with the press of the button, and with some rearrangement of components and the program we can make the LED turn off when the button is pressed.

Control a Servo with a Pot

click to enlarge
Today we will learn how to control a RC Servo motor (9g) with a Linear Taper potentiometer 10 K and the Arduino Uno board.

Arduino Digital - Blink Without Delay

click to enlarge

Let us take a look at the example in Arduino's IDE. This is in  Digital - BlinkWithoutDelay.

Arduino Basics - ReadAnalogVoltage

click to enlarge
Today we will look at yet another example in Arduino Basics. It is called ReadAnalogVoltage. You can find this program in the File - Examples - Basics.

If you have ever used a multimeter to check voltage across an electronics circuit, you can think of this experiment as a simulator of the same.