Web controlled relays malfunction when carrying load
i have fitted arduino ethernet shield , 4 single relays, can control 240v. i trying make web interface, control 240v devices in house. post code below. when testing nothing connected relays, works charm. can press button in web browser, digital state shifts accordingly. but whenever connect relay, arduino crashes, , web server stops. i can control other relays flawlessly, when choose relay carrying load - crash! hope can me? code: [select] #include <spi.h> #include <ethernet.h> string commandstring = string(30); byte mac[] = { 0xde, 0xad, 0xbe, 0xef, 0xfe, 0xed }; string portnames[10] = {"","","","","","","port 6","port 7","airport express","forstaerker stuen"}; // initialize ethernet server library ethernetserver server = ethernetserver(80); void setup() { // set ports ( int port = 6; port <= 9; port++ ) { ...