Newbie here, and I am trying to control a coffee brewing machine, I have some doubts if I am doing it right… I need to control 3 Switches and to read 3 LED’s the coffee machine blinks when there are different status.
My first though would be to opto isolate this readings and control. The coffee maker has 12 VDC on the switches and LED’s. This is the schematic I drew to make a PCB to work with the spark. Opto Isolation seems like a good idea… Thoughts?
Can some one tell me if I am on the right path in regards to the schematic or if I have a mistake I should fix?
SOUT is the headers to control the switches. I plan to connect the negative (GND) leads from the switches to the pin #4 in the header and then each switch to one pin of the header from 1 thru 3.
SIN is the headers for the coffee maker LED’s… Same thing… GND will be connected to pin #4 in the header and then each LED VCC to pin 1 thru 3.
On the other side of the OPTO ISOLATOR I am wiring them to the spark D0 to D2 on the input side since those are interruptible. And D3 to D5.
As for the input I plan to configure the input pins (D0 to D2 as pull up inputs).
Here’s the schematic. Any Help would be greatly appreciated!