Skip to main content
Visitor II
May 31, 2020
Question

communicate stm8s with mpu6050

  • May 31, 2020
  • 1 reply
  • 824 views

Hello to all. I am completely new to stm8. I want to communicate stm8s003 with mpu6050 6-axis gyroscope and accelerometer sensor through i2c. Can anyone help me how to code it in st visual develop?

Sorry for my bad English

    This topic has been closed for replies.

    1 reply

    Graduate II
    May 31, 2020

    What drove your choice of STM8?

    Decompose the problem into steps, might not be able to find exact solutions/examples when you get too specific.

    http://embedded-lab.com/blog/starting-stm8-microcontrollers/26/

    https://www.st.com/resource/en/application_note/cd00285854-stm8-8bit-mcus-ic-optimized-examples-stmicroelectronics.pdf

    Start by understanding I2C on your MCU, then use the data sheet / manual for the attached part to access the values/registers within it.