3.3V Dallas one-wire bus on a 5V system

Smajdalf:
I thought the diode is a "feature" of MOSFETs - it is integral (often unwanted) part of the MOSFET and you cannot make one without it. AFAIK when you need a MOSFET that is able to block current in both directions you need to use two MOSFETs.

Indeed.

It is difficult to get a THT MOSFET with low enough threshold voltage for this to work.

IRLZ44N has a threshold of max 2.0V so may work. You don't need very low on resistance. It's a bit expensive a part for this job, though. Better get a ready-made level shifter board instead.

However any NPN transistor can be used instead (with additional Base resistor ofc).

Then you do have to add the diode :slight_smile: