Professional Documents
Culture Documents
Arduino
Arduino
What is Arduino?
• What is it used for?
• How to get started
• Demonstration
• Actuators ( to do stuff )
– Lights, LED’s
– Motors
– Speakers
– Displays (LCD)
Why Arduino?
• You can make cool stuff! Some people are even making
simple robots, and we all know robots are just cool.
Arduino at INFENV
• It’s early days yet, we are all just learning how to use
them.
http://www.ibiblio.org/obp/electricCircuits/
• Plug it into the USB port and install the USB drivers that
come with the IDE.
• For the most basic kind of program you’ll need a simple actuator, an
LED with the long leg (+) pushed into pin 13 and the short leg (-) in
the adjacent ground pin (GND). Pin 13 is special, in the sense that it
has a built in resistor to correctly control the voltage going into a
testing LED just like this.
• At this stage we just want to program the LED to blink on and off at
a set time interval. Sample code for this is available at the Arduino
website.
• Press the reset button on the board and then click ‘Upload to I/O
board’ in the IDE. If all goes well lights should flicker on the board
and the IDE will confirm success.
Demonstration
• The circuit works by running power from the 5V through the 2.2K
resistor (this limits the full 5 volts going straight back into the ground,
which is bad because without the resistor it would overheat). When
the orange wire ‘pushbutton’ is connected the power going to the
digital input drops significantly because the button is redirecting
power through to the ground instead. When the power drops
enough it registers as a ‘LOW’ in the Arduino and we can sense a
button press with our code.
Pushbutton Example
Pushbutton Example
Pushbutton Example
Conclusion
www.arduino.cc
Thank you