User Tools

Site Tools


courses:introduction_to_arduino_apd1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

courses:introduction_to_arduino_apd1 [2010/02/11 14:21]
camille created
courses:introduction_to_arduino_apd1 [2011/02/11 16:18] (current)
131.107.0.111
Line 1: Line 1:
 +===== Feb 12 2010: Arduino: what it is, writing code, blinking LED, pushbuttons ======
 +Presentation file: {{:​courses:​2009.11.30.arduino_part1.pdf|pdf}}
  
 +==== What is Arduino? ====
 +
 +  * microcontroller (ATmega168 or newer ATMega328)
 +  * your own code on code/​logic/​behavior on the board
 +  * digital vs analog pins
 +  * coding/​programming
 +  * debugging via serial communication
 +
 +
 +==== Digital Output: blinking a LED ====
 +
 +  * [[http://​arduino.cc/​en/​Tutorial/​Blink]]
 +  * [[http://​arduino.cc/​en/​Reference/​PinMode|PinMode]](pin,​ mode); is required/​crucial
 +  * [[http://​arduino.cc/​en/​Reference/​DigitalWrite|digitalWrite]](pin,​value);​
 +  * [[http://​arduino.cc/​en/​Reference/​Delay|delay]](ms);​
 +
 +{{:​courses:​led_polarity.png|}}
 +
 +
 +==== Digital Input: sensing a push button ====
 +
 +  * Build circuit with push button + resistor
 +  * [[http://​arduino.cc/​en/​Tutorial/​Button]]
 +  * [[http://​arduino.cc/​en/​Tutorial/​ButtonStateChange]]
 +  * [[http://​arduino.cc/​en/​Tutorial/​Debounce]]
 +
 +
 +==== Analog Output: dimming a LED ====
 +  * PWM: Pulse Width Modulation, why it is useful [analog from digital]
 +  * [[http://​arduino.cc/​en/​Tutorial/​Fading]]
 +  * [[http://​arduino.cc/​en/​Reference/​analogWrite|analogWrite]](pin,​ value); ​ 0 - 255
 +
 +
 +==== Analog Input: reading a sensor value ====
 +
 +  * Build circuit with a potentiometer
 +  * [[http://​arduino.cc/​en/​Tutorial/​AnalogInput]]
 +  * Variation: pressure sensor, light sensor, temperature sensor, other (with a 1K-10K resistor)
 +{{:​courses:​fritzing_force_sensor.png|}}
 +
 +
 +==== Resources and links ====
 +  * http://​www.arduino.cc
 +  * http://​fritzing.org for sharing and documenting your builds
 +  * [[http://​oreilly.com/​catalog/​9780596155520|Getting Started with Arduino]] book
courses/introduction_to_arduino_apd1.txt · Last modified: 2011/02/11 16:18 by 131.107.0.111