background image

 

2 * DC Motor 2V-6V - connnect to CH1 & CH2 Output connecter.  

 

Seeeduino Lite - connect Seeeduino's Grove I2C Interface to Mini Motor Driver's Grove 
Interface.  

 
As shown below: 

 

 
 
 

Software Work  

The Grove - Mini I2C Motor Driver can control motor which is based on the chip DRV8830. 
The DRV8830 isn’t just a dual motor driver, it is a dual H-bridge. An h-bridge is basically a 
specific setup of transistors that allow you to switch direction of current. You can use your 
Arduino to make them spin at any speed. Because the module has 2 H-bridges, you can not only 
make a robot go forwards and backwards, but also turn around by having each wheel spin in a 
different direction. 
Connect Seeeduino to computer use a micro USB cable.  
Now, let's use the Grove - Mini I2C Motor Driver to control two DC motors rotating in the 
positive or opposite direction. 
The below is an example program to be used with an Arduino. The code for this is very basic, 
but you can also change it up and do it your own way.  

/**************************************************************** 
Example code demonstrating the use of the Arduino Library for 
the SparkFun MiniMoto board, which uses the TI DRV8830 IC for I2C 
low-voltage DC motor control. 
  
This code is beerware; if you use it, please buy me (or any other 
SparkFun employee) a cold beverage next time you run into one of 
us at the local. 
  
17 Sep 2013- Mike Hord, SparkFun Electronics 

Содержание Mini I2C

Страница 1: ...ck EMF It features two LEDs for fault indicator and four LEDs to indicate which direction each motor is running GROVE system plug and I2C interface enables you to daisy chain the driver with many othe...

Страница 2: ...ut output voltage on I2C bus 3 3 5 V Communication protocol I2C Interface Function Grove Interface Grove products have a eco system and all have a same connector which can plug onto the Base Shield Co...

Страница 3: ...r direction indicator CH1 Output Connector Motor 1 connector CH2 Output Connector Motor 2 connector Hardware function Change Default maximum drive current The default maximum drive current of each cha...

Страница 4: ...the board Caution Maximum working current of each channel should not be more than 1A So the minimum value of resistor soldered to the reserved pad should not less than 0 2 Change Default I2 C Address...

Страница 5: ...rations Now we are making a demo for Grove Mini I2C Motor Driver v1 0 which require following modules 2 DC Motor 2V 6V Seeeduino Lite Seeeduino Lite is compatible with Arduino If you are using an Ardu...

Страница 6: ...o forwards and backwards but also turn around by having each wheel spin in a different direction Connect Seeeduino to computer use a micro USB cable Now let s use the Grove Mini I2C Motor Driver to co...

Страница 7: ...serial port and then operation continues void loop Serial println Forward motor0 drive 100 motor1 drive 100 delayUntil 1000 Serial println Stop motor0 stop motor1 stop delay 1000 Serial println Revers...

Страница 8: ...otion in response to our fault result motor1 getFault if result FAULT Serial print Motor 1 fault if result OCP Serial println Chip overcurrent if result ILIMIT Serial println Load current limit if res...

Отзывы: