Step 1: Materials
For this project we really wanted to have a more pure attachment to the materials, so the material list is small.
1 Light Emitting Diode.
1 Arduino Board.
1 Computer running the Arduino Integrated Development Environment.
1 USB-A to USB-B cable, 3 feet long.
1 Light Emitting Diode.
1 Arduino Board.
1 Computer running the Arduino Integrated Development Environment.
1 USB-A to USB-B cable, 3 feet long.
Step 2: Plug USB to Arduino
First take the USB-A to USB-B three foot cable and plug the USB-B plug into the corresponding USB-B slot on the Arduino.
Step 3: Connect to Computer
Next, take the opposite end of the USB-A to USB-B, three foot cable and Plug the USB-A plug into any of the USB-A slots on your computer.
Step 4: Open Arduino IDE
Next, go to your computer and open the Arduino Integrated Development Environment on your computer.
Then go to Tools > Serial Port and make sure your Arduino is selected.
Now you can start to program the Arduino.
Then go to Tools > Serial Port and make sure your Arduino is selected.
Now you can start to program the Arduino.
Step 5: Write Code
Now is the time to write the code, Just enter the code below into your Arduino integrated development environment:
void setup(){
pinMode(13,OUTPUT);
}
void loop(){
digitalWrite(13,HIGH);
delay(500);
digitalwrite(13,LOW);
delay(500);
}
Then, click the Verify box labeled with a Checkmark. Correct any potential errors.
void setup(){
pinMode(13,OUTPUT);
}
void loop(){
digitalWrite(13,HIGH);
delay(500);
digitalwrite(13,LOW);
delay(500);
}
Then, click the Verify box labeled with a Checkmark. Correct any potential errors.
Step 6: Upload Code
Lastly, Click the upload button, as indicated by the arrow pointing to the right.
You should see a verification message and your 1x1x1 Light Emitting Diode should begin to blink.
You should see a verification message and your 1x1x1 Light Emitting Diode should begin to blink.
0 comentários:
Postar um comentário