2 Replies Latest reply on Apr 19, 2016 3:54 AM by user_1377889

    Solar-Power IoT Device kit - temperature conversion from I2C to Beacon protocol

    guillaume.cathelain_1629701

      I want to import temperature values on Matlab, from the USB bridge.

         

      To do so, I read the serial communication from the USB bridge to my computer:
      0201041AFF310102150005000100001000800000805F9B013100013671CF
      0201041AFF310102150005000100001000800000805F9B013100013571D4
      0201041AFF310102150005000100001000800000805F9B013100013572D2

      According to the Beacon protocol, the temperature is coded on a 8 bits-word, which is here 71, 71, then 72.

         

      To understand how the temperature is coded, I looked into the Si7020_A10 datasheet (the humidity and temperature) sensor. This sensor uses a I2C protocol where the temperature is coded on a 16 bits-word, according to the following formula:
      Temperature(°C) = 175.72*Temp_Code/65535 - 46.85.

         

      Yet, I lack the temperature conversion from 16 bits-word to 8 bits word; and I couldn't find it in the I2C interface of the Motherboard.

         

      Does anyone can help me please?