Im creating a project where im powering a 12v relay and 12v solenoid with a 12v dc adaptor, then connecting these two to an arduino which is then connected to a 5v gas sensor. This is the circuit diagram I'm using:
the only difference I'm doing from this diagram is I'm using a 12v dc power source. why is my relay not turning on. when I power the solenoid from the adaptor it turns on, and then I plug in the arduino into the USB, the relay, sensor, and ardiuno light up. so everything is powered but the sensor isn't shutting of the valve. But I assume this is because they arent being power from the same source.
Tl;dr why won't my 12v dc relay module turn on when u supply it with a external 12v dc power adaptor.
Im really a beginner at this stuff so can anyone help?
sorry im really a beginner at this; my 12v dc adaptor has black and white cables coming out of them so im asuming the black one is negative and the white is postive. I then connect the white cable to the vcc on the other side of the relays screws. Then i connect the gnd of the relay to the black cable and the arduino gnd. and finally i connect the arduino's sig to the d7 pin on the arduino.
is all this correct. Im just really new to this.
yes. however i saw a video where i could check the wires through salt water, and the one that has a reaction is the postive whereas the other is negative.
i didnt have a 3.3k ohm resistor so i tried the water thing and suprisigly it worked. the black cable made a large reaction while the white did nothing. this means that my black cable is the positive and the white is negative. should i proceed with these instructions?