Tag

Arduino tutorials

17 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 · 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 · 25 min

Bump Sensors and Debouncing for Robot Collisions

One press, nine transitions — and the interrupt counts every one of them.

Read tutorial

Beginner · 30 min

Reading Analog Voltages: ADC References and Dividers

analogRead gives you a ratio, not a volt. Get the reference right and the divider follows.

Read tutorial

Beginner · 30 min

How the I2C Bus Works: Addresses and Pull-Up Resistors

Every sensor page says connect SDA and SCL. This is what those two wires are really doing.

Read tutorial

Beginner · 30 min

Why delay() Breaks Robots: Timing With millis()

A robot sitting in delay() is blind. Replace it with millis(), and get the rollover comparison right.

Read tutorial

Beginner · 30 min

Why Your Robot Resets When the Motors Start

The reset that looks like a code bug is almost always the battery. Budget the current, then measure the sag.

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

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

← All tutorials