If you want to add humidity and temperature sensors to your home automation sensor, you can — like [Maker’s Fun Duck] did — buy some generic ones for about a buck. For a dollar, you get a little square LCD with sensors and a button. You even get the battery. Can you reprogram the firmware to bend it to your will? As [Duck] shows in the video below, you can.
The device advertises some custom BLE services, but [Duck] didn’t want to use the vendor’s phone app, so he cracked the case open. Inside was a microcontroller with Bluetooth, an LCD driver, a sensor IC, and very little else.
The processor is an ARM Cortex M0, a PHY6222 with very low power consumption. The LCD is a very cheap panel with no drivers onboard. All the drive electronics are on the PCB. The sensor is a CHT8305C which uses I2C.
Luckily, the PHY6222 has a publically available SDK with English documentation. The PCB has two sets of UART pads and it is possible to flash the chip via one of the UARTs.
Eventually, [Duck] put a custom firmware on the box, but we were intrigued by the idea that for a buck you could get a little low-power ARM module with an LCD and a sensor. It seems like you could do more with this, although we are sure the LCD is not very general purpose, surely this little box could act as a panel meter, a countdown timer, or lots of other things with some custom firmware.
These are, of course, knock offs of the slightly more expensive Xiaomi sensors, and those are flashable, too. We aren’t sure how accurate either sensor is, but humidity measurement is a complex topic.
Its very much just a flashing manual for the custom firmware that Victor pvvx made:
https://github.com/pvvx/THB2
Even trying to hide it as much as possible by a fork…
To quote the first sentence of https://github.com/MakersFunDuck/humidity-temperature-sensor-TH05F
Hiding?! I don’t quite see it…
I’m more concerned with HaD linking the YT video and only that. Only the repo would be okay, repo + video is good too but just the YT link?
The link yoy want is in the Youtube text: https://github.com/MakersFunDuck/humidity-temperature-sensor-TH05F
Its not enough !
I never watch video only entries!
To read is a much more efficient activity than to suffer trough a bad overlong video.
But then you’ll miss today’s sponsor! And you won’t get a chance to like and subscribe!
Don’t forget to click the bell to be notified of new videos!
Agreed. And reading is much quieter than a video for those times I can’t (or don’t want) to listen to audio.
Thanks! We usually link into the hack, rather than the video. This one slipped through. I’ll go fix.
Thank you.
It’s hidden because they didn’t use the GH fork functionality (which allows the upstream to find forks easily among other things). And the point of having their own repo seems to be the YT link, no actual contributions to the code.
It’s even worse, since they deleted repo history which makes it seem as if they are the author. Shameful
What’s fun duck’s contribution to the original work?
The github repository has merely an amendment in the readme and an (additional?) picture.
I agree with [the one] that it would be nice if HaD included the link to the original work and acknowledged who had done it instead of who has (just) produced a video from the instructions given in the original repo.
Maybe the replacement firmware could communicate over bluetooth as if it were a keyboard so no need for a custom app. Heck it could enter data directly into a spreadsheet.
You mean a database, right?
Spreadsheet (often)= Database. Spreadsheet programmers learned early on that was what many users were using it for, and so optimized the code so its DB performance wouldn’t completely suck. For small datasets, spreadsheets make fine databases. It also makes it easy to have calculated fields.
Thank you for defending pragmatism.
You mean a .txt file, right?
Touché.
But can it play doom?
I have a number of THB1s running with the Victor/pvvx firmware. Just brilliant; The BTHome protocol is easliy parsed, no BLE bonding necessary. An ESP32 running MicroPython can handle them without problems.
It looks like the PHY6222 can do ZigBee, and someone in the comments mentioned flashing theirs with some ZigBee firmware, but with no actual proof…
Hmm, looking at the various PHY6222 datasheet revisions found online, it looks like the guys at PhyPlus are able to rewrite history… literally, like they removed any reference to 802.15.4 and ZigBee even from the revision history of the document 🤣 I guess they were caught
Yet they keep advertising ZigBee compatibility in marketing material, but can we expect better from chinese companies?
On the other hand, the chip has some impressive low power figures and the radio is 2.4GHz anyways, so something could still be done.
This looks similar to the tuya humidity temperature sensor.
The tuya smart life sensor has some hysteresis so it’s not as accurate but I wonder if the hysteresis can get reduced using reprogramming..I doubt it as I believe it’s inherent in the sensor but it’d be great if it could be accounted for programmatically
But can it play Doom? 🤔