Skip to content

BLE temperature and humidity sensor based on TS0201

License

Notifications You must be signed in to change notification settings

landrysik/BLE_THSensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BLE_THSensor

This repository contains modified BLE firmware from pvvx for (originally zigbee) Tuya thermometers based on TS0201 to allow usage of Sensirion SHT40 sensor IC.

Motivation

I needed some wireless thermometers for more "industrial" applications in my smart home setup where I can't use the whole thermometer body for measure and need only small remote probe. For example in underfloor heating, HVAC (air temperature + RH for intake and exhaust air) or in hot water boiler with solar thermal system (glycol pipe temperature to/from storage tank).

This sensor uses CHT8305 sensing chip which I was not able to buy in "probe form factor". On the other hand SHT40 sensors are available on aliexpress in variety of custom probe-style designs. I previously used modified LYWSD03MMC xiaomi sensors which use SHT40 from factory (so only simple hardware mod was required) but those sensors have LCD screen (which is not needed in most applications) and only use small CR2032 battery (200mAh) with small lifespan. On the other hand this TS0201 uses 2xAAA battery (1200mAh when LiFeS2 cell used) and is more suitable for long term remote sensing where the LCD display is not needed. To use SHT40 in this thermometer I needed to do some modification of the firmware - this is the reason this repository was created

Result

This is the final result - thermoemter with remote sensing probe. PXL_20240307_185227133

Modification

Note

First get the pvvx firmware working and verify everything works fine. More info here: pvvx#3

To do the actual mod, open the thermometer body and desolder the original sensing chip (hot air or just be bit brutal with soldering iron, we won't need the chip...) Drill the hole in the top cover and feed through the wire from the SHT40 sensing probe. Solder the wires according to the image below directly on the ZTU module (it has nice thick pads).PXL_20240307_183910697

The thermometer should work (transmit BLE packets) and you should be able to connect with TelinkMiFlasher.html to modify settings etc. But will report 0.0°C/0% RH as it has now unknown chip and still "original" firmware

Flash the modified firmware

Open TelinkMiFlasher.html and select firmware update file and flash the modified .bin file. After flashing the thermometer should work as usual and report correct temperature and relative humidity.

If anybody reads this - (work in progress, will add more info later) And yes, I will add the actual firmware soon :)

About

BLE temperature and humidity sensor based on TS0201

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.6%
  • Assembly 3.5%
  • Python 2.3%
  • Other 0.6%