Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimised Rx 5v UART Protection #1

Open
glynhudson opened this issue Jun 17, 2016 · 0 comments
Open

Optimised Rx 5v UART Protection #1

glynhudson opened this issue Jun 17, 2016 · 0 comments

Comments

@glynhudson
Copy link
Member

The ESP is a 3.3V max device, using a 5V FTDI cable (even just for Rx + Tx) can damage it. The HP monitor currently includes a voltage divider on the RX input (R6 10k, R5 5.6K). This does the job but the same can be achieved with a single 1N4148 diode in reverse bias

Whenever the 5V device transmits, it pulls the bus down, and the diode conducts to 0.5~7V, when it releases or pulls the bus UP to 5V, the diode blocks the current from flowing, and a resistor on the 3.3V device should pull the bus on the 3.3V side back to 3.3V.

http://www.ceus-now.com/how-does-this-logic-level-converter-on-the-adafruit-huzzah-work/

No protection is needed on the Tx since this is transmitting (at 3.3V) from the ESP.

Solution:

Put a 1N4148 diode in series on the Rx line with cathode (-) connected to to the 5V FTDI cable and anode (+) connecting to the ESP, see Huzza shematic:

huzza_schematic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant