Arduino2
Arduino2
INTRODUCTION
WHAT IS ARDUINO?
• Development board
• Programmable micro processor (Microcontroller)
• (Digital) Electronics
• Open source
• Read inputs, control outputs!
WHAT CAN YOU DO WITH ARDUINO?
Theory: Hands-on:
1. What is a potentiometer? 5. Wiring on the breadboard!
2. What is a servomotor? 6. Programming the Arduino!
3. Signalling a servomotor 7. Testing!
4. How should the program work?
THEORY
1. What is a potentiometer?
2. What is a servomotor?
3. Signalling a servomotor
4. How should the program work?
1. WHAT IS A POTENTIOMETER?
• It’s a resistor!
(Acts like a normal transistor between pins 1 and 3)
• With a variable resistance by turning the ‘wiper’.
(Connected to pin 2)
• Position can be read as a variable analog voltage.
(If used with one of the analog input pins)
1. WHAT IS A POTENTIOMETER?
• It’s a motor!
• Not a typical DC motor (that’s either ON or OFF, at a
certain speed)
• Not a stepper motor (That turns a step for each pulse)
Almost done!
• Add a delay in which the servo has
time to move from position A to
position B! (15 miliseconds)
3. TESTING: TIME TO UPLOAD
3. TESTING
• NO NEED TO SAVE!!
• DOES IT WORK!?
• IF (YES)
Yay! You made your first Arduino Project!
• IF (NO)
No problem, let us help you!
QUESTIONS?