Hi all. 1st post but been hanging around a little while! I am coming to the end of my 1st project and wanted to ask a question before i power up - i think i might fry the board if I do? My build is slightly different to my prototype hence it has just come up.
Project is simply an I/O box that takes a binary 12v/0v from my alarm systems outputs and via an optocoupler (to handle the voltage difference) sends it into an Mega which then sends it on to a home automation hub (Hubitat, via Hubduino).
My question is around grounding. I hope that with the image below you can follow. Basically the 12v input side (the cat 5 wires) is grounded to the Arduino power input (which will be 12v out from my alarm panel), and the 5v Arduino side is all grounded to a G pin on the Mega. I realised/learned a couple of things last night:
The 'in' and 'out' ground sides of the optocoupler board are joined by the jumper on the opto board. If it leave it as built, then in theory the 12v side can ground into the Mega G pin? Sounds like bad news to me?
To fix that i can either pull all the jumpers, or can i simply ground the 5v side into the 12v power input as per the 12v side (my simple logic says yes?)
Finally in poking around with a continuity meter to investigate this i realised that all grounds on each side of the optocoupler are linked to each other so I wasted my time making around 50 tiny jumper wires to connect them all up good practice I suppose. Not clear in the photo but there are 3x 8 channel opto's stacked on top of each other!
Thanks in advance for any pointers.