STM32 I2C Setup Temperature and Humidity Sensor
ฝัง
- เผยแพร่เมื่อ 1 พ.ค. 2023
- Configuring an STM32 to communicate to a temperature and humidity sensor (SI7021) over I2C.
Understanding I2C a brief introduction: www.ti.com/lit/an/slva704/slv...
Github for code: github.com/belyalov/stm32-hal...
I have one question, when you declare the buffer, how do you decide the size?
Well, each type has a set size, so for example if you know for example you will receive two bytes of data, then youd declare the buffer size of two bytes. If I am unsure perhaps ill decide something arbitary and see how that goes.
could you have a walkthrough for interfacing sht3x with STM32?
Yes I can do
How can we adjust the code to decimal places are printed, not just .0000?
Try %.2f as a format specifier.
Hallo i find it very good .Can you Upload the Code please
Added it in the description.
@@WinterCircuits thank you for the code but it does not work with I use the stm32F411RE and I modified the code but still it does not work. I would like to have your idea on it
@@alkhadizadiallo6362 Do you get an error or is it not communicating? Could you elaborate on the problem please, lets solve this!