The cheapest robot that teaches a full control loop. Under a hundred euros, no soldering required, and every part below is picked from current stock.
Five to eight infrared emitter and phototransistor pairs in a row. More sensors give a finer position estimate, which lets the controller anticipate a curve rather than react to it. Three sensors is enough to follow a line and not enough to follow it smoothly.
Assembly
Two driven wheels and a caster. Gear ratio matters more than motor power here: a fast robot overshoots every curve and teaches the class that control loops do not work.
A dual H-bridge rated above the stall current of both motors together. On a robot this size the stall current is what flows every time a wheel hits the edge of the track.
Any microcontroller with enough analogue inputs for the array and two PWM outputs. Keep the motor supply separate from the logic supply, or the brownout at motor start will reset the controller mid-lap.
Parts are selected by the search engine on price, stock and specifications, never on affiliate commission. Robotitem does not test these products.