Tag
Arduino tutorials
12 tutorials tagged Arduino.
Beginner · 20 min read
Build a Line Follower Robot: Sensors to PID Steering
From IR reflectance sensors to a weighted error to smooth PID steering—how a line follower actually works.
Read tutorial →Intermediate · 15 min read
LSRB Path Simplification for Line Maze Robots
Record turns as L, S, R and B, then collapse every dead-end detour into the optimal route.
Read tutorial →Beginner · 1 hour
Control a Robot Over Bluetooth With an HC-05 Module
Pair an HC-05 with your phone and drive a robot over Bluetooth serial, without the classic 5 V mistake.
Read tutorial →Advanced · 2 hours
Cascaded PID Control for a Self-Balancing Robot
Two nested PID loops: one holds the tilt angle, one asks for a lean so the robot can go somewhere.
Read tutorial →Beginner · 45 minutes
Reading Tilt Angle From an MPU6050 Accelerometer and Gyro
Turn raw MPU6050 counts into a tilt angle in degrees, and learn why neither sensor works alone.
Read tutorial →Intermediate · 14 min read
Detecting Line Maze Junctions With an IR Array
Classify T, cross, left, right, dead end and finish from a reflectance array, and resolve the ambiguous cases.
Read tutorial →Beginner · 22 min
The Obstacle-Avoidance Algorithm: Sense, Scan, Decide, Turn
The sense–scan–decide–turn loop that lets a robot avoid obstacles on its own.
Read tutorial →Beginner · 20 min
Read an HC-SR04 Ultrasonic Sensor: Reliable Distance in Code
Turn ping-and-echo into a steady distance in cm—with a timeout and a median filter.
Read tutorial →Beginner · 20 min
Read an IR Reflectance Sensor Array for Line Following
Turn a row of IR sensors into a single, smooth line position you can steer on.
Read tutorial →Beginner · 18 min read
Control DC Motors with PWM and an H-Bridge
Wire and control a brushed DC motor safely using PWM, an H-bridge, and realistic current limits.
Read tutorial →Beginner · 17 min read
Read Quadrature Encoders for Distance and Speed
Turn quadrature encoder pulses into reliable wheel direction, distance, and velocity measurements.
Read tutorial →Beginner · 18 min read
Ultrasonic vs Time-of-Flight Robot Sensors
Choose, mount, calibrate, and test ultrasonic or time-of-flight sensors for obstacle detection.
Read tutorial →