Introduction
Arduino helps you control electronic parts easily. It lets you make cool projects like lights, robots, and sensors.
Jump into concepts and practice - no test required
Arduino helps you control electronic parts easily. It lets you make cool projects like lights, robots, and sensors.
// Arduino programs have two main parts:
void setup() {
// This runs once when the board starts
}
void loop() {
// This runs over and over again
}setup() runs once to set things up.
loop() runs repeatedly to keep your program alive.
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as output
}
void loop() {
digitalWrite(13, HIGH); // Turn LED on
delay(1000); // Wait 1 second
digitalWrite(13, LOW); // Turn LED off
delay(1000); // Wait 1 second
}void setup() {
Serial.begin(9600); // Start serial communication
}
void loop() {
Serial.println("Hello, Arduino!"); // Print message
delay(2000); // Wait 2 seconds
}This program makes the built-in LED blink on and off every half second.
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}Arduino boards have pins to connect sensors and lights.
You write code on your computer and send it to the Arduino board.
Arduino is great for beginners because it is simple and fun.
Arduino is a small computer you can program to control electronics.
It uses simple code with setup() and loop() functions.
It helps you make projects like blinking lights, robots, and sensors easily.
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000)
}