Serial communication on GPIO pin
I'm trying to use a GPIO port for SDI-12 communication (http://sdi-12.org/specification.php). It's a one wire, 1200 baud serial protocol. I was looking at the onewire.py module by danicampora from Pycom. Can this module be adapted to another one wire protocol?
@jmpratt Would you mind providing me a link for the hardware you used? I was thinking of using the RS485 library and a 485 to uart breakout board.
@jimpower No I haven't. I ended up using a SDI-12 to serial conversion board. So instead of rewriting the SDI-12 protocol, I just read and write to the UART. It works fine, but requires and extra piece of hardware.
@jmpratt Did you have any luck with this?
Thanks @livius . That code is very helpful. Now, who wants to port it to MicroPython for me?
livius last edited by
It is really different protocol
better if you really need it, try to addapt to micropython this one