ESP32 INPUT_PULLUP connected to a Mechanical Light Switch
Posted: Tue Aug 17, 2021 7:09 am
Hi all,
I have been recently working on esp32 home automation experiments where I had a quick question on the INPUT_PULLUP Resistor and its working in real world application.
Problem:
I am using a GPIO INPUT Pin with INTERNAL_PULLUP configured to read the state of my Mechanical Switch (not the push button but the actual Light Switches we use at Home).
I understand the PULLUP Resistor value is 40k Ohm as per the data sheet which means ~82.5uA ( V/R = 3.3 /40k ) of current will flow through the switch to reach the GND making the GPIO Pin read LOW.
My issues here, will there be an issue when 82.5uA current flows through the Light Switch which might have its own resistance. Is there a possibility this connection can go wrong and the Switch Path will not lead to GND preventing the GPIO LOW ?
Adding graphical image for reference
Note: The PUSH Button below are to be replaced with the Actual Light Switches.
I have been recently working on esp32 home automation experiments where I had a quick question on the INPUT_PULLUP Resistor and its working in real world application.
Problem:
I am using a GPIO INPUT Pin with INTERNAL_PULLUP configured to read the state of my Mechanical Switch (not the push button but the actual Light Switches we use at Home).
I understand the PULLUP Resistor value is 40k Ohm as per the data sheet which means ~82.5uA ( V/R = 3.3 /40k ) of current will flow through the switch to reach the GND making the GPIO Pin read LOW.
My issues here, will there be an issue when 82.5uA current flows through the Light Switch which might have its own resistance. Is there a possibility this connection can go wrong and the Switch Path will not lead to GND preventing the GPIO LOW ?
Adding graphical image for reference
Note: The PUSH Button below are to be replaced with the Actual Light Switches.