6. Some possible hardware sensors:
• potentiometer
• Sliding potentiometer
• Switch
• Tiltswitch
• Accelerometer
• Proximity sensor
• Photocell
• Flexometer
• Camera
• WII
• Kinect
• Force sensing sensor
• Temperature sensor
• Gas sensor
• Barometric sensor
• Humidity sensor
• RFID reader
• GPS
• Reed switch
• Gyroscope
• ...
7. Some possible hardware actuators:
• Vibration motor
• Regular motor
• Sound
• Muscle stimulus
• Light
• images
• The web
• Pump
• Solenoid
• Resistance wire
• Relais
• Radio frequency
• …
10. Digital in/outputs + PWM*
USB connection
processor
Power source
(external)
5V + ground
*PWM
pulse width modulation : digital signal mimmicing an analogue one
used to fade lights, drive motors, create tone,…
Analog in/outputs
11. The arduino way
“the Arduino philosophy is based on making designs rather
than talking about them. It is a constant search for faster
and more powerful ways to build better prototypes. We
have explored many prototyping techniques and developed
ways of thinking with our hands.: • Prototyping
•
•
•
•
•
Tinkering
Patching
Circuit bending
Hacking
collaboration
13. • Current is a circle – starts at an i/o port, flows to GRND
• Use red for positive wires (from output)
• Use black for negative wires (to GRND)
• Look it up, before you hook it up
14. Get the software
• Current is a circle – starts at an i/o port, flows to GRND
• Look it up,http://www.arduino.cc
before you hook it up
20. Hello world! (=blink)
File examples basics BLINK
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
// wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000);
// wait for a second
}
36. This is just a start
There are tons of
• Tutorials
• Code snippets
• Wiring diagrams
Available to aid you in your experiments
See the Blackboard environment for links.