Using the Grove - L298 Dual H-Bridge I2C Motor Driver with Arduino
|Grove - L298 Dual H-Bridge I2C Motor Drive|
These are the specifications that I used from the http://www.seeedstudio.com/wiki/index.php?title=Grove_-_I2C_Motor_Driver
- Default address: 0x28
- Grove compatible
- I2C interface
- Changable slave address
- Speed control: proportional 8-bit
- Number of channels: 2
- Maximum output per channel: 2A
- Input/output voltage on I2C bus: 5v
- Input voltage on screw terminals: 6v-15v
I removed the jumper because I am going to be using a larger voltage supply to power the motors.
One of the issues I ran into with connecting the motor controller to the arduino is that I don't have a Grove Base Shield to connect my Arduino Uno to the motor controller. I had to do some research because I had no idea what pins to plug the motor controller into on the Arduino board. I came up with some useful information. The wire library for the Arduino programming enables communication with I2C / TWI devices. On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5. On the Arduino Mega, SDA is digital pin 20 and SCL is 21. Since I am currently using the Uno I will go with the pin 4 option.