Gyro rm 145 connect to microcontroler avr atmega16

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
5 postsPage 1 of 1
5 postsPage 1 of 1

Gyro rm 145 connect to microcontroler avr atmega16

Post by masmo » Tue Jan 04, 2011 12:50 am

Post by masmo
Tue Jan 04, 2011 12:50 am

hai robomania, i have problem. I cant connecting gyro rm 145 to microcontroler avr atmega16, can you help me? Please help me, because this project for my last project in my university. thanks very much!
hai robomania, i have problem. I cant connecting gyro rm 145 to microcontroler avr atmega16, can you help me? Please help me, because this project for my last project in my university. thanks very much!
masmo offline
Newbie
Newbie
Posts: 3
Joined: Tue Jan 04, 2011 12:37 am

source code

Post by masmo » Tue Jan 04, 2011 12:53 am

Post by masmo
Tue Jan 04, 2011 12:53 am

i need source code for it, because sample code in roboard.com cant used. i
i need source code for it, because sample code in roboard.com cant used. i
masmo offline
Newbie
Newbie
Posts: 3
Joined: Tue Jan 04, 2011 12:37 am

Post by i-Bot » Tue Jan 04, 2011 11:52 am

Post by i-Bot
Tue Jan 04, 2011 11:52 am

I don't know of any existing code for this, but it will be fairly simple to do your own.
The G145 uses two analog gyros interfaced over using an I2C analog to digital converter. The schematic, datasheets and example code for the Roboard are on Roboard site. Their example code show the simple sequence of I2C commands used to talk to the AD7998 A2D.
There are lots of I2C master implementations for the Atmega16, so just use the one of these most convenient to your development environment and then perform the same I2C commands
I don't know of any existing code for this, but it will be fairly simple to do your own.
The G145 uses two analog gyros interfaced over using an I2C analog to digital converter. The schematic, datasheets and example code for the Roboard are on Roboard site. Their example code show the simple sequence of I2C commands used to talk to the AD7998 A2D.
There are lots of I2C master implementations for the Atmega16, so just use the one of these most convenient to your development environment and then perform the same I2C commands
i-Bot offline
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am

Post by masmo » Tue Jan 04, 2011 4:34 pm

Post by masmo
Tue Jan 04, 2011 4:34 pm

I have tried, but address 0x21h is not used. In datasheet, the address is 0x40h, It also can not be used. So, what i2c address for A2D?
I have tried, but address 0x21h is not used. In datasheet, the address is 0x40h, It also can not be used. So, what i2c address for A2D?
masmo offline
Newbie
Newbie
Posts: 3
Joined: Tue Jan 04, 2011 12:37 am

Post by josh » Thu Jan 13, 2011 2:23 pm

Post by josh
Thu Jan 13, 2011 2:23 pm

Hi,

the gm-145 address is 0x21h (7-bit).

Therefor, if want to write data to gm-145, you will set 8-bit address (0x21)<<1.

If want to rea data from gm-145, you will set 8-bit address (0x21)<<1 + 1.

you can refer the roboard web http://www.roboard.com/G145.html.
Hi,

the gm-145 address is 0x21h (7-bit).

Therefor, if want to write data to gm-145, you will set 8-bit address (0x21)<<1.

If want to rea data from gm-145, you will set 8-bit address (0x21)<<1 + 1.

you can refer the roboard web http://www.roboard.com/G145.html.
josh offline
Robot Builder
Robot Builder
Posts: 21
Joined: Wed Apr 07, 2010 1:43 am


5 postsPage 1 of 1
5 postsPage 1 of 1