arduino with ballast

Hi,
Can I suggest you redesign you PCB with the fact that you have mains voltages on it.
That is:
Keep any mains powered tracks AWAY from any other tracks.
In fact a separate PCB for the relays just run 3 wires between it and the controller PCB. 5V and the two wires from each relay to their respective drive transistors.
Place bypass capacitors AS CLOSE as possible to the 328 IC.
Place the Crystal and its two capacitors AS CLOSE as possible to the controller.
Make all your gnd tracks a lot wider and/or at least make them converge on a central point.

What are you using to power your project?

Thanks.. Tom.. :slight_smile:
If I was doing this, I would be using a Pro Mini, or even a NANO plugged into the PCB using headers.
That way you save all the work of re-inventing the wheel with the controller circuit.

Hi Tom, so sorry for the bugs, I have to learn more about using this forum so thats what I am going to do now
And about the supply I use a cheap 220 to 5 volt transformer
I think the biggest mistake I made was not to use an Arduino Mini Pro for this project, which is why I will redesign another PCB in line with your advice.
thank you tom , from soufiane with love

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.