Stepper Motor Controlled by Esp32
by Sporkpork2006 in Circuits > Microcontrollers
4486 Views, 8 Favorites, 0 Comments
Stepper Motor Controlled by Esp32
Stepper motors have multiple coils inside of them in order to rotate at each stage. In order to do this you need motor control boards. This instructable shows how to connect a esp32 to a motor control board so you can control a stepper motor wirelessly.
Step 1: Get Supplies
I used a 28BYJ-48 stepper motor and controller. Of course you also need a esp32 so its wireless and a data traveling usb cable.
Step 2: Wire Esp232
You must have 6 wires that will fit on both sets of pins. On the motor controller board there should be two pins sticking out marked positive and negative. You need to attach a separate 5v power supply to that. To the left of those pins there should be four IN pins. These pins plug into the esp32 in this order.
IN1 to Pin 13 of Esp
IN2 to Pin 12 of Esp
IN3 to Pin 14 of Esp
IN4 to Pin 27 of Esp
Step 3: Programming
I assume that whoever programs a esp32 board already has the proper drivers installed on Arduino IDE but here is a link on how to install the drivers properly.
https://iotdesignpro.com/projects/getting-started-...
Once you have the proper drivers installed to program the esp32 board you will of course need the code. Make sure to read the code and get to the part where you need to enter your SSID and WiFi password.
Downloads
Step 4: Testing
Once the program has been downloaded onto your board and everything is connected you need to find the IP address of the board. Once found type it in your browser. Make sure you're connected to the WiFi you assigned your board to connect to. After all that you should get a screen with two buttons on it. One to make the motor go clockwise and another to go counter clockwise.