Hello,
At the start sorry for my english, I'm not a native speaker.
Recently I bought TB6612 motor driver for my project, without going into details I just need it to control my stepper motor. I connected everything like on this page https://learn.adafruit.com/adafruit-tb6 ... per-motors and my motor started working for few seconds and then just stopped and was stuck in place making noises like it wanted to move but it can't for some reason. Below is what I'm using:
-Arduino Uno Rev3
- Stepper motor JK42HM48-0806 (400 steps, 6V, 0.8A)
- TB6612 from adafruit
- Li-Pol Redox 1300mAh 7,4V 20C for motor power supply
I have made several attempts, I used second motor (becasue i have two of the same model), tried to adjust RPM in code but almost always stepper motor has stucked right after start or after making one/two spins. Also sometimes I have heard motor making noises when only 5V was supplied to TB6612 and battery wasn't connected. Only diffrence in my circuit is that I supplied power to motors through pins under Vmotor text but on the schematic it is connected to VM pin so it should be fine. Also my stepper motor has 6 wires so I connected those two wires to GND pins as they should be.
These are photos of my circuit, I know that this connections are hard to identify but everything is connected as it is on link above.
Thank you in advance for your answers :)
TB6612 and stepper motor problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88138
- Joined: Sat Feb 07, 2009 10:11 am
Re: TB6612 and stepper motor problem
You should leave the center-tap wires unconnected for bipolar operation. Grounding the center-taps forces the motor to operate in unipolar mode where it will have just 50% of the torque available in bipolar mode.Also my stepper motor has 6 wires so I connected those two wires to GND pins as they should be.
- Astma
- Posts: 6
- Joined: Sat Dec 04, 2021 6:16 am
Re: TB6612 and stepper motor problem
I unconeccted those wires and achieved results described before.
Then I have restarted power supply and motor was only buzzing. Also I left usb unconnected and I didin't noticed that motor supply was still connected. After a while motor started buzzing again. Same results with usb connected and power supply unconnected but noise was quieter, is it normal for this driver?Astma wrote: my motor started working for few seconds and then just stopped and was stuck in place making noises like it wanted to move but it can't for some reason.
- adafruit_support_bill
- Posts: 88138
- Joined: Sat Feb 07, 2009 10:11 am
Re: TB6612 and stepper motor problem
Sounds like you have not correctly connected the motor. Please post a link to the full technical specifications for the motor you are using
- Astma
- Posts: 6
- Joined: Sat Dec 04, 2021 6:16 am
Re: TB6612 and stepper motor problem
I bought my motor from this site: https://botland.store/stepper-motors/11 ... 40186.html
Only documentation that i found, my model is 0806: https://nettigo.pl/attachments/534
Black and green wires are connected to MOTORA, blue and red to MOTORB.
Only documentation that i found, my model is 0806: https://nettigo.pl/attachments/534
Black and green wires are connected to MOTORA, blue and red to MOTORB.
- adafruit_support_bill
- Posts: 88138
- Joined: Sat Feb 07, 2009 10:11 am
Re: TB6612 and stepper motor problem
Disconnect the motor and measure the resistance between the black and green wire. Also measure the resistance between the red and blue wire. Sometimes motors are mis-marked, or have an internal short circuit.
Also, powering by USB you may be overloading the polyfuse on the UNO. The fuse will open if the current exceeds 500mA for more than a short time. It will reset after some minutes when it cools down.
Also, powering by USB you may be overloading the polyfuse on the UNO. The fuse will open if the current exceeds 500mA for more than a short time. It will reset after some minutes when it cools down.
- Astma
- Posts: 6
- Joined: Sat Dec 04, 2021 6:16 am
Re: TB6612 and stepper motor problem
I have measured 16.3 Ohm between black and green wire and 16.6 Ohm between red and blue wire. Specification says that it should be about 7.5 Ohm so my measurements are two times larger than they should be. Does it mean that i should supply appropriately more voltage? Also I tested my motors on my friend shield for arduino Adafruit Motor Shield V2 (https://www.adafruit.com/product/1438) and motors were working, slowly but without any issues with stucking or missing steps, we supplied them with 7.4V. Is it possible to run motors on a such low voltage if theoretically my measurments indicate that i should supply them with 13.3V (0.8A * 16.6Ohm)? Maybe my guesses are wrong and I sholdn't calculate this that way?
- adafruit_support_bill
- Posts: 88138
- Joined: Sat Feb 07, 2009 10:11 am
Re: TB6612 and stepper motor problem
I think the specification is assuming that you are wiring it for unipolar operation. You can do that by grounding the center taps as in your original wiring. For Bipolar operation, you could increase the voltage. But it should run OK at 7.4v. It just won't achieve maximum torque.
The Motor Sheild V2 uses the same TB6612 driver chips. So if it works on the shield it should work with the breakout board also.
Please post the code you are using and a photo showing your soldering to the board.
The Motor Sheild V2 uses the same TB6612 driver chips. So if it works on the shield it should work with the breakout board also.
Please post the code you are using and a photo showing your soldering to the board.
- Astma
- Posts: 6
- Joined: Sat Dec 04, 2021 6:16 am
Re: TB6612 and stepper motor problem
Code:
Soldering:
- adafruit_support_bill
- Posts: 88138
- Joined: Sat Feb 07, 2009 10:11 am
Re: TB6612 and stepper motor problem
That all looks good. Did you purchase this board directly from Adafruit, or from one of our distributors?
- Astma
- Posts: 6
- Joined: Sat Dec 04, 2021 6:16 am
Re: TB6612 and stepper motor problem
I bought it from the distributor.
- adafruit_support_bill
- Posts: 88138
- Joined: Sat Feb 07, 2009 10:11 am
Re: TB6612 and stepper motor problem
Please contact the distributor and request a replacement. You can refer them to this thread as authorization from Adafruit.
Please be positive and constructive with your questions and comments.