I’m trying desperately to get this Soil/moisture/temp/hum/light package running in esphome, I’m getting nowhere. Its the newer (?) 1.1 version, and the only thing I can find online is for the older version, which was of little help.
The only docs for this new version are here https://github.com/Xinyuan-LilyGO/TTGO-HiGrow which, after parsing thru the code seems to declare the pins, but esphome is not picking up on any of the sensors aside from the soil salt sensor (pin 34). DHT12 seems to be in one-wire mode as opposed to i2c, the bh1750 light sensor is not being found with an i2c scan, just a big mess.
Hoping you guys can shed some insite of something I missed?!
Sorry I know it’s an old thread but did any one get anywhere with this unit?
I’ve quickly run a multimeter over a few pins…
Going from the dht 12 datasheet it seems like it is the scl pin (dht pin 3) that has been grounded rather than gnd (dht pin 4). Guessing this could be (one of) the issue(s).
Not sure about other components yet, will have a proper look later, and may start desoldering and bridging to test but if anyone’s got anywhere then please let me know beforehand…
I wish I got further with this project, I hit a wall. ESPHome also apparently doesn’t support the DHT12 in one-wire mode yet, just in i2c. Supposedly it is on the dev version but I have not tried.
So I’ve got the dht12 and the moisture sensor working… but in doing so have broken the salinity data…
but humidity, temp and water matter most so hey… success…i’sh
Its just on some guys simple code for the v1 hardware i think… needs a soldering iron to get the sensors going though.
Basically there seems to be some crazy power issues with how the sensors were wired…
I desoldered the dht12, moved it up to the through-holes,
Soldered pin1 to 3v3, and pins 3&4 to gnd,
Pin 2 i bent up out of the way, soldered a cable to it, and fed it back to its original solder pin…
As this fixed it, i figured what the hell… and soldered another wire from the through-hole 3v3 to the 3v3 the dht was orginally attached to…
In doing so, it stopped the salinity sensor working, but started the water sensor.
I’m not sure if you actually need to move the dht-12… the wire from 3v3 to 3v3 might do it along with desoldering pin3 and shorting it to pin 4, maybe even just bridging pins 3&4 would work.
But as it’s working in my config i’m not messing any further for now.
What is really strange about this unit, is if you upload the original firmware from that github, it seems to read all the values correctly (if I remember correctly) with no soldering necessary. I have no idea why or how. I’d love to get ESPHome running nicely with this but I’m just not technically minded enough.
after I had found out the gpio04 thing, here was another guy publishing the same
though the i2c still not working for me:(
.yaml:
- id: bus_a
sda: 25
scl: 26
scan: True
console:
[E][esp32-hal-i2c.c:1426] i2cCheckLineState(): Bus Invalid State, TwoWire() Cant init sda=0, scl=0
[C][bh1750.sensor:012]: Setting up BH1750 'BH1750_Illuminance'...
[W][i2c:067]: Too much data to fit in transmitter buffer for address 0x23
[E][component:092]: Component was marked as failed.
Alright, apologies for my earlier post, I jumped the gun too soon. But the below config appears to work for the light sensor. It seems it takes a while for the BH1750 to show up on the i2c bus and ESPHome boot timing will miss it unless you use the setup_priority function on a few components.
I’m using a 1000mAh lipo on these. While the config posted (60s on, 1h off) wouldn’t last much more that a day or so, I am currently doing some power testing on a 60s on, 4hr off config and it looks like I’m getting about 1-2 weeks of battery life.
I’m currently building a little solar charging setup to attach to the sensor so that it tops off the sensor battery during the day so that it can run it continuously.
I’m looking to do an improved version of this board, i2c everything where possible and support better (100% RH) and additional external sensors (ds18b20 or another sht30/31/35) and maybe swap lux sensor for LDR, and inspired by the feather S2 im going to have the power supply to sensors controlled to off by using a second dedicated sensor LDO with enable pin tied to gpio.
My needs also tempt me to add a low current relay with power sense for DC up to ²⁶volt using the INA219 to control a valve per device.
Will keep you in the loop as am on nodered right now but wish to get HA running comfortably