Skip to content

HeikkiHietala/esp32-motor-control-over-Internet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 motor control over the Internet

How to run a motor in both directions with a web user interface

See https://www.sabulo.com/sb/3d-printing-2/the-donald-duck-hypnotizing-machine-with-iot/ for details on how to build this.

The required parts are

The system consists of one C language INO file, which is to be edited for your network access parts, and a PHP application with four files.

The ESP32 is connected to a 9V battery and to the DC motor via the L298H bridge. The battery is also wired to the bridge.

This is the connection scheme, but the Arduino Micro is just a placeholder - Fritzing doesn't have ESP32 yet.

connection scheme

On the website, there is a folder called speed, and in it, the file index.php, and a style sheet. The file creates this user interface:

user interface

Every time you click on the buttons, the system changes the contents of the file speedcontrol.txt and as the ESP32 is set to read the file twice a second, its speed changes according to the value in the file.

Click the image for video.

Watch the video

About

How to run a motor two ways with a web user interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published