Blog

What is Arduino, and why it is perfect for learning robotics

Alessandro Panait·

Arduino is an open-source electronics platform built around a small microcontroller board. You write a program on your computer, upload it over USB, and the board runs it forever, reading inputs (sensors, buttons) and driving outputs (motors, LEDs, servos).

Why it is a great starting point

  • Cheap and rugged: a basic board costs a few euros and is hard to break.
  • Simple language: you write in a friendly version of C++. Two functions get you started: setup() runs once, loop() runs forever.
  • Huge community: almost any sensor or module has example code online.
  • Real-time and reliable: unlike a computer, it does one job with precise timing, which is exactly what motors and sensors need.

A first program

Every Arduino tutorial starts with blinking an LED:

void setup() {
  pinMode(13, OUTPUT);
}
void loop() {
  digitalWrite(13, HIGH);
  delay(500);
  digitalWrite(13, LOW);
  delay(500);
}

That is the whole model: set up your pins, then loop. From here you read a distance sensor, spin a motor, or move a servo.

Where Arduino fits in a robot

In a bigger robot, Arduino often handles the real-time, low-level work: reading many sensors at a steady rate, driving motors, talking to a more powerful computer over a serial cable. It is the reliable muscle, while a board like a Raspberry Pi does the heavy thinking.

Next, learn how Arduino pins work.

Comments (0)