Hello all,
I have an Arduino Mega2560, an Ethernet shield and I'm trying to connect them to 2-4 channel YWRobot relay boards. Here's how I have them set up;
The 5 volt pin from the Arduino is connected to the positive bar on the breadboard and the ground connected to the ground bar on the breadboard.
Power to the relays is done by connecting the breadboard positive bar to the VCC pin on each relay and the ground bar connected to the ground pins on each relay.
The Arduino is powered by either a USB cable or by an AC to DC 12 volt 1.5 amp power supply.
And finally, digital pins 22, 23, 24, 25, 26, 27, 28, 29 are connected to the input pins on each of the relay pins on the each relay board.
Every time I plug the power in, no matter which method I use, the PC starts chiming down, as if I unplugged the USB cable even though I didn't. The chime down continues to sound and I can no longer access the web interface. Sometimes it starts to work but then when I toggle one of the pins on the web interface, it causes the problem all over again. This is not specific to one pin as is changes each time I unplug then plug back in (power).
It's obvious that I'm not wiring this correctly. I thought it was a problem with an SD card that I had plugged into it but I have since removed it because I'm not ready to proceed with it as of yet. I posted this in another part of the forum because when I unplugged the the SD card the chime down loop stopped and I immediately posted that I had found the problem. I was wrong. I've been up all day yesterday, all night, into today and I'll sleep once I get this resolved. Thank you in advance for any help offered :o
My_Code.ino (30.3 KB)