Hey guys, I programmed my Arduino to act as a timer and temperature control device. All my tests were running fine, until I hooked an external power supply up.
My Arduino powers and trips a seeedstudio.com Electronic Brick (digital) 5v relay, relay is the He Li Shun HLS8L-DC5V-S-C
I'm using a PC power supply to send 12VDC into the comm. side of the relay, and then a wire comes out other side of relay to a 12VDC 30amp automotive style relay. So basically, I'm using the Arduino to trigger the 5VDC relay to relay 12VDC to trigger the larger relay. The larger automotive relay is grounded via the power supply, and the coil is also energized how I just described above.
Anyway, the weird thing is that when I have the PC power supply turned on, in order to make the 12V relay trigger, the Arduino stops communicating with my PC. Anything running in the serial monitor stops, and if I try to connect to the Arduino to upload an altered code, the IDE gives me an error saying that Com3 port is busy being used by another device/program! I should mention that the Arduino is being powered by my PC through the USB cable, the 12VDC PC power supply is only being used to trigger the 12V relay and nothing else. Funny thing is, if I have the Arduino running the program and then turn the PSU on, it keeps working fine... But if I unplug the Arduino and then plug it back in, bam won't work!
This 5V relay I am using supports up to 250VAC @ 7amps, so I really doubt that my 12VDC PSU is screwing with it... but it almost does seem like some kind of feedback issue. Like I said, the code keeps running but any communication with my PC, trying to upload new code to the Arduino or use the Serial Monitor, is stopped.
Any thoughts?
Binary sketch size: 6074 bytes (of a 32256 byte maximum)
processing.app.SerialException: Serial port 'COM3' already in use. Try quiting any programs that may be using it.
at processing.app.Serial.(Serial.java:144)
at processing.app.Serial.(Serial.java:76)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:619)
processing.app.debug.RunnerException: Serial port 'COM3' already in use. Try quiting any programs that may be using it.
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:619)
** Ok, that's weird. I just double checked all my connections, switched the AC plug on the power supply to a different outlet, one that doesn't share the same power strip my PC is connected to, then I disconnected USB cable from Arduino and from my PC, then I turned the PSU on, then plugged the Arduino side of the USB cable in and then the PC side...
Everything worked fine for about a minute, then the com3 usb port stopped responding, the readout on the serial monitor stopped and now when I try to connect to the Arduino it gives me the Com3 error again lol. The program is still running, it just won't let me connect to the arduino lol.