Grove - I2C Motor Driver - information and source code

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Gunther
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Mon Feb 27, 2012 4:24 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Grove - I2C Motor Driver
Contact:

Re: Grove - I2C Motor Driver - information and source code

Post by Gunther » Fri Jul 06, 2012 1:07 am

I wrote this post when I got mine working. This shows exactly how to set it up.
http://salviusrobot.blogspot.com/2012/0 ... p-and.html

solis568
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Thu Jul 05, 2012 5:07 pm

Re: Grove - I2C Motor Driver - information and source code

Post by solis568 » Fri Jul 06, 2012 1:54 pm

It worked fine at first, all connection are ok. I am using a shield with an arduino and the i2c Motor Driver. I tried the code of the link but it does not work, Motor Driver keep all the LEDs on.
I would like to send something to the Motor Driver and this reply through i2c but i am not sure if it is possible.

Thanks

schmron
Elementary-1
Elementary-1
Posts: 145
Joined: Mon Dec 05, 2011 6:12 am

Re: Grove - I2C Motor Driver - information and source code

Post by schmron » Fri Jul 06, 2012 3:50 pm

solis568 wrote:It worked fine at first, all connection are ok. I am using a shield with an arduino and the i2c Motor Driver. I tried the code of the link but it does not work, Motor Driver keep all the LEDs on.
I would like to send something to the Motor Driver and this reply through i2c but i am not sure if it is possible.

Thanks
Did you use jumper wires for this connection? How long?
Breadboard?
Best regards from Vienna/Austria
Rony

solis568
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Thu Jul 05, 2012 5:07 pm

Re: Grove - I2C Motor Driver - information and source code

Post by solis568 » Fri Jul 06, 2012 7:57 pm

I used grove universal 20cm cable with a shield connected to arduino

cladstrife911
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Fri Dec 14, 2012 1:23 am

Re: Grove - I2C Motor Driver - information and source code

Post by cladstrife911 » Fri Dec 14, 2012 1:54 am

Hello,

I'm trying to flash the frimware of my I2C motor driver but I'm struggling with the AVR programmer. I bought the AVRISP programmer from seeedstudio.
Please see enclosed a picture which shows how I connect to the board.

vit346
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Sun Dec 16, 2012 12:33 am

Re: Grove - I2C Motor Driver - information and source code

Post by vit346 » Sun Dec 16, 2012 12:57 am

cladstrife911 wrote:Hello,

I'm trying to flash the frimware of my I2C motor driver but I'm struggling with the AVR programmer. I bought the AVRISP programmer from seeedstudio.
Please see enclosed a picture which shows how I connect to the board.
A had the similar problem. It was wrong pinout written at the board. But my board looks quite different (may be I have an old version of it).
Try to look at atmega8 datasheet, and check wheather the MISO, MOSI and SCK pins of controller connected to the proper pins of the socket.

Which flashing-program do you use?

rberger
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Wed Dec 19, 2012 11:06 am

Re: Grove - I2C Motor Driver - information and source code

Post by rberger » Wed Dec 19, 2012 11:11 am

So is the actual SOURCE CODE of the firmware somewhere online? The wiki link File:Grove-I2C Motor Driver firmware.zip seems to only have a file with hex values in it, no source code.

I want to know if I can extend the firmware so it can work with dc motors with encoders.

vit346
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Sun Dec 16, 2012 12:33 am

Re: Grove - I2C Motor Driver - information and source code

Post by vit346 » Thu Dec 20, 2012 5:52 pm

rberger wrote:So is the actual SOURCE CODE of the firmware somewhere online? The wiki link File:Grove-I2C Motor Driver firmware.zip seems to only have a file with hex values in it, no source code.

I want to know if I can extend the firmware so it can work with dc motors with encoders.
Do you want to connect encoders to this board? How?

I have written an alternative firmware for this board. I can share the source code if it really helps you.

rberger
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Wed Dec 19, 2012 11:06 am

Re: Grove - I2C Motor Driver - information and source code

Post by rberger » Thu Dec 20, 2012 6:05 pm

vit346 wrote:
rberger wrote:So is the actual SOURCE CODE of the firmware somewhere online? The wiki link File:Grove-I2C Motor Driver firmware.zip seems to only have a file with hex values in it, no source code.

I want to know if I can extend the firmware so it can work with dc motors with encoders.
Do you want to connect encoders to this board? How?

I have written an alternative firmware for this board. I can share the source code if it really helps you.
Yes, that would be helpful. I'm interested in using this with the DFRobot Baron-4WD Mobile Platform which has optical encoders or possibly with the Trosson Budget Bot Chassis whose motors use Hall Effect Quadrature Encoders

vit346
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Sun Dec 16, 2012 12:33 am

Re: Grove - I2C Motor Driver - information and source code

Post by vit346 » Sun Dec 23, 2012 3:23 am

rberger wrote: Yes, that would be helpful. I'm interested in using this with the DFRobot Baron-4WD Mobile Platform which has optical encoders or possibly with the Trosson Budget Bot Chassis whose motors use Hall Effect Quadrature Encoders
Here is alternative firmware for the motor driver. I would be grateful to receive any report from you.

But how do you want to connect encoders? There are only 3 inputs available: MOSI, MISO, SCL. But 2 encoders require 4 inputs.
Last edited by vit346 on Thu Jan 10, 2013 5:30 am, edited 1 time in total.

Post Reply