Learn Arduino
Make LEDs blink, sensors read and motors spin with a few lines of code.
Free to start. Built from a single prompt. No credit card.
Arduino is an open-source electronics platform made of simple microcontroller boards, like the Arduino Uno, and an easy programming environment, the Arduino IDE. You write short programs called sketches in a simplified C++, with a setup function that runs once and a loop function that runs forever, then upload them over USB. With a breadboard, wires and a few parts you can read buttons and sensors and control LEDs, buzzers and motors within an afternoon. Learnr builds a personalized Arduino course from one prompt and teaches the code and circuits in short, interactive lessons.
How to learn Arduino, step by step
- Start with a starter kit and the Blink sketch. Get an Uno-compatible board with a breadboard, jumper wires, resistors, LEDs, buttons and a potentiometer. Install the Arduino IDE, open File, Examples, Basics, Blink, upload it and change the delay values to prove you control the onboard LED.
- Learn the electricity behind the circuit. Understand voltage, current and Ohm's law so you know why an LED needs a resistor, typically around 220 ohms on a 5 volt pin. Learn how breadboard rows connect internally, since most beginner faults are a wire in the wrong row.
- Follow basic electrical safety. Unplug USB before rewiring, never connect pins directly to ground or 5V, and never work with mains voltage. Power motors from a separate supply through a driver or transistor with a flyback diode, because pins supply only small currents.
- Read inputs and talk over serial. Use digitalRead with INPUT_PULLUP for a button and analogRead, which returns 0 to 1023 on an Uno, for a potentiometer or light sensor. Call Serial.begin(9600) and print readings so you can see what the board sees.
- Drive outputs and use libraries. Fade an LED with analogWrite on a pin marked with a tilde, move a servo with the Servo library, and sound a piezo with tone. Install libraries through the Library Manager for sensors like a DHT22 or an ultrasonic distance module.
- Build one project from idea to enclosure. Combine parts into a plant moisture alarm, a reaction-time game or a parking distance sensor, and use millis instead of delay so it can check buttons while timing. Short Learnr lessons keep the code patterns fresh between builds.
What you'll learn
- Build circuits on a breadboard with LEDs, resistors and buttons
- Write sketches using setup, loop, pinMode and digitalWrite
- Read analog sensors and print values to the Serial Monitor
- Control servos and motors safely with drivers and separate power
- Replace delay with millis to run several tasks at once
What's inside your Arduino course
A sample path Learnr builds for Arduino. Your real course adapts to your goal and level.
- 1. The board, the IDE and your first blink sketch
- 2. Basic electronics, breadboards and Ohm's law
- 3. Digital input and output with buttons and LEDs
- 4. Analog input, PWM and the Serial Monitor
- 5. Sensors, servos, motors and libraries
- 6. Non-blocking code and building a complete project
How long does it take to learn Arduino?
Most beginners can build simple LED, button and sensor circuits within 1 to 2 weeks at a few hours a week. Combining several components into a reliable project that uses non-blocking code takes about 1 to 3 months, depending on prior programming and electronics experience.
What you need before you start
No prior experience is required. An Arduino or compatible board, a USB cable, a breadboard and a basic parts kit are enough. Some programming knowledge makes the code side faster.
Common mistakes to avoid
- Leaving out the current-limiting resistor on an LED, which can burn out the LED or stress the pin. Put a resistor in series every time.
- Powering motors straight from an Arduino pin, which can reset or damage the board. Use a motor driver or transistor and a separate supply with a shared ground.
- Using delay everywhere so the board ignores buttons while it waits. Learn the millis timing pattern once your sketch needs to do more than one thing.
How Learnr builds your course
Type your topic
Tell Learnr you want to learn Arduino, or get as specific as you like.
Get a personalized course
Learnr instantly builds a full Arduino course tailored to your goal and skill level.
Learn and level up
Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.
Arduino questions, answered
What language does Arduino use?
Sketches are written in C++ with Arduino's own functions such as pinMode, digitalWrite and analogRead. Some boards also support MicroPython, but most tutorials and libraries use the standard C++ approach.
Is Arduino or Raspberry Pi better for beginners?
They do different jobs. Arduino is a microcontroller for direct, real-time control of sensors and motors with no operating system. A Raspberry Pi is a Linux computer, better for networking, cameras and heavier software.
Is Arduino safe for kids and beginners?
Low-voltage USB projects are generally safe with sensible habits: unplug before rewiring, avoid shorts, and keep away from mains electricity and damaged batteries. Younger learners should work with adult supervision.
Explore more courses
More programming and tech courses
- Learn MATLAB
- Learn Unreal Engine
- Learn Godot
- Learn Regular Expressions
- Learn PowerShell
- Learn Excel VBA
- Learn WordPress
- Learn Object-Oriented Programming
See all programming and tech courses
Ready to learn Arduino?
Start your free, personalized Arduino course in seconds. .