The Motor Driver TB6612FNG Module motor driver can control up to two DC motors at a constant current of 1.2A (3.2A peak). Two input signals (IN1 and IN2) can be used to control the motor in one of four function modes – CW, CCW, short-brake, and stop.
The two motor outputs (A and B) can be separately controlled, the speed of each motor is controlled via a PWM input signal with a frequency up to 100kHz. The STBY pin should be pulled high to take the motor out of standby mode.
Logic supply voltage (VCC) can be in the range of 2.7-5.5VDC, while the motor supply (VM) is limited to a maximum voltage of 15VDC. The output current is rated up to 1.2A per channel (or up to 3.2A for a short, single pulse).
Board comes with all components installed as shown. Decoupling capacitors are included on both supply lines. All pins of the TB6612FNG are broken out to two 0.1″ pitch headers; the pins are arranged such that input pins are on one side and output pins are on the other.
Features:
- Output current: Iout=1.2A(average) / 3.2A (peak)
- Standby control to save power
- CW/CCW/short break/stop motor control modes
- Built-in thermal shutdown circuit and a low voltage detecting circuit
- All pins of the TB6612FNG broken out to 0.1″ spaced pins
Package Contains
1x TB6612FNG Motor Driver
Specifications:
Driver Model | TB6612FNG |
Operating Voltage(VDC) | 15 |
Peak Current (A) | 3.2 |
Continuous Current (A) | 1.2 |
No. of Channels | 1 |
Dimensions in mm (LxWxH) | 30 x 20 x 10 |
Sample Code
#define PWM1 3
#define AIN1 4
#define AIN2 5
#define PWM2 6
#define BIN1 7
#define BIN2 8
int pot;
int out;
void setup() {
Serial.begin(9600);
pinMode(PWM1,OUTPUT);
pinMode(AIN1,OUTPUT);
pinMode(AIN2,OUTPUT);
pinMode(PWM2,OUTPUT);
pinMode(BIN1,OUTPUT);
pinMode(BIN2,OUTPUT);
}
void loop() {
digitalWrite(AIN1,HIGH); //Motor A Rotate Clockwise
digitalWrite(AIN2,LOW);
digitalWrite(BIN1,HIGH); //Motor B Rotate Clockwise
digitalWrite(BIN2,LOW);
pot=analogRead(A0);
out=map(pot,0,1023,0,255);
analogWrite(PWM1,out); //Speed control of Motor A
analogWrite(PWM2,out); //Speed control of Motor B
}
Reviews
There are no reviews yet.