In this video we use I2CTools on the Flipper Zero to identify an I2C sensor without any markings. We find the datasheet and learn the various commands the sensor supports. We write a small application to validate the device id matches the datasheet (confirming it is a temperature/humidity sensor) and display the CRC. We use an online tool to validate the CRC8 value matches the expected value.
In follow-up videos we will try to add the sensor to the Unitemp application & look at advanced features such as "clock stretching".
See the comments for links to the various resources used in this video.
Timeline:
0:00 - Introduction
0:45 - Connecting to Flipper
1:27 - Clone flipperzero-i2ctools
2:49 - I2CTools scan
3:28 - i2cdevices.org
4:00 - datasheet
4:22 - understanding datasheet
4:30 - supply voltage
4:38 - operating temperature
4:46 - measurement duration
4:58 - I2C address
5:06 - sleep command
5:10 - wakeup command
5:18 - read RH/Temp
5:41 - diagram of reading
5:53 - read id command
6:08 - CRC8 values
6:27 - RH and T formulas
6:46 - test application
8:35 - validate CRC8
9:17 - summary
Discord: @codeallnight#1337
/ discord
Support the channel: https://ko-fi.com/codeallnight
Смотрите видео [66] Flipper Zero- Identify unknown I2C device онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Derek Jamison 10 Июнь 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,507 раз и оно понравилось 54 посетителям.