100 likes | 230 Vues
This guide covers the essentials of using Arduino boards and compatible hardware in classroom control systems. Key requirements include USB cables, batteries, and various components like motors, LEDs, and resistors. Resources for purchasing are highlighted, including Radio Shack and eBay. Software installation instructions are provided for Windows, Mac, and Linux users. The Arduino environment allows for sketch creation, with setup and loop explanations included. Find helpful tutorials and references from Jeremy Blum, Arduino.cc, and other online resources.
E N D
Open source hardware and software for control systems in the classroom. The Arduino
What else is needed -Usb cable - 9 volt battery and connector (when using away from the computer) -Motors, LEDs, Resistors, ect……
Where to buy? • Arduino boards & shields Radio shack Ebay (usually cheaper) • Motors, LED, resistors Hobbypartz.com Radioshack Kelvin Ebay
The Software • Free down load of the arduino environment is available for Windows, Mac , and Linux. • Install the unodriver located in the arduino folder that was just installed. (windows users: go to control panel devices, update driver) • You will need an USB cable (provided for you) - you must select which serial port it is plugged into under the tools menu. http://www.arduino.cc/
Resources • How to videos • Jeremy Blum’s (Arduino Series) • You Tube Web and print references • Arduino.cc • Many web sites with a simple google search
The sketch The programs that you write are called sketches. There are many provided examples that you can use and modify as you wish.
The Setup • The setup part of your program will run only one time. • It will be used to : initialize variables set pin modes (inputs/outputs) setup libraries to use (ex. Servo motors)
The loop • The loop will be used to control your arduino board. It will loop the program you have written. Each time through it will respond to the conditions that are set. • Example: if you want an LED to turn on when a photocell sees darkness and turn off when it sees light.
Lego NQC vs. Arduino • Program for a constant blinking light: NQC Arduino