Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Connect the MPU 6050 to an FPGA

Status
Not open for further replies.

alsaadawi

Newbie level 3
Newbie level 3
Joined
Feb 28, 2013
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,300
Hello everyone

I am trying to access the MPU 6050 from an FPGA controller, for setting up the FPGA I have programmed the following registers only:
MPU6050_RA_PWR_MGMT_1
MPU6050_RA_GYRO_CONFIG
MPU6050_RA_SMPLRT_DIV

But I am still getting 0x00 when I try to read the Gyro output register.
My question is : which other registers I have to configure to make the gyro working to read it from it ??

Looking forward for your help

Best regards

Alsaadawi
 

Hello everyone

I am trying to access the MPU 6050 from an FPGA controller, for setting up the FPGA I have programmed the following registers only:
MPU6050_RA_PWR_MGMT_1
MPU6050_RA_GYRO_CONFIG
MPU6050_RA_SMPLRT_DIV

But I am still getting 0x00 when I try to read the Gyro output register.
My question is : which other registers I have to configure to make the gyro working to read it from it ??

Looking forward for your help

Best regards

Alsaadawi

1. are you sure i2c connection work.
2. are you usung wrigth i2c address.
3. what are your initialization code exacctly ?
 

Dear aruipksni
Thank you for your replay

Yes I am quite sure from the code, I can read the address of the MPU6050 from 0x75.
My initialization code, is Only writing to the register 0x00 except the three registers
MPU6050_RA_PWR_MGMT_1 -- 0x02
MPU6050_RA_GYRO_CONFIG --0x0F
MPU6050_RA_SMPLRT_DIV -- 0x07

Is there any problem with this ?

- - - Updated - - -

Do I need to configure some thing else before using the Gyro ??
 

Dear aruipksni
Thank you for your replay

Yes I am quite sure from the code, I can read the address of the MPU6050 from 0x75.
My initialization code, is Only writing to the register 0x00 except the three registers
MPU6050_RA_PWR_MGMT_1 -- 0x02
MPU6050_RA_GYRO_CONFIG --0x0F
MPU6050_RA_SMPLRT_DIV -- 0x07

Is there any problem with this ?

- - - Updated - - -

Do I need to configure some thing else before using the Gyro ??

i beleive i2c address should be 0x68 or 0x69.
to disable sleep pin of MPU6050_RA_PWR_MGMT_1 at the end of initialisation.
mabee you will need to configure more register before the sleep deasertion like full range scale of giro and accelometer registers.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top