Arduino Basics¶
A small crash course on the Arduino micro-controller.
What is Arduino?¶
Arduino is an open-source electronics platform based on easy-to-use hardware and software. It’s intended for anyone making interactive projects. We will be using the Arduino micro-controller to interface with the motor and servo(s).
Getting Started¶
Materials Required¶
- Arduino UNO
- UNO compatible USB cable
- A laptop or computer for programming the Arduino
Procedure¶
- Download and install the Arduino IDE (Integrated development environment) for your OS
- Launch the Arduino IDE.
- Connect the Arduino UNO to your computer via a USB cable.
- Go to
File>>Examples>>01. Basics>>Blink - Choose the correct board by navigating to
Tools>>Board>>Arduino/Genuino UNO - Choose the correct board by navigating to
Tools>>Port>>COMx (Arduino UNO)on Windows or/dev/ttyACMxon Linux - Click the
Uploadbutton (arrow pointing to the right). - You should see that the on-board LED on the Arduino (pin 13) blinks every second.
- You can also hook up an external LED to the GND and digital pin 13 to make the that LED blink.
- Try changing
delay(1000)todelay(3000)and see what happens - You have successfully completed your first Arduino program.
Todo¶
- Fetch sensor data
- Program servo
Resources¶
- LadyAda’s Arduino tutorial
- Adafruit’s Arduino tutorial
- ‘Instructables Arduino projects <http://www.instructables.com/howto/arduino/>’_