Diy watch winder by esp32 and stepper motor 28byj-48
Diy watch winder by esp32 and stepper motor 28byj-48
I'm creating a watch winder using a Stepper Motor 28BYJ-48 controlled by an ESP32 devkit v1 over WiFi through a mobile phone, with a ULN2003 as the driver for the stepper motor.I want to use this code from github; https://github.com/mwood77/winderoo but it's written for dc motor and l298n driver. Anybody can help me to how should I change the code to can use for my watch winder?
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Diy watch winder by esp32 and stepper motor 28byj-48
Familiarize yourself with how the stepper works by following this tutorial
Then, you can modify how MotorControl.cpp works to move the motor. A stepper doesn't have an on/off switch, so you will need to set up a low priority FreeRTOS task that looks at a variable state (eg int8_t step_direction=-1 is anti-clockwise) and moves a number of steps in that direction, then delays to let the system process.
Then, you can modify how MotorControl.cpp works to move the motor. A stepper doesn't have an on/off switch, so you will need to set up a low priority FreeRTOS task that looks at a variable state (eg int8_t step_direction=-1 is anti-clockwise) and moves a number of steps in that direction, then delays to let the system process.
Re: Diy watch winder by esp32 and stepper motor 28byj-48
Hey Garooc, did you figure this out? I'm also trying to do the same.
Who is online
Users browsing this forum: No registered users and 35 guests