sábado, 22 de outubro de 2016

The first test using Arduino! Fast and easy!

Goal: 
The goal here is just to test connection between PC and Arduino with upload data and running a code blinking a led.

1. First of all you can do the download of Arduido IDE to create some programs.

 - https://www.arduino.cc/en/Main/Software

2. After that, connect the arduino using de USB cable (to supply data connectivity and power).

Open the Arduino IDE and write these data:
#define LED 13

void setup() {
  pinMode(LED, OUTPUT);
}

void loop() {
  digitalWrite(LED, HIGH);
  delay(1000);
  digitalWrite(LED, LOW);
  delay(1000);
}



3. Validate the code and  upload
put a led in Digital port 13


Fast and easy!!!

Nenhum comentário:

Postar um comentário