TB6612 and stepper motor problem

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Astma
 
Posts: 6
Joined: Sat Dec 04, 2021 6:16 am

TB6612 and stepper motor problem

Post by Astma »

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 690 times
20211204_102636.jpg
20211204_102636.jpg (356.88 KiB) Viewed 690 times
Thank you in advance for your answers :)

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

Post by adafruit_support_bill »

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.

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

Re: TB6612 and stepper motor problem

Post by Astma »

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?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

Post by adafruit_support_bill »

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

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

Re: TB6612 and stepper motor problem

Post by Astma »

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.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

Post by adafruit_support_bill »

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.

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

Re: TB6612 and stepper motor problem

Post by Astma »

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?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

Post by adafruit_support_bill »

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.

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

Re: TB6612 and stepper motor problem

Post by Astma »

Code:
Zrzut ekranu 2021-12-05 212624.png
Zrzut ekranu 2021-12-05 212624.png (29.52 KiB) Viewed 655 times
Soldering:
Zrzut ekranu 2021-12-05 213006.png
Zrzut ekranu 2021-12-05 213006.png (718.82 KiB) Viewed 655 times
Zrzut ekranu 2021-12-05 214014.png
Zrzut ekranu 2021-12-05 214014.png (617.23 KiB) Viewed 655 times

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

Post by adafruit_support_bill »

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

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

Re: TB6612 and stepper motor problem

Post by Astma »

I bought it from the distributor.

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: TB6612 and stepper motor problem

Post by adafruit_support_bill »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”