In that same area is another 200 kOhms resistor that’s connected to an LED.
The outputs and inputs are the 2pos and 4pos 3.5mm Pitch Terminal Block Connector 300V 8A.
Just want to make sure my values are good and the components I have selected are suitable for my application. Please let me know if I am missing anything or have a value incorrect. Thanks!
Looks good for a first try. Might be tidied up a bit, but that’s secondary.
Two comments:
I think you mean 200 ohms. That would fit with schematic and function.
Also, the LED indicators won’t work. Check the connections.
Take relay coil current (I don’t know your relays). Divide that current by 10. The result will be the right current for transistor base. Take 2.6V (3.3 - 0.7) and divide by that current to get the right R. Than select some standard value near it.
If you use 12V relays their coil current will be smaller (about 5/12 of 5V relay coil current).
I think Piotr is wondering why you’re powering the relay coils from 5 V instead of directly from 12 V?
Only then do the optocouplers makse sense.
I wonder too. Automotive relays are normally 12 V.
The type of relays I am using are the Omron G5LE-1A4 DC5. It looks like the one I have in the schematic are 18v. I’ll need to change that but that is why I am using 5v there - its the trigger voltage.
Even then optocouplers have no sense. They only have sense if you have two separate sources of power. Separate = galvanic isolated. Optocouplers allow to have voltage difference (even 1000V or more) between grounds at both their sides. If you expect such difference (for example during storm strikes) you have to isolate both sides. Here both sides are powered from the same source so no way of isolating them. Relay also gives isolation. Its contacts can be powered from different power source than their coil. But here you also don’t use that isolation as both sides of relay are powered from the same source. In such situation you can even replace relays with transistors, but you can have some problem to protect its output. Depends on the load.
If you want to drive some output powered from the same 12V then you can consider self protected transistors (Omni-FET, Inteli-FET). But you can stay with relays.