Run away relays when external power applied

So, what do you think might be the problem? I've used two differ boards, two different sketches, and two different relay boards, with and without exteral power. All the basic wiring is correct - (my former trade was Electrician).

Please look at my first post again. I have changed the site I referenced for the original code. With this code load, the relays work up to the point I turn all of them on. Then they "run-away".

I don't think it is the code because i've tried other codes as well.

(As someone suggested, all grounds are connect with a wire, but it does not make a difference.)Preformatted text