Jump to content
I2Cdevlib Forums

MPU 6050 interface with FPGA


Recommended Posts

FYI I have done FPGA interface with mpu6050 but in a way you are probably not interested in.

Because I used a AVR Mega16 free soc I have make a i2c peripheral which is compatible 90% with the true peripheral. This is documented in French in the Wikiversité :

https://fr.wikiversity.org/wiki/Very_High_Speed_Integrated_Circuit_Hardware_Description_Language/Travail_pratique/Utiliser_des_shields_Arduino_avec_les_FPGA#De_l'I2C_pour_accéder_à_d'autres_capteurs

If you have no experience with soc, I think it would be better for you to use Mike Field's work :

http://hamsterworks.co.nz/mediawiki/index.php/MPU6050_sensor_RTL

Good luck

Link to comment
Share on other sites

  • 2 weeks later...

I never use this VHDL code as previously mentioned. It is possible to guess that this VHDL code is not for I2C MPU6050 (or the code is using an external processor to transform i2c to serial). Perhaps it's the problem .

An other Mike Field's project is interesting : http://hamsterworks.co.nz/mediawiki/index.php/I3C2

It's a dedicated i2c processor. Because I was interesting in this project I tried it but it but never work. It's very easy to find why :

- source code of "i3c2_assemble.c" shows clearly the instruction "MASTERACK" (a very very important instruction)

- in VHDL source code  i3c2.vhd you never see this very important instruction. I guess the last version is not published.

It is then impossible to make both files to work together. I have written Mike Field without answer but discover recently when reading Mike Field's source code there is another email address. Have try to email him. FYI I used already other Mike Field source code without problem.

Good luck

 

Link to comment
Share on other sites

  • 5 months later...

after MPU6050 connected to arduino , and work with examples MPU6050 cannot work with my vhdl code ,, because arduino changes smth .. what register of fifo i dont know and how to reset mpu to factory defaults i dont know ..may be someone know it ?  Many things undocumented and no other substitute or market.

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...