Hi,
I am a total noob in this area so please forgive me if my question is total nonsene!
I want to substitute a button on a board with gpio from a nodemcu (3.3V) - the button is wired with 2 wires and uses 5V.
In a nut shell, I want to be able to control the "button pins" with the nodemcu.
I read that the nodemcu might be able to tolerate 5v on the pins - but that is probably not a nice solution.
Can this be done with a Logic Level Shifter (I have a bidirectional LLC with LV,GND and LV1-4 on one side and the same for higher voltage (HV) on the other)?
The official word from Espressif (makers of the ESP8266 used in the Node MCU) is that the digital pins are 5 volt tolerant, so you shouldn't have any problems at all.
Yes, that should work. Those level shifters are usually bi-directional, but you can run them in one direction only if you wish. I use one module to interface a GPS serial (3.3V) to an Arduino (5.0V). Serial really only runs one way, but like you say, why risk having 5V on a device that expects 3.3V, even if they are "5V tolerant"
Thanks for the quick answers, I guess I could just use it without the LLC.
I would just like to know how I would have to wire it, because I'm interested.
Is my wiring in the attachment false?
I only have two wires from the button...
Thank you very much!
You have to wire in the LV (3.3V) and the HV (5.0V) as well. It won't work without the voltages and grounds. Grounds can be connected together (usually they are)