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

Arduino : Digital - Button

Description
Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached to pin 2.

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

Arduino : Digital - Blink Without Delay

Description
Turns on and off a light emitting diode (LED) connected to a digital pin, without using the delay() function.  This means that other code can run at the same time without being interrupted by the LED code.

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

Wiring Diagram

Video

Tuesday, September 19, 2017

References for Arduino



There are several website that give completed Library and tutorial on certain modules:

  1. Rinky Dink Electronics
  2. Arduino
  3. Adafruit
Above list of website the most people use library, you should try it.


Arduino : Basic - Read Analog Voltage

Description Read Analog Voltage
Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.

List Item
  1. Arduino Uno 
  2. Potentiometer
  3. Wire jumper

Wiring Diagram

Video


Arduino : Basic - Fade

Description Digital Read Serial
To fade an LED on pin 9 using the analogWrite() function.

List Item
  1. Arduino Uno 
  2. LED
  3. Resistor 330 ohm
  4. Wire jumper

Wiring Diagram

Video


Arduino : Basic - Digital Read Serial

Description Digital Read Serial
Reads a digital input on pin 2, prints the result to the serial monitor

List Item
  1. Arduino Uno 
  2. Push Button
  3. Resistor 10 kohm
  4. Wire jumper

Wiring Diagram


Video


Arduino : Basic - Analog Read Serial

Description Analog Read Serial
Reads an analog input on pin 0, prints the result to the serial monitor.

List Item
  1. Arduino Uno 
  2. Potentiometer
  3. Wire jumper

Wiring Diagram


Video

Arduino : Basic - Blink

Description Blink LED
Turns on an LED on for one second, then off for one second, repeatedly.

List Item
  1. Arduino Uno 
  2. Resistor 330 ohm
  3. LED
  4. Wire jumper

Wiring Diagram


Video