Summer Camp: Internet of Things.


1. Arduino Install. and Config.

This page will tell you how to install the Arduino IDE(aka Arduino text editor) onto your computer. Then it will tell you how to connect an Arduino board to your computer and run some simple examples.

  1. Download the Arduino IDE:
  2. Install drivers for your Arduino board by plugging in your board to your computer with a USB cable. The drivers will be installed automatically when you connect your Arduino board to your computer. If you find in the future that the drivers did not install, go to Windows Device Manager and find your Arduino under Ports and right click and click Update driver.
  3. Open the Blink example in the Arduino IDE by clicking File, Examples, 0.1 Basics, Blink.
  4. Select your board in the Arduino IDE by clicking Tools, Board, Arduino/Genuino Micro.
  5. Select your Serial port by clicking Tools, Port, COM11(Arduino/Genuino Micro.
  6. Upload and Run your first sketch by clicking the upload button on the Arduino IDE. This will send the code from the Blink example to your board and cause the LED on your board to blink.

Here is some troubleshooting code if the Blink example didn't work:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
int sensorValue = digitalRead(LED_BUILTIN);
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
sensorValue = digitalRead(LED_BUILTIN);
delay(1000); // wait for a second

This is an image of the wiring for the board.

Now you should have Arduino installed, and and Arduino board connected to your computer.

Reference Links: Arduino/Leonardo Micro Guide , Getting Started with Arduino and Genuino products , What is Arduino?