Data connection to switch
Posted: Sun Feb 07, 2021 11:45 am
i have 12V power line running via switch controlled by ESP32. Data is connected to let's say Pin13. Project is set that movement detection sensor registers movement and ESP32 sends signal to switch via Pin13, which turns LED lamp on. I would like to add Alexa command to turn LET on, that will shoot MQTT message to ESP32.
Question: Should I use same Pin13 to turn signal on for both cases? Use same switch, but wire two data cables (one to Pin13 other one to Pin12)? or use separate ESP32 pins and separate switches ?
Question: Should I use same Pin13 to turn signal on for both cases? Use same switch, but wire two data cables (one to Pin13 other one to Pin12)? or use separate ESP32 pins and separate switches ?