Hi All !
Thank you for all the feedback !
@Hero999
I have not tried that configuration, But I will when I get home later.
Also the opto coupler will be used to separate the power from the relays and the logic part of the project,
I have a feeling the power supply part of my project could have the problem,
So the two problems that arise when I apply 230VAC through the relay
- The 595 Chip somehow gets effect and loses the data in its register, I have probed every possible input on that chip and have seen nothing.
- The Arduino USB controller disconnnects as well, this tells me that there could be dip or spike in power.
Now I have not explained How I am powering my project.
I have a meanwell switching power supply
http://www.gmelectronic.com/switching-power-supply-mean-well-lrs-35-12-p332-892This one to be exact
well its Very basic, 1st here is a photo of the power supply board I have built
it consists of two LM2575 switch regulators, and one LM7805 linear voltage regulator
(On the picture of my board it does look different but this is before I made the change)
And I have followed these schematics.
Could a sudden spike in the system cause the switching regulators to do something strange ?
I also noticed that if the relays are closer to the power supply and Arduino the Problem is a lot more apparent !
Any idea guys ?l