enter image description here

I think so, in https://cdn-learn.adafruit.com/assets/assets/000/024/745/original/adafruit_products_schem.png?1429900999

RXD_5V is connected to RXD with a diode labelled 1n4148.

But in my mind I imagine the diode would be facing the other direction. What am I missing please?

  • 1
    \$\begingroup\$ What do you actually want to do? \$\endgroup\$ – Transistor Jul 4 '16 at 17:51
  • \$\begingroup\$ Be safe that I don't fry my 3v microcontroller by reading from a 5v serial signal on an FTDI breakout. \$\endgroup\$ – Ali Afshar Jul 5 '16 at 19:50

It will work if the higher voltage side is driving the lower voltage side.

The diode should face "from" the lower voltage side "to" the higher voltage side with pullups at the lower voltage side (ie. block current flow from the higher voltage signal to the lower voltage signal).

What happens:

  • Higher voltage side is logic high - lower voltage side is pulled high (high=high)
  • Higher voltage side is logic low - current flows through the diode and pulls the line low (low=low).

There is also a simpler hack - just place a resistor in series (eg. 2k2) and rely on the lower voltage side chip ESD protection diodes to clamp the higher voltage (eg. 5V to 3,3V, difference is 1,7V, resistor is 2k2, current flowing through the ESD protection diodes is less than 1mA, the maximum allowed clamping current is specified in the datasheet).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.