Page 1 of 1

Diy watch winder by esp32 and stepper motor 28byj-48

Posted: Wed May 01, 2024 2:47 pm
by Garooc
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?

Re: Diy watch winder by esp32 and stepper motor 28byj-48

Posted: Fri May 03, 2024 10:07 pm
by lbernstone
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.

Re: Diy watch winder by esp32 and stepper motor 28byj-48

Posted: Fri Aug 09, 2024 4:36 am
by anjanbabu
Hey Garooc, did you figure this out? I'm also trying to do the same.