Arduino_Uno_Tutorial
Arduino_Uno_Tutorial
Introduction to Robotics
Robotics is about making machines (robots) that can perform tasks automatically or with little human
help. Robots are used in industries, hospitals, and even in space.
What is Arduino?
Arduino is a small electronic board that acts as the brain of a robot. It can control motors, lights, and
sensors.
Connections:
- Connect LED (+) (long leg) to pin 13 of Arduino.
- Connect LED (-) (short leg) to GND.
- If using a breadboard, place a 220-ohm resistor between LED and pin 13.
Code:
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}