Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Accelerometer and EEPROM for DE0-Nano

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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