Saturday, September 30, 2017

Arduino : Digital - Digital Input Pull Up

Description
This example demonstrates the use of pinMode(INPUT_PULLUP). It reads a digital input on pin 2 and prints the results to the serial monitor.

List Item
  1. Arduino Uno 
  2. LED
  3. Pushbutton
  4. 1 Resistor (150 ohm to 330 ohm)
  5. Wire jumper

Wiring Diagram

Video


Arduino : Digital - Debounce

Description
Each time the input pin goes from LOW to HIGH (e.g. because of a push-button press), the output pin is toggled from LOW to HIGH or HIGH to LOW.  There's a minimum delay between toggles to debounce the circuit (i.e. to ignore noise).

List Item
  1. Arduino Uno 
  2. LED
  3. Pushbutton
  4. 1 Resistor (150 ohm to 330 ohm) and 1 Resistor 10k ohm
  5. Wire jumper

Wiring Diagram

Video