Source: https://mokxi.com/ideas/l293d-projects
Updated: 2026-11-17

Projects / Project ideas
Project ideas by part

# Projects with an L293D motor driver

12 Mokxi projects use an L293D motor driver (9 intermediate and 3 advanced). They run on Arduino Uno, ESP32 and Raspberry Pi Pico boards. Here are all of them, from “DC motor on an L293D (pins 5, 3 and 4)” to “Plant monitor: light, soil, temperature and a pump”. 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.

First project

## How to pick your first one

- Start with “DC motor on an L293D (pins 5, 3 and 4)”, an intermediate project that needs an L293D motor driver and a DC motor.
- Arduino Uno runs 10 of them, ESP32 1 and Raspberry Pi Pico 1. Start on the board you have, or on an Arduino Uno if you are buying one.
- The parts used most here are the DC motor (9 projects), the potentiometer (4) and the push button (3). With those on hand, most of this list is open to you.
- Before you build one on a real bench, open the L293D motor driver part page for its pins and what each one does.

Projects

## 12 projects ready to run

### DC motor on an L293D (pins 5, 3 and 4)

An L293D runs a DC motor: enable on pin 5 sets the speed with PWM, and pins 3 and 4 set the direction.

Board

Arduino Uno R3

Parts

L293D motor driver, DC motor

Level

Intermediate

Open in the simulator

### A knob drives a motor both ways through an L293D

A potentiometer on A0 runs a DC motor on an L293D (inputs on pins 10 and 9, enable on 11): turn it left of the middle to go one way.

Board

Arduino Uno R3

Parts

L293D motor driver, DC motor, potentiometer

Level

Intermediate

Open in the simulator

### Automatic soap dispenser: ultrasonic on 8 and 7, pump on 2

An HC-SR04 (TRIG 8, ECHO 7) sees a hand under the spout and runs a mini water pump for a moment through an L293D whose 1A input is on pin 2.

Board

Arduino Uno R3

Parts

L293D motor driver, mini water pump, HC-SR04 ultrasonic sensor

Level

Intermediate

Open in the simulator

### Summer fan: four buttons and an L293D (pins 9 and 10)

A DC motor on an L293D with 1A on pin 10 and 2A on pin 9, and four buttons on pins 4 to 7: three speeds and off, chosen with analogWrite.

Board

Arduino Uno R3

Parts

L293D motor driver, DC motor, push button

Level

Intermediate

Open in the simulator

### Three-speed fan on an L293D (pins 9 and 10)

Each press of the button on pin 2 steps a DC motor on an L293D (inputs on pins 9 and 10) through off, slow, medium and fast.

Board

Arduino Uno R3

Parts

L293D motor driver, DC motor, push button, resistor

Level

Intermediate

Open in the simulator

### MicroPython L293D motor on a Pico: a knob sets speed

MicroPython on a Raspberry Pi Pico: a knob on GP26 drives a DC motor both ways on an L293D, IN1 and IN2 on GP15 and GP16 and PWM enable on GP17.

Board

Raspberry Pi Pico

Parts

Potentiometer, L293D motor driver, DC motor

Level

Intermediate

Open in the simulator

### Relay switched by an L293D (pins 5, 3 and 4)

An L293D drives the coil of a 5 V relay from pins 5, 3 and 4, and the relay’s contacts switch a DC motor on and off every two seconds.

Board

Arduino Uno R3

Parts

L293D motor driver, DPDT relay, DC motor

Level

Intermediate

Open in the simulator

### Motor both ways

An L293D H bridge turns a DC motor forward and back from three Uno pins, and shows what braking does that coasting does not.

Board

Arduino Uno R3

Parts

L293D motor driver, DC motor

Level

Intermediate

Open in the simulator

### Spinning zoetrope

An L293D runs a DC motor from a 9 V battery: one button starts and stops it, one reverses it, and a potentiometer sets its speed.

Board

Arduino Uno R3

Parts

L293D motor driver, push button, resistor, potentiometer, DC motor, +1 more

Level

Intermediate

Open in the simulator

### MicroPython knob drives a motor both ways, L293D

MicroPython on an ESP32: a knob on GPIO 36 sets the speed and the direction of a DC motor on an L293D: enable on 13, inputs on 12 and 14.

Board

ESP32-DevKitC V4

Parts

Potentiometer, L293D motor driver, DC motor

Level

Advanced

Open in the simulator

### Claw machine controller

Steer the claw over a prize in the cabinet with the joystick, then press Drop: the winch lowers it, the servo claw grabs.

Board

Arduino Uno R3

Parts

L293D motor driver, arcade button, claw machine cabinet, joystick

Level

Advanced

Open in the simulator

### Plant monitor: light, soil, temperature and a pump

A photoresistor on A0, a soil moisture sensor on A1 and a thermistor on A2 report to an I2C LCD; when the soil dries out.

Board

Arduino Uno R3

Parts

Photoresistor, resistor, 10k NTC thermistor, L293D motor driver, capacitive soil moisture sensor, +2 more

Level

Advanced

Open in the simulator

Keep going

## Wiring, libraries and more ideas

The L293D motor driver part page Every project ideas list

### Library pages

- Adafruit Motor Shield library (AFMotor, v1 shield and L293D clones) library
- LiquidCrystal I2C library

### More project ideas

- Arduino Uno project ideas
- ESP32 project ideas
- Raspberry Pi Pico project ideas
- Projects with a DC motor
- Projects with a potentiometer
- Projects with a push button
- Projects with a water pump
- Projects with an arcade button
- Projects with an ultrasonic sensor
