open drain setup with level converter
Posted: Tue Apr 27, 2021 9:45 am
Hello,
I have a device with momentary switches, this device is powered with 0/+5V.
I would like to simulate switch press with external mcu : ESP32
I know that esp32 pins can be configured in open drain mode to simulate a switch, but has the device to control is powered with grater voltage than esp32 should handle should I have to use a level converter?
My thought is that I should. I have some TSX0108E board laying around, according to data-sheet it should be fine to work in open drain mode but I doesn't manage to do it.
I don't understand how to make it work in open drain mode.
Do you have some advices for the setup ?
Should I connect the TSX0108E's OE pin to GND or VCCA with or without resistor ?
Should I drive the esp32 pin in open drain mode or as an output ?
How can I check if this setup work ?
With ohmmeter beetwen GND and TSX's output ? I should see the value changing from ~0_ohm and ~infinite_ohm right ?
I have a device with momentary switches, this device is powered with 0/+5V.
I would like to simulate switch press with external mcu : ESP32
I know that esp32 pins can be configured in open drain mode to simulate a switch, but has the device to control is powered with grater voltage than esp32 should handle should I have to use a level converter?
My thought is that I should. I have some TSX0108E board laying around, according to data-sheet it should be fine to work in open drain mode but I doesn't manage to do it.
I don't understand how to make it work in open drain mode.
Do you have some advices for the setup ?
Should I connect the TSX0108E's OE pin to GND or VCCA with or without resistor ?
Should I drive the esp32 pin in open drain mode or as an output ?
How can I check if this setup work ?
With ohmmeter beetwen GND and TSX's output ? I should see the value changing from ~0_ohm and ~infinite_ohm right ?