I know this will be a really obvious question to some people, but I have bricked about 3 boards doing this so I want to be certain before I brick a fourth. I don't have a lot of experience working with AC voltage, especially crimping / hacking it like what's going on here. Trust me it was my last resort to ask this.
Basically, as a chamber heater I'm using some 120V heat lamps (here in the U.S.). The problem seems to be that when I connect my laptop to the board (if the laptop is plugged in, which it has to be for long-term serial control), sometimes I:
- Hear an electric shock sound -- the board is fried
- Don't hear an electric shock sound -- the board is fried, though
What I interpret from this is that I'm stupidly wiring the 120V heat lamps incorrectly relative to my 3D printer board, such that when I connect it to my charging laptop via USB, the AC voltages are out of phase, causing my board to be fried. Alternatively, it's the 12V/24V power supply that's wired wrong relative to everything else, which also needs to be wired to the same polarity.
I was on the understanding that when crimping a three-wire male electrical cord:
- White = Neutral
- Black = Hot (or Load)
- Green = Ground
... reinforced on the left side of the below image as well:
So, I know that much already. The question is, when I connect this AC outlet to a relay like this, I got NO
, COM
, NC
on one side and IN
, DC+
, DC-
on the other. Which wire goes to COM
, and which goes to D-
? The board uses COM
to denote the voltage that is switched 'on' by the relay, and D-
to denote whatever the shared ground is among, the 3D printer, heat lamp, printer board, etc... (For more info, see link to relay)
This 5V relay says it supports AC loads being managed by an arduino / 3D printer, so I was under the impression that I could connect the white wire to its D-
pin (which also should receive the "GND" for my 3D printer board) and the black wire to its COM
pin. However, what do I do about the green wire? Nothing? Also, was it wrong for me to assume it would support this function when the Arduino is connected to a charging laptop via USB?
Basically, I just need to be sure that my laptop (3-prong), power supply (3-prong), heat lamps (2 or 3 prong) and relay (only 2-prong) all have matching polarities and don't cause an electric shock or fry my board. But I am getting really conflicting results and frying a lot of boards, probably by overthinking this.