ESP32-2432S028R (cyd) + reed switch

bonbock
Posts: 3
Joined: Fri Sep 27, 2024 6:19 am

ESP32-2432S028R (cyd) + reed switch

Postby bonbock » Fri Sep 27, 2024 6:28 am

Hi all,
I'm knew here and kinda new on ESP IoT stuff. I built a pipeline with an esp8266 wired to a reed switch that send an http request to the esp32 cyd in case the door opens.
Now I'm wondering, is it possible to directly connect the esp32 cyd to a reed switch?
Thanks a lot for any help ♥️

MicroController
Posts: 1734
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32-2432S028R (cyd) + reed switch

Postby MicroController » Fri Sep 27, 2024 12:05 pm

bonbock wrote:
Fri Sep 27, 2024 6:28 am
Now I'm wondering, is it possible to directly connect the esp32 cyd to a reed switch?
Should be possible. There seem to be a few GPIO pins available: https://randomnerdtutorials.com/esp32-c ... lable-pins

bonbock
Posts: 3
Joined: Fri Sep 27, 2024 6:19 am

Re: ESP32-2432S028R (cyd) + reed switch

Postby bonbock » Sun Sep 29, 2024 7:30 am

Thanks a lot. Yesterday I got my ESP32 cyd and tested on CN1 using GPIO22 and GND. Working fine.
Is it ok to use just ground and a pin with a reed switch or I will have problems?
Thanks again

MicroController
Posts: 1734
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32-2432S028R (cyd) + reed switch

Postby MicroController » Mon Sep 30, 2024 8:34 am

No problems there. Set the pin as input, enable the internal pull up resistor, and you're good.

bonbock
Posts: 3
Joined: Fri Sep 27, 2024 6:19 am

Re: ESP32-2432S028R (cyd) + reed switch

Postby bonbock » Wed Oct 02, 2024 1:02 pm

Perfect, thanks a lot

Who is online

Users browsing this forum: Google [Bot] and 78 guests