2025-05-24 4:43 AM
Hello,
I am trying to communicate with an SDI-12 sensor using STM32L072CZY6TR. I'm using UART half-duplex with the following configuration:
My questions:
My current understanding:
Has anyone successfully implemented SDI-12 communication with STM32L0 series? Any schematic examples or code snippets would be greatly appreciated.
Thank you!
2025-05-24 7:26 AM
Hi,
> SDI-12 requires a pull-up resistor on the data line
no.
see : https://www.sdi-12.org/current_specification/SDI-12%20Specification%201.4%20February%2020%202023.pdf
The data line is a bidirectional, three-state, data transfer line.
> Level shifting may be needed between 3.3V and 5V
right. Its 5V level rx + tx , so i would use something like 74LVC1T45GW (single line driver).
1x at 5V supply, to drive the signal line, 1x 3v3 at cpu side.