2023-07-20 9:46 AM - last edited on 2025-01-29 9:55 AM by Andrew Neil
Hello. I am doing stepper motor step control. I am using the "HAL_TIM_PWM_PulseFinishedCallback" function for this operation. Is there a more functional usage method than this? I can't get the max torque of the motor. Can you help me? Motor Driver "TB6600" / Step Motor "Nema17"
Solved! Go to Solution.
2025-01-28 1:48 PM
thank you so much, i have a school project on controlling a stepper motor using a tb6600 with stm32, my stepper motor have 8 wires, do you have any idea how i can wire it ?
2025-01-28 1:56 PM
If you could share the model or technical specifications of the stepper motor you’re using, I’d be able to assist you more accurately and in detail.
2025-01-28 2:08 PM
Example Connection:
Let’s consider connecting an 8-wire stepper motor to a TB6600 driver using the bipolar parallel wiring method. First, we need to identify the coils of the motor and then combine the appropriate wires for the parallel connection. Here’s how to do it step by step.
Step 1: Identify the Coils Using a Multimeter
First, we need to determine which wires belong to which coil. You can do this using a multimeter:
• Set your multimeter to resistance (ohms) mode.
• Measure the resistance between any two wires:
• If you get a low resistance reading, these two wires belong to the same coil.
• If you get infinite resistance, these two wires belong to different coils.
Example:
• Coil 1: Wire 1-2 and Wire 3-4
• Coil 2: Wire 5-6 and Wire 7-8
Each coil has two windings:
• Coil 1: (Winding 1: Wire 1-2, Winding 2: Wire 3-4)
• Coil 2: (Winding 1: Wire 5-6, Winding 2: Wire 7-8)
Step 2: Prepare the Parallel Connection
In a parallel connection, the two windings of the same coil are combined and connected to the driver.
Wiring Diagram:
• Coil 1:
Combine Wire 1 and Wire 3, then connect them to A+.
•Combine Wire 2 and Wire 4, then connect them to A-.
• Coil 2:
Combine Wire 5 and Wire 7, then connect them to B+.
Combine Wire 6 and Wire 8, then connect them to B-.
2025-01-29 9:44 AM
thanks alot brother i appreciate it, in the end i went to university and changed that stepper motor because it got problems, now im using a 4 wires one.
2025-04-22 2:39 PM
Hello Community, I’ve updated my STM32 library for step motor control, making it more organized and user-friendly. I’ve also added a detailed README file to guide its usage. For torque optimization, you need to adjust settings based on the frequency values specified in the motor’s datasheet. By correctly calculating the ARR (Auto-Reload Register) and Prescaler values for the PWM signal in STM32, you can optimize the motor’s maximum torque and speed performance. My library makes it easy to configure these settings. The README includes usage examples and configuration details for your reference. Feel free to reach out if you have any questions—I’d be happy to help! Check out the library here: GitHub Repository