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

spanner888
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Sat Dec 04, 2010 8:30 am
Contact:

Grove - I2C Motor Driver - information and source code

Post by spanner888 » Wed Jan 11, 2012 10:19 am

Hi

I just bought one of these and I am looking for:

1. more info on API and advanced motor control, for example:
- best PWM frequency to use
- what is & how to use the advanced "Channel set, set IN1-IN4 of H-bridge chip, only for advanced users"
- what are all the parameters SETPWMAB, spda/b, SETFREQ, pres
It is possible to wok out most of what these do from the schematic, but this leaves missing information about what the firmware does!

2. I want to use the spare ATMEGA IO pins, so does anyone know where the source code and binaries for the Atmega 8 firmware are? ... or a similar project by someone else that has the source available?

I had to make changes to the example code for it to compile under Arduino 1.0 GUI, will post these changes once I have finished testing.

Fueda
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Sun Oct 24, 2010 4:55 am

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

Post by Fueda » Thu Jan 19, 2012 6:17 am

I have the same questions... =(

And i'd like to know what is the maximum frequency of i2C port communication? Can I use the both standards data rate (100kbit/s or 400kbit/s)?

Best regards,

Fueda

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 » Tue Jan 24, 2012 9:52 pm

spanner888 wrote: 2. I want to use the spare ATMEGA IO pins, so does anyone know where the source code and binaries for the Atmega 8 firmware are? ... or a similar project by someone else that has the source available?
I also need the firmware!
Best regards from Vienna/Austria
Rony

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 » Tue Mar 06, 2012 4:03 am

schmron wrote:
spanner888 wrote: 2. I want to use the spare ATMEGA IO pins, so does anyone know where the source code and binaries for the Atmega 8 firmware are? ... or a similar project by someone else that has the source available?
I also need the firmware!
I don't know anout the IO pins but there is a download link for firmware on the wiki at: http://www.seeedstudio.com/wiki/index.p ... tor_Driver

These are the links it gives (just check under the section that says 'Resources'):

Resources

L298 dual full bridge driver - http://www.st.com/stonline/books/pdf/docs/1773.pdf
AMS 1117CD 5v voltage regulator - http://www.advanced-monolithic.com/pdf/ds1117.pdf
Eagle files of I2C motor_driver - http://garden.seeedstudio.com/images/7/ ... v0.92b.zip
File:Grove-I2C Motor Driver firmware.zip - http://garden.seeedstudio.com/images/7/ ... v0.92b.zip

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 » Wed Mar 07, 2012 12:34 am

Yes we got a mail with this file. Thank you for notice.

Thread can be marked as closed.
Best regards from Vienna/Austria
Rony

spanner888
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Sat Dec 04, 2010 8:30 am
Contact:

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

Post by spanner888 » Wed Mar 07, 2012 9:56 am

.. looking at the firmware zip file mentioned above, shows that is only contains the hex firmware, not the acutal source code.

Seeed seem to have mailed the source to Schmron, but it would be really nice if they could publicly release it :)

.. come on, please - you do say you are open source :)

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 » Thu Jul 05, 2012 5:26 pm

Hi,

My i2c motor driver does not work, I want to change the firmware but I have not enough information, I downloaded the .hex file but not as upload it to the board.
Can you help?
thanks

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 » Thu Jul 05, 2012 11:41 pm

Hello, When I did this I never used the firmware because for me the board worked fine without it. Are you using the board with an Arduino?
solis568 wrote:Hi,

My i2c motor driver does not work, I want to change the firmware but I have not enough information, I downloaded the .hex file but not as upload it to the board.
Can you help?
thanks

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 12:00 am

It worked fine at first but it seems that is locked, now all LEDs remain lit and does not work, I have no other i2c device to test the i2c bus, the motor driver may be blocking the bus i2c. I have to buy a grove rtc to try. I dont know if there is a way to know if the motor driver works, to make it respond messages

Thanks

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 12:01 am

Upps, Yes, i'm using the board with arduino

Post Reply