Here is my situation:
I'm using a raspberry Pi to control a H-Bridge. The H-Bridge is not tolerant of both it's inputs being high logic value, which causes a short through the transistors, bypassing the motor. Because the H-bridge requires a 5V input, I slapped together this disaster:
Getting rid of floating input in a logic level converter
Now, as i understand, that circuit sinks current to the RPi, which is not only dangerous, but also crashes the Pi. Not only that, but the RPi boots with the output pins floating, which causes the logic level converter to output 5V, shorting the H-bridge as mentioned.
At, first I got around the issue with having a manual switch disconnect the H-bridge until I could set the RPi pins as outputs, the current sinking was tolerated. Now, I connected UART also through this converter(TX) and a voltage divider(RX) and it just crashes the Pi-s UART, I think it is because the RPi cannot handle sinking that much current. (UART works fine if motors inputs from the RPi are disconnected)
I need a schematic for a 3.3V to 5V logic level converter that acts like this:
1. on floating input, outputs 0V
2. does not sink to input
3. uses PNP and NPN transistors
4. is relatively easy to build
I'm assuming a voltage divider is fine for dropping the RX line from 5 to 3.3