TheSolderBenchnotes from my electronics bench

section 6, the blue band

Robotics

Chassis, control loops and robots that follow lines.

How a Line-Following Robot Works

The sensors, logic and code behind a line follower, from a simple two-sensor bang-bang robot to smoother proportional steering.

→ wobbling? lower the gain

PID Control Explained Without Heavy Math

What the P, I and D terms actually do, shown with a robot that follows a line, plus Arduino code and a step-by-step tuning method.

→ tune P first, then D, I last

Choosing a Chassis for Your First Robot

Two-wheel, four-wheel, tracked or DIY? Compare robot chassis types by steering, terrain and difficulty, and learn how to check motor and battery fit.

→ pick the battery before the chassis

Adding Wheel Encoders to a Robot

How optical and magnetic encoders count wheel rotation, how to read them with interrupts, and how to measure distance and drive straight.

→ count in an interrupt, not in loop()

Using the MPU6050 Accelerometer and Gyroscope

Read tilt and rotation from the MPU6050, convert raw values to g and degrees per second, and combine them with a complementary filter.

→ gyro drifts, accel is noisy, blend both

Building a Servo Robot Arm: Torque, Power and Smooth Motion

Plan a small servo robot arm the right way: calculate the torque each joint needs, pick servos, power them properly and write Arduino code for smooth, controllable movement.

→ the shoulder servo does the hard work

How to Choose Motors for a Mobile Robot (Torque and Speed Math)

A simple, step-by-step method to size the drive motors of a wheeled robot from its weight, wheel size, top speed and the slopes it must climb, with a fully worked example.

→ Size for the operating point, not the stall torque

Program Your Robot with a State Machine (Arduino Example)

Stop fighting tangled if-statements and delays. Learn the state machine pattern with enum and switch, timed states with millis(), and a complete obstacle-avoiding robot program that stays responsive.

→ One state at a time, clear rules to change

Build a Wall-Following Robot with Arduino (PD Control)

A two-wheel robot that follows a wall at a set distance using two ultrasonic sensors and simple PD control. Sensor placement, wiring, full Arduino code with corner handling, and a step-by-step tuning method.

→ Tune Kp first, then add Kd to stop the wobble

Robot Odometry: Tracking Position with Wheel Encoders

How a two-wheeled robot can estimate its x, y position and heading from wheel encoder ticks. The odometry equations step by step, Arduino code that updates the pose, how to calibrate wheel size and track width, and why the error grows.

→ calibrate the track width with ten spins