Projects with an L298N motor driver
9 Mokxi projects use an L298N motor driver (2 beginner, 4 intermediate and 3 advanced). They run on Arduino Uno boards. Here are all of them, from “Linear actuator out and back” to “Hand gesture controlled car”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “Linear actuator out and back”, a beginner project that needs an L298N motor driver and a linear actuator.
- All of them run on an Arduino Uno, so that is the one board you need.
- The parts used most here are the 2WD robot car chassis (7 projects), the photoresistor module (2) and the servo motor (2). With those on hand, most of this list is open to you.
- Before you build one on a real bench, read the L298N motor driver wiring guide for your board below. It gives every pin and the voltage notes.
9 projects ready to run

Linear actuator out and back
A 12 V linear actuator on an L298N from pins 8 and 9 runs out for 12 s and back for 12 s. Its own limit switches stop it at each end.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, linear actuator
- Level
- Beginner

Light-seeking robot
A two-wheel robot with a photoresistor module on each front corner.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, 2WD robot car chassis, photoresistor module
- Level
- Beginner

Obstacle-avoiding car
A 2WD robot car on an L298N with an HC-SR04 on the front. It drives ahead, and when something comes within 25 cm it backs up, turns and carries on.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, 2WD robot car chassis, HC-SR04 ultrasonic sensor
- Level
- Intermediate

Joystick robot car with an L298N
A thumb stick on A1 and A2 drives a 2WD car on an L298N like a tank: throttle plus steer on one wheel, minus on the other, and a press for slow mode.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, 2WD robot car chassis, joystick
- Level
- Intermediate

Robot car drive
Two gearbox motors on an L298N module from six Uno pins: forward, a turn, a spin on the spot and reverse, with the speed on ENA and ENB.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, DC motor
- Level
- Intermediate

Bluetooth RC car with an HC-05
An HC-05 and a 2WD car on an L298N: type F, B, L, R or S in the module’s box, as a phone app sends them, and the car drives; 0 to 9 set the speed.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, 2WD robot car chassis, HC-05 Bluetooth module, resistor
- Level
- Intermediate

Fire fighting robot
Three flame sensors steer a 2WD car on an L298N to the fire, then a relay runs a water pump while a servo sweeps the nozzle until the flame is out.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, 2WD robot car chassis, flame sensor, servo motor, relay module, +1 more
- Level
- Advanced

Mars rover
A rover that drives three waypoints by dead reckoning, steers around hazards it sees with a sonar mast, samples soil and light.
- Board
- Arduino Uno R3
- Parts
- L298N motor driver, 2WD robot car chassis, push button, SSD1306 OLED display, VL53L0X time-of-flight sensor, +3 more
- Level
- Advanced

Hand gesture controlled car
Tilt an MPU6050 on your hand and a 2WD car follows over nRF24L01 radios: forward, reverse, left, right, and it stops when the signal is lost.
- Board
- Arduino Uno R3
- Parts
- NRF24L01+ 2.4 GHz radio, MPU6050 accelerometer and gyro, L298N motor driver, 2WD robot car chassis
- Level
- Advanced