Showing results for 
Search instead for 
Did you mean: 

I2C interface with adxl345 using stm32f446RE

Associate II

Hello ST,

I am a beginner to I2C protocol could you please help me to go through I2C practical projects on STM32F446RE using  ADXL345 and also with basic projects to do 
please suggest or provide me example code to to do.

Thank you.

Andrew Neil
Evangelist III

I2C is a very long-established and widely-used bus - there are plenty of resources describing I2C; eg,

The official Specification & User Manual from NXP, the inventors of I2C:


Within the STM32CubeIDE, you will find examples of using the I2C of STM32 processors

ST Training videos on I2C (actually for L4 rather than F4, but should give the idea):

STM32L4 training: 05.5 Communication peripherals - Inter-integrated circuit interface (I2C) theory:

STM32L4 training: 05.6 Communication peripherals - Hands-on I2C:


A good diagram here showing the effect of too-high and too-low pullup values:

Note that microcontroller internal pullups (including STM32) are generally "too high".



For details of using the ADXL345, see the manufacturer's datasheet and other support materials:


#I2C #I2Cresources #I2Cbasics #I2Cfundamentals