Skip to content

Commit

Permalink
add PLANT-MON
Browse files Browse the repository at this point in the history
  • Loading branch information
pvvx committed Aug 16, 2024
1 parent c27d782 commit 5a3c3ee
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ATC_MiThermometer/TelinkMiFlasher.html
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@
ext.flg = value.getUint8(7);
s = 'ExtShow: big_number: '+ext.big_number+', small_number: '+ext.small_number+', ext.vtime: '+ext.vtime+' s, flg: '+hex(ext.flg,2);
addAlog(s); UpdExt();
} else if((blkid == 0x25 || blkid == 0x26) && (len > 16)) {
} else if((blkid >= 0x25 && blkid <= 0x28) && (len > 16)) {
// CMD_ID_CFS Get/Set sensor config
devSens.temp_k = value.getUint32(1, true);
devSens.humi_k = value.getUint32(5, true);
Expand All @@ -864,9 +864,7 @@
$('inpHumK').value = (devSens.humi_k/100.0).toFixed(2);
$('inpTempZ').value = (devSens.temp_z/100.0).toFixed(2);
$('inpHumZ').value = (devSens.humi_z/100.0).toFixed(2);

devSens.i2c_addr = value.getUint8(17);
let st = "Unknown";
if(len > 17) { // ver 4.9
devSens.id = value.getUint32(13, true);
let sentype = value.getUint8(18);
Expand All @@ -884,6 +882,12 @@
st = "CHT8215";
else if(sentype == 7)
st = "INA226";
else if(sentype == 8)
st = "MY18B20";
else if(sentype == 9)
st = "MY18B20x2";
else if(sentype == 10)
st = "HX71X";
else if(sentype == 0)
st = "None"
} else {
Expand All @@ -899,7 +903,10 @@
else if(devSens.i2c_addr == 0x88 || devSens.i2c_addr == 0x8A)
st = "SHT4x";
}
$('lblSensor').innerHTML = "<b>Sensor Settings:</b> (" + st + ", I2C address: 0x"+hex(devSens.i2c_addr,2) + ", ID: " + hex(devSens.id, 8) + ")";
let s = "<b>Sensor Settings:</b> (" + st;
if(devSens.i2c_addr != 0)
s += ", I2C address: 0x"+hex(devSens.i2c_addr,2)
$('lblSensor').innerHTML = s + ", ID: " + hex(devSens.id, 8) + ")";
addAlog("Sensor "+st+" id: "+hex(devSens.id, 8)
+ ", I2C address: 0x" + hex(devSens.i2c_addr,2)
+ ", Kt: " + devSens.temp_k
Expand Down
Binary file added PLANT-MON/bin/ff_plmon.zip
Binary file not shown.
Binary file added PLANT-MON/bin/ota_plmon.zip
Binary file not shown.
Binary file added PLANT-MON/img/plm.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pcb1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pcb2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pcb_clean.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pcb_del.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pcb_ok.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pcb_wire.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pow1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pow2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pow3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PLANT-MON/img/plm_pow4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions PLANT-MON/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head><meta charset="utf-8">
<title>Tuya BLE "Plant monitor"</title>
</head>
<body>
<div style="height: auto; width: auto; text-align: center;">
<h2>Tuya BLE "Plant monitor"</h2><hr>
<h2>Bloetooth Plant monitor, Model: ECF-SGS01-A rev1.3</h2>
<img src="img/plm.gif""><br>
<hr>
SoC: TLSR8250F512ET32 (Tuya module: BT3L), Q: 16MHz, Sensor: <br>
<img src="img/plm_pcb1.gif" style="max-width:100%;"><br><br>
<img src="img/plm_pcb2.gif" style="max-width:100%;"><br><br>
<hr>
Average consumption in original firmware from Tuya<br>

Стабилизатор на 2.5V типа XC6206P252MR с маркировкой "65T5"<br>
При отключенной нагрузке выдает 3.08В (на входе 3.3В)! При падении напряжения имеет повышенное потребление (+20мкА)!<br>
Коммутация нагрузки через P-канальный полевой транзистор AO3401A с маркировкой "A19T" коммутируемый N-P-N транзистором SS8050 с маркировкой "Y1".<br>
Нагрузка - это TL555С у которой на выходе меандр 1MHz идущий через резистор 10 кОм на центральный электрод емкостного датчика. От электрода далее на диод типа 1N4148WT с конденсатором порядка 1 мкФ.<br><br>

Среднее потребление в промежутке без замеров 49.5 мкА (период BLE рекламы 1 сек):<br>

<img src="img/plm_pow1.gif" style="max-width:100%;"><br><br>

Замер:<br>

<img src="img/plm_pow2.gif" style="max-width:100%;"><br><br>


Потребление при открытом приложении Smart-Life или активеном режиме соединения с Tuya шлюзом:<br>

<img src="img/plm_pow3.gif" style="max-width:100%;"><br><br>

Старт:<br>

<img src="img/plm_pow4.gif" style="max-width:100%;"><br><br>


<hr>
<a href="bin/ff_plmon.zip">FullFlash bin (Tuya ver)</a><br>
<a href="bin/ota_plmon.zip">OTA bin (Tuya ver)</a><br>
<hr>
</div>
</body>
</html>
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Web files for projects:

[RSH-GW018_DM](https://pvvx.github.io/RSH-GW018_DM) - Tuya Smart Gateway WiFi-BLE-Zigbee

[PLANT-MON](https://pvvx.github.io/PLANT-MON) - Tuya BLE "Plant monitor"

---

[UBIA](https://github.com/pvvx/UBIA)
Expand Down

0 comments on commit 5a3c3ee

Please sign in to comment.