0

Arduino with TB6612 and 12 V stepper motor
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Arduino with TB6612 and 12 V stepper motor

by mariamelebari on Fri Feb 15, 2019 7:21 am

Hello,

I am using an Adafruit TB6612 Motor Driver with Nema17 stepper motor controlled with Arduino. I have 12V battery for supplying the motor and at the same time, I need to connect the Arduino with my laptop to send serial data between my laptop and Arduino.


could someone point me in the right direction for a wiring diagram?
What driver pins should be used for the battery?
Is it OK to connect the Arduino to my computer while the battery supplying the circuit?
What the function of STBY and why it was not used in the TB6612 datasheet?

Thanks in advance.

mariamelebari
 
Posts: 2
Joined: Fri Feb 15, 2019 7:13 am

Re: Arduino with TB6612 and 12 V stepper motor

by adafruit_support_bill on Fri Feb 15, 2019 7:39 am

Wiring and pinouts are all covered in the guide: https://learn.adafruit.com/adafruit-tb6 ... t/overview

Is it OK to connect the Arduino to my computer while the battery supplying the circuit?

You didn't specify which Arduino. But most have automatic switching of the power source.

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

Re: Arduino with TB6612 and 12 V stepper motor

by mariamelebari on Fri Feb 15, 2019 8:13 am

I am using Arduino UNO.
I read the guide and apply the same connection but it does not work well. The motor makes a sound and it is just shaking without any rotation

Also, I put 12V battery in Vmotor pins and it dose not rotate
another question is do I have to use STBY pin?
Thank you again

mariamelebari
 
Posts: 2
Joined: Fri Feb 15, 2019 7:13 am

Re: Arduino with TB6612 and 12 V stepper motor

by adafruit_support_bill on Fri Feb 15, 2019 8:37 am

I read the guide and apply the same connection but it does not work well. The motor makes a sound and it is just shaking without any rotation

Please post some photos showing your soldering and connections.
Also please post the electrical specifications for the motor you are using.

Also, I put 12V battery in Vmotor pins and it dose not rotate

Stepper motors require a program to generate step commands. Simply applying power does not make them move.

do I have to use STBY pin?

That is entirely up to the requirements of your project. If you need standby functionality, the STBY pin is a simple way to implement it.
STBY - this is the standby pin for quickly disabling both motors, pulled up to Vcc thru a 10K resistor. Connect to ground to disable.

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

Please be positive and constructive with your questions and comments.