Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17267 Discussions

Accelerometer and EEPROM for DE0-Nano

Altera_Forum
Honored Contributor II
1,371 Views

Hello All, 

 

How can I read the accelerometer data in VHDL? 

 

I have current ports relate to the accelerometer but with no luck in actually using them: 

 

  • I2C_SCLK 

  • I2C_SDAT 

  • G_SENSOR_CS_N 

  • G_SENSOR_INT 

 

Any direction would be greatly appreciated.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
676 Views

If you look at the example code in the: 

 

Demonstration/DE0_NANO_GSensor directory 

 

you can see how they use the I2C interface to read values from the Accelerometer 

 

Good luck, I'm still trying to make sense of this all also. 

 

-D
0 Kudos
Altera_Forum
Honored Contributor II
676 Views

Thank you for your tip:)

0 Kudos
Reply