Discover Arduino Projects
Hundreds of projects from beginner to advanced — schematics, code, and videos.

Arduino Line Follower Robot: Follows a Black Line, Stops at the Finish (TCRT5000 + L298N)
Draw a track on the floor with black tape and let the robot follow it. Two TCRT5000 sensors sit on both sides of the line: when both see white the robot drives straight, when the left one touches black it turns left, the right one turns it right. When both see black at once it is on the finish strip and stops. The L298N drives two DC motors with speed and direction, two 18650 cells power it all.

mBot Drive Forward and Stop: First Move with the Motors
Press the button on the mBot's board: the robot waits one second, drives straight forward for two seconds and stops. Every press repeats the move. No extra parts are needed. The two motors are plugged into M1 and M2; to go straight the left motor gets a negative speed and the right motor a positive one.

mBot First Drive: Forward, Backward, Right and Left
Press the button on the mBot's board and the robot does the four basic moves in turn: it drives forward, comes back, turns right on the spot and turns left. Each move is a function of its own. No extra parts are needed. In a turn the two wheels spin in opposite directions; the TURN_MS time sets the angle.

mBot Square Drawing Robot: Four Sides with a Loop
Press the button on the mBot's board and the robot draws a square on the floor: it drives along one side, makes a quarter turn to the right on the spot and repeats this four times. It ends where it started. No extra parts are needed. The SIDE_MS time sets the side length and the TURN_MS time sets the turning angle.

mBot Speed Levels: Slow, Medium, Fast
Press the button on the mBot's board and the robot drives forward and back at three speeds: slow first, then medium, then fast. The time is always the same; the higher the speed, the farther the robot goes. No extra parts are needed. The speeds sit in the SPEEDS table: 100, 170 and 255.

micro:bit Digital Dice: Shake to Roll
Shake the board: the dice rolls for a moment, then stops on a random face from 1 to 6. The accelerometer feels the shake (was_gesture) and random.choice picks the face. No extra parts are needed.

micro:bit Spirit Level: A Dot That Slides as You Tilt
Tilt the board and the lit dot slides toward the lower edge like a marble; when the dot is in the middle the surface is level. The accelerometer measures the tilt (get_x, get_y) and set_pixel lights the dot. No extra parts are needed.

Arduino Uno + HC-05 Bluetooth Car (L298N)
Drive a two-wheel car over Bluetooth with the joystick on your phone; it is built with an Arduino Uno, HC-05, L298N and two motors, no internet needed. Android only: iPhones can't connect to the HC-05, use an HM-10 for iPhone. Pair the HC-05 in your phone's Bluetooth settings, then go to Workshop › Devices › Add a device › Bluetooth, pick the Arduino Uno + HC-05/06 board and Car remote, and upload the code from Get the code.
