-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tuya BLE sensor: BTH01 #1
Comments
Разработка PHY6222 только началась. Development of PHY6222 has just begun. |
Соединения на печатной плате BTH01
|
Тестовая прошивка для BTH01 готова, протестирована. |
Hi, first of all thank you for the hard work done! I just flashed your latest firmware BTH01_v05.hex on a BTH01, Bluetooth communication works but the temperature and humidity values were 0, the battery value is fine. I have hope that you can also implement this sensor? Thanks so much again! |
I don't have AHT30 yet. But I added processing code. There is no opportunity to check yet... |
Flashed FW 0.7 and the AHT30 works perfectly! Great job |
Did you flash OTA with the example site or did you solder in? Is this fully functioning firmware to add to home assistant via proxy and still has functional screen or is this just testing getting custom firmware on the device? I tried the example web page but it wouldn't list my test device. |
@pvvx Hi Victor! I have v0.6 flashed via serial. can i update to 0.7 OTA? or do I have to do this over serial a last time? |
v0.x is the firmware for tests. |
he guys. sorry but i dont gt how to get the chip to flash mode? |
In my case it worked with TM left open and RST shortly pulled to GND |
|
with RTS to REST_N i get
but with " RST shortly pulled to GND" it works. |
Linux ? - Everything is crooked there. |
yes, never used windoze in 20 years. so linux is my natural OS. |
I have the same error with windows, trying to reset manually (I use a arduino uno with board with the atmel removed as a serial adapter and reset line is not availble, I think.) |
its tricky...even with another instance inbetween. i started the flash and grounded the pin afterwards shortly. you maybe have to play with the timing |
Since i get the "Reset ok" message, I guess my timing is ok, but it's still unable to read the revision |
also did get the "reset ok" as you can read in my post, but it was not "ok". |
I did this:
Flashed that way first try with no issues. |
REST_N must be released when the Reset OK message occurs. |
New serial adapter is already on it's way 😀 I hope it works then |
On Linux there are always problems with setting the character reception timeout and RTS/DTR on USB-UART adapters. |
I've got exact the same board. And yes, some usb adapters doesn't work with some devices but work with others... I used CH341A programmer in TTL mode on mine. |
Different USB2Serial worked the first time, even though I did the reset manually. |
Firmware 1.6 |
Just an FYI for future readers of this issue thread, in my case with my serial adapter i had to tap REST_N to ground to get it working instead of just going straight to ground and then releasing like was suggested. Was using an older cp210x adapter. |
BTHome is the only open standard with a registered UUID and paid for in the Bluetooth SIG by Allterco. |
подпаял pl2303 а что дальше не понял - где скрипт прошивки ? Какой программой шить? |
значит никто не подскажет (( жаль |
У вас нелады с Python. |
The copy in |
Connecting... |
tx->rx switch? |
it worked! maybe someone will find it useful connect RESET and GND
press enter
disconnect RESET and GND
|
Now I want to adjust the temperature and humidity values. Actual info: Sensor info: Set values
how can I correct the data? |
The coefficients are specified in the datasheet for the CHT8305 sensor. Datasheet for the sensor CHT8305 |
I understand. cannot be adjusted. Thank you very much! |
The coefficients are changed in the program PHY62x2BTHome.html. |
I saw where they were changing |
Linear equation with one variable (7th grade school) |
I understand. cannot be adjusted. Thank you very much! |
just to claify: EVERY senser has its unaccuracies which is expectable and can be retrieved from the datasheets (to bad that chinese oem tend to "optimise" their products for marketing. also is the quality management. so i wont trust +-0.5° for this very cheap CHT8305 sensor. while a sensirion sht4x sensor with +-0.2° cost as much as the whole bht01 module. same for the dht22)! eg just to adjust the offests you need to know WHICH sensor is wrong...this CANT be done with only 2 sensors. |
calibrated sensor |
Measurements must be carried out in a special stable cabinet with constant temperature and humidity. Any convection must be excluded. Temperature and humidity fluctuations must not exceed the accuracy of the results over several hours of measurement. Otherwise, you will not calibrate the sensor. The battery temperature changes over a long period of time. This affects the sensor, as it is located in a single plastic housing. Therefore, the measurements in the temperature-stabilized cabinet will be equalized only after a couple of hours. These thermometers react faster to humidity. If you compare with a sensor located nearby on the same shelf or on the table - due to convection and other factors the difference can reach more than 2 degrees. This is typical and normal for an ordinary apartment.
Without special equipment such as thermal cabinets, etc., such a difference cannot be calibrated. Since in other conditions there will be an even greater difference... |
CHT8305 is not designed to operate from CR2032. At voltages below 2.5V, the CHT8305 produces jumping, understated temperature readings by tens of degrees... |
here we have a nice example from work: in red the calibrated 2,5k€ ahlborn temp sensor. the others are 30€/piece high quality sht85. and you see how crap the sht85 are. many of them, currently i have about 15 of them running, are out of spec. so now think of the 50ct senors we talking about here...... i can show you the same for hum, co2, particel, uv, etc...... |
Thermometers: CGG1M, TS0201 (TS0201S1) At different speeds of temperature change - different readings. Depends on the speed of heating of the sensor with the elements surrounding it. Plus different air convection on the shelf. |
Place and lock all your sensors in a cardboard box and in a closed cabinet. Lamp as a temperature sensor -> https://www.youtube.com/watch?v=29ytMrnC8eQ Please remember to ensure that the battery voltage for CHT8305 is greater than 2.5V. Real temperature: +22С :) |
Sensor: CHT8310 |
Hello
I have a very similar sensor: BTH01
Marking on SoC: PHY6222QCW04IYOJSH (PHY6222QC-W04C)
Marking on sensor: 8305 (CHT8305C)
The case looks cheap, same as TS0202, disassembles very easily
Current price on Aliexpress is less than $2
The text was updated successfully, but these errors were encountered: