1. What is an Arduino?
An Arduino is an open-source electronics platform based on easy-to-use hardware and software. Unlike a Raspberry Pi, which is a full computer running a desktop operating system, an Arduino is a microcontroller board. It doesn't run an OS; instead, it executes a single, compiled program in a continuous loop.
This makes it highly reliable for interacting with physical sensors, controlling motors, and reading button presses. If you want to build a smart thermostat, a watering system, or custom LED strips, Arduino is the standard choice.
2. Your First Sketch: Blinking an LED
Arduino programs are called 'sketches' and are written in a dialect of C++. Every sketch has two essential functions: `setup()`, which runs once when the board boots, and `loop()`, which runs continuously forever.
Wiring an external LED requires a current-limiting resistor to prevent burning out the LED or the Arduino's output pin. You can read the color bands of your resistor using UtiLabs Resistor Decoder to make sure you are using a 220 Ohm or 330 Ohm resistor.
// Standard Arduino Blink sketch
const int ledPin = 13; // Built-in LED on pin 13
void setup() {
pinMode(ledPin, OUTPUT); // Configure the digital pin as an output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for a second
}3. Prototyping Without Solder
To learn, purchase a starter kit containing an Arduino board, a breadboard, jumper wires, sensors, and basic components. Solderless breadboarding allows you to wire and modify circuits quickly without permanent soldering, making it easy to test theories and calculations safely.