Arduino 110901051202 Phpapp01
Arduino 110901051202 Phpapp01
Overview
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.
How to get started
http://www.ibiblio.org/obp/electricCircuits/
You can see that the resistor symbol is symmetric, just like resistors
themselves. The LED symbol, however, has an arrow thing going on. This is
the direction in which current flows. The little arrows that are coming out of the
symbol indicate that this is a diode that emits light.
Basic Electrical knowledge
The only thing we need to do now is indicate
how the LED and resistor are hooked up and
show the 5V and ground connections.
If we had an LED with a resistor that was 5K ohms, which LED would it
be brighter than? Which LED would it be dimmer than?
A Quick Rewiring...
We're going to make a very small modification to our wired up circuit
Result?
Getting up and running
• Plug it into the USB port and install the USB drivers that
come with the IDE.
The C Programming
Language
Example 1
Demonstration
loop function is
repeated indefinitely
Example 1
Code
pinMode(13, Output)
prepare pin 13 for
outputs of voltage
digitalWrite(13, HIGH)
Sets pin 13 to a voltage
that
means “on”
delay(1000);
Tells microcontroller to
do nothing for 1000 ms =
1s
digitalWrite(13, LOW)
Sets pin 13 to voltage
that means “off”
• 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.
MORE
Example 2
Demonstration
www.arduino.cc
• Find my PPTs at
www.slideshare.net/avikdhupar
• Find me at
www.facebook.com/avikd
• Or drop an email
[email protected]
• Find my videos at
http://vimeo.com/avikd/videos
Thank you