Arduino with TB6612 and 12 V stepper motor

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mariamelebari
 
Posts: 2
Joined: Fri Feb 15, 2019 7:13 am

Arduino with TB6612 and 12 V stepper motor

Post by mariamelebari »

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.

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

Re: Arduino with TB6612 and 12 V stepper motor

Post by adafruit_support_bill »

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.

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

Re: Arduino with TB6612 and 12 V stepper motor

Post by mariamelebari »

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

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

Re: Arduino with TB6612 and 12 V stepper motor

Post by adafruit_support_bill »

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.

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

Return to “Arduino Shields from Adafruit”