Date post: | 16-Jul-2015 |
Category: |
Education |
Upload: | otsomehackit |
View: | 101 times |
Download: | 3 times |
[email protected] 12.2.2015 Tampere ARDUINO-TYÖPAJA
Arduino IDE
ArduBlock
Tarvittavat ohjelmat
• Arduino IDE: http://arduino.cc/en/Main/Software
• ArduBlock: http://sourceforge.net/projects/ardublock/
• ArduBlock asennusohjeet: https://learn.sparkfun.com/tutorials/alternative-arduino-interfaces/ardublock
Arduinon hello world: blink
Arduino perusteet: nappula + LED
LED ja vastus
• V = I ⋅ R :)
• LED: jännitehäviö 2V, nominaalivirta 20mA (max 30 mA)
• Arduino: 5V, sisäinen resistanssi 25Ω, max 40 mA
• Tarvittava vastus: R= (5V−2V) / 20mA = 150Ω
• Virta ilman vastusta: I = (5V−2v) / 25Ω = 120 mA (3 x max. virta)
WildCat Robot image courtesy of Boston Dynamics
BROWN: GND
RED: 5V
ORANGE: SIGNAL (4,8)
SERVO:
RUSKEA: GND
PUNAINEN: 5V
ORANSSI: SIGNAL (4,8)
Ohjelmoi oma reitti(lisätehtävä: satunnaisuus)
KIITOS!