Arduino-SDI-12 icon indicating copy to clipboard operation
Arduino-SDI-12 copied to clipboard

ESPhome

Open luis-n4489 opened this issue 2 years ago • 4 comments

any way of converting this for use in ESPHome? or HA?

luis-n4489 avatar Mar 14 '23 18:03 luis-n4489

This library only handles direct communication with the SDI-12. You'd have to write a wrapper to convert it to the right format for ESPHome. I've never looked at the codebase for ESPHome, so I have no idea how hard it would be. Others have had success running the library on ESP8266 and ESP32, so it's possible. Once you have the sensor working with ESPHome, I'm guessing getting the data from there to HomeAssistant would be straightforward.

SRGDamia1 avatar Mar 14 '23 19:03 SRGDamia1

I will give it my best :)

luis-n4489 avatar Mar 14 '23 19:03 luis-n4489

Also, this is assuming the SDI-12 sensor is connected directly to a GPIO pin directly to the ESP board?

luis-n4489 avatar Mar 14 '23 19:03 luis-n4489

The library assumes the sensor is directly connected, but depending on your sensor, you may need to use level shifters. Many SDI-12 sensors require 12V power and 5V TTL logic.

SRGDamia1 avatar Mar 14 '23 20:03 SRGDamia1