mbratch wrote: ↑Tue Oct 04, 2022 6:48 pm
Gandalf wrote: ↑Mon Oct 03, 2022 5:41 pm
I need to show, remotely, the status of an industrial panel. So, in my web application (dashboard) I have buttons and switches icons for each physical button and switch on the panel. When a button or switch changes its state, on the panel, the esp send an mqtt message with the status change to be reflected on the dashboard. For those switches whose possible status are On or Off I thought to use the normally open or normally close free terminals on the respective contactors.
On one of the two NO free terminal of a contactor I will connect the alway On pin, on the other free terminal of the contactor I will connect a pin that will be constantly monitored in the ESP, so when the switch closes, I will receive the high signal on the monitored pin and send the respective mqtt message to my cloud application (dashboard).
Thanks for explaining, that's very helpful!
I still have a question: why is it needed that 8 gpio inputs on your ESP32 need to be connected with one contact on the panel? Maybe I still misunderstand your setup (you indicated in an earlier post, "...my question is if all
8 input pins can detect the high state of a
single output pin")
But in general, from the ESP32 perspective, each GPIO just needs to see 0 ~ 3.3v, and will give you 1 or 0 depending upon 3.3v logic threshold specs. So however you wire your panel outputs to ESP32 inputs, you must ensure that. Secondly, you need to ensure that the maximum current
sink specs of each gpio is not exceeded. You seem to be asking whether the panel can
source enough current. Not much current is required, so I would suspect that it could. Do you know how much current your panel contact can source?
- esp-contactor.png (55.07 KiB) Viewed 5037 times
In the image above, the esp does not control the contactors, it only detects their status.
The contactors can be activated individually or all at once.
The three switches of each contactor are always activated together.
The terminals where the output and inputs are connected to the esp do not have any type of load (they do not have voltage), those terminals will only work as a switch for the esp.
Regardless of the validity of the pins in the image (in the real implementation I will use a port extender MCP23017) :
Pin 18 is my output (always on) orange lines.
Pin 15 (input) detects if the above contactor is active or not.
Pin 14 (input) detects if the contactor in the center is active or not.
Pin 13 (input) detects if the bottom contactor is active or not.
In my actual implementation, there are 8 contactors. All eight contactors can be active at the same time or only 1 or two or none.
If all eight contactors are active, then pin 18 is supplying the high signal to all eight input pins.
Any suggestions would be welcome.
Best regards.