Switch to Bipolar motors #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current steppers can be converted to bipolar. TMC drivers can be used to drive them then, possibly with stealthchop getting them even quieter
TMC drivers are smaller which is nice for the build but might need more pins if UART needed for StealthChop
28BYJ-48 Unipolar to Bipolar Hack & A4988 Wiring Guide
Converting the 28BYJ-48 from a 5-wire unipolar to a 4-wire bipolar motor is a straightforward hardware hack. By default, the motor's two internal coils are tied together in the middle by the red wire. To use a bipolar driver like the A4988, you must break that connection so the coils can operate independently.
1. The Bipolar Hack
2. Wiring to the A4988 Driver
The A4988 driver controls two independent coils (Coil 1 and Coil 2). Because of the hack, your 28BYJ-48's wiring is now paired as Blue/Yellow for one coil, and Pink/Orange for the other.
Wire the motor to the A4988 output pins in this exact order:
(Note: If the motor spins in the opposite direction than expected, simply reverse the entire order of these four wires.)
Logic and Power Pins
⚠️ Important: Current Limiting (VREF)
Running a standard 5V 28BYJ-48 motor on a 12V power supply is perfectly fine, but only if you limit the current. If you skip this step, the A4988 will dump too much current into the tiny coils and melt them immediately.
Before sending any step commands, you must tune the tiny potentiometer on the A4988. Use a multimeter to measure the VREF voltage (between the metal top of the potentiometer and ground). Turn it down until the VREF reads around 0.1V to 0.15V. This limits the output to roughly 100-150mA, which provides plenty of holding torque for a 3D printed mechanism without overheating the motor.
Reference:
Here we should build seperate app based on our app just to test this setup
Here's the app. Time to test https://git.kulzaus.top/osiu97/esp32-28BYJ-48-TMC2209-test
Test and answer question to continue with this point.
osiu97/esp32-28BYJ-48-TMC2209-test#1