Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

TB6612 and stepper motor problem
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

TB6612 and stepper motor problem

by Astma on Sat Dec 04, 2021 6:46 am

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.
20211204_102604.jpg
20211204_102604.jpg (564.67 KiB) Viewed 343 times

20211204_102636.jpg
20211204_102636.jpg (356.88 KiB) Viewed 343 times


Thank you in advance for your answers :)

Astma
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

Re: TB6612 and stepper motor problem

by adafruit_support_bill on Sat Dec 04, 2021 7:45 am

Also my stepper motor has 6 wires so I connected those two wires to GND pins as they should be.

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.

adafruit_support_bill
 
Posts: 82797
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

by Astma on Sat Dec 04, 2021 5:55 pm

I unconeccted those wires and achieved results described before.
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.

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
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

Re: TB6612 and stepper motor problem

by adafruit_support_bill on Sat Dec 04, 2021 9:14 pm

Sounds like you have not correctly connected the motor. Please post a link to the full technical specifications for the motor you are using

adafruit_support_bill
 
Posts: 82797
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

by Astma on Sun Dec 05, 2021 4:53 am

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.

Astma
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

Re: TB6612 and stepper motor problem

by adafruit_support_bill on Sun Dec 05, 2021 7:34 am

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.

adafruit_support_bill
 
Posts: 82797
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

by Astma on Sun Dec 05, 2021 11:18 am

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?

Astma
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

Re: TB6612 and stepper motor problem

by adafruit_support_bill on Sun Dec 05, 2021 2:51 pm

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.

adafruit_support_bill
 
Posts: 82797
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

by Astma on Sun Dec 05, 2021 4:45 pm

Code:
Zrzut ekranu 2021-12-05 212624.png
Zrzut ekranu 2021-12-05 212624.png (29.52 KiB) Viewed 308 times


Soldering:
Zrzut ekranu 2021-12-05 213006.png
Zrzut ekranu 2021-12-05 213006.png (718.82 KiB) Viewed 308 times

Zrzut ekranu 2021-12-05 214014.png
Zrzut ekranu 2021-12-05 214014.png (617.23 KiB) Viewed 308 times

Astma
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

Re: TB6612 and stepper motor problem

by adafruit_support_bill on Sun Dec 05, 2021 5:00 pm

That all looks good. Did you purchase this board directly from Adafruit, or from one of our distributors?

adafruit_support_bill
 
Posts: 82797
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

by Astma on Sun Dec 05, 2021 5:21 pm

I bought it from the distributor.

Astma
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

Re: TB6612 and stepper motor problem

by adafruit_support_bill on Sun Dec 05, 2021 5:42 pm

Please contact the distributor and request a replacement. You can refer them to this thread as authorization from Adafruit.

adafruit_support_bill
 
Posts: 82797
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.