Hey guys, I have a 3.3v based microcontroller that I am wanting to use to communicate with SDI-12 sensors. For reference, SDI-12 sensors are 3-wires (12VDC for power, ground, and then a data line that is 5V). 5V is logic 0. 0V is logic 1.
Here is an example from the SDI-12 specifications:
http://www.sdi-12.org/current_specification/SDI-12_version-1_4-Jan-30-2021.pdf

Am I on the right track with using a circuit like this? This uses a p-channel mosfet, and an n-channel mosfet.

I'm guessing it might be better to use 2x mosfets on the top portion so my logic doesn't get inverted? What about for the lower portion?
Thanks and any help or advice is greatly appreciated!
Here is an example from the SDI-12 specifications:
http://www.sdi-12.org/current_specification/SDI-12_version-1_4-Jan-30-2021.pdf

Am I on the right track with using a circuit like this? This uses a p-channel mosfet, and an n-channel mosfet.

I'm guessing it might be better to use 2x mosfets on the top portion so my logic doesn't get inverted? What about for the lower portion?
Thanks and any help or advice is greatly appreciated!