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...

ความคิดเห็น • 10

  • @pochuanpeng1729
    @pochuanpeng1729 5 หลายเดือนก่อน

    I have one question, when you declare the buffer, how do you decide the size?

    • @WinterCircuits
      @WinterCircuits  5 หลายเดือนก่อน

      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.

  • @pochuanpeng1729
    @pochuanpeng1729 5 หลายเดือนก่อน

    could you have a walkthrough for interfacing sht3x with STM32?

  • @messedmushroom
    @messedmushroom 8 หลายเดือนก่อน

    How can we adjust the code to decimal places are printed, not just .0000?

  • @alkhadizadiallo6362
    @alkhadizadiallo6362 ปีที่แล้ว +1

    Hallo i find it very good .Can you Upload the Code please

    • @WinterCircuits
      @WinterCircuits  ปีที่แล้ว

      Added it in the description.

    • @alkhadizadiallo6362
      @alkhadizadiallo6362 ปีที่แล้ว

      @@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

    • @WinterCircuits
      @WinterCircuits  ปีที่แล้ว

      @@alkhadizadiallo6362 Do you get an error or is it not communicating? Could you elaborate on the problem please, lets solve this!