Line follower robot with L298N and TCRT5000
The classic robotics starter: a two-wheeled car that tracks a black line on its own.
Shop by category
Shop all componentsClubs work best when every session ends with something that works. This plan uses six affordable kits in order of difficulty: a wind-and-motor science kit, a construction kit, a soldering practice board, a line-follower robot, an Arduino sensor kit and an ESP32 IoT kit. Each week lists what to build, what to explain and what to ask. Younger learners can start with a screen-free coding robot instead.
An adult must supervise soldering, with eye protection and good ventilation.
Keep small parts away from children under 3.
Tick anything you already have and the total updates.
Week 5: runs the sensor sketches
Electronics fun kit with an 830-point breadboard for extra week 5 builds
Robot car kit with line, Bluetooth and Wi-Fi modes for a second term
Vibration toy car kit for the youngest members
Low-temperature PCL filament for 3D pen sessions
Atal Tinkering Lab Package 1 for schools setting up a full lab
ATL Package 2: rapid prototyping tools
ATL Package 3: mechanical, electrical and measurement tools
ATL Package 4: power supply, accessories and safety
week5_sensor_plotter.inoVerify & upload in Electrolark// Week 5: plug any analog sensor from the kit into A0 (light, sound, potentiometer, soil...)
// and watch it live in Tools > Serial Plotter
void setup() { Serial.begin(115200); }
void loop() {
int v = analogRead(A0);
Serial.print("sensor:"); Serial.print(v);
Serial.print(",low:0,high:1023");
Serial.println();
delay(50);
}
The sketch above runs here on a simulated Arduino Uno. Move the sliders for the sensors and buttons it reads, and watch the Serial monitor, display and outputs change.
One motor is wired backwards, or the sensor trimmers need adjusting over the black line.
Close the Serial Monitor first, and match the baud rate to 115200.
Clean the tip on the sponge, add fresh solder to the tip and heat the pad and the leg together.
Weeks 1-2 suit ages 8 and up; soldering and coding suit ages 11 and up with an adult present.
One kit per pair works well; it doubles the talk and halves the cost.
The four Atal Tinkering Lab packages cover a full lab; contact us for a quote.
20 parts: Wind and Motor Science Kit, 5-in-1 Mecha Racer DIY Construction Kit (38 Pieces), Soldering Practice Kit (More Projects), DIY Line Follower Robot Kit, Sensor Module Kit (Multi-Pack), Uno R3 CH340G ATmega328p Compatible Development Board, ESP32 IoT Starter Kit, Electronics Fun Kit for Arduino (830 Breadboard), Beginner Robot Car Kit (Line / Bluetooth / Wi-Fi), ACEBOTT ESP32 IoT Kit, plus 10 more. Tools: Noel Soldering Iron, Solder Wire 60/40 Rosin Core, Digital Multimeter and 24 in 1 Precision Screwdriver Set. On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 6 sessions of 90 minutes. The build on this page has 6 steps.
No. This page has the complete, tested code (week5_sensor_plotter.ino).
Yes. The Run it panel under the code runs this exact sketch on a simulated board. Move the sliders or press the buttons for the sensors it reads, and the Serial monitor, display and outputs react as they will on the real build. It is a simulation, so real readings depend on your parts and wiring.
About ₹2,93,430 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.
Running a hands-on club session; Moving from analog circuits to code; Explaining sensors, motors and the internet of things.
An adult must supervise soldering, with eye protection and good ventilation. Keep small parts away from children under 3.
Ideas that reuse this build: Logic gates lab. They are listed under Take it further on this page.
The classic robotics starter: a two-wheeled car that tracks a black line on its own.
A robot that looks left and right with its ultrasonic "head" and picks the clearest way.
Roams a tabletop without ever driving off the edge.
Drive a 4WD car from your Android phone over Bluetooth.
Learning project. Check every circuit and the datasheet of each part before you power it up.
sensor:307,low:0,high:1023 sensor:307,low:0,high:1023 sensor:306,low:0,high:1023 sensor:308,low:0,high:1023 sensor:308,low:0,high:1023 sensor:307,low:0,high:1023 sensor:307,low:0,high:1023 sensor:307,low:0,high:1023 sensor:307,low:0,high:1023
A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.