cancel
Showing results for 
Search instead for 
Did you mean: 

communicate stm8s with mpu6050

oebra.1
Associate

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

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..