Jump to content

I m having an issue trying to get my relay to work this is what I m using


G+_Donald Kloss
 Share

Recommended Posts

001.jpeg

I’m having an issue trying to get my relay to work this is what I’m using. I’m assuming it needs a 12v power supply, I am also using the know how sketch to use the 1 and 0 keyboard command, when I run it it doesn’t click and I’m not getting voltage out of the other end, I also tried the 5 volts off the arduino uno same issue, hopefully someone might be able to help me

Link to comment
Share on other sites

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Assuming it needs 12V is good, as it's a 12v relay. But exactly how the device is powered should come from the spec sheet. Do you have a part number or link to the spec sheet? Specs will tell you if a 5V arduino can trigger the IN. Maybe it's Open Collector where it must be grounded to trigger the relay. Just can't tell from a photo.

 

Attempting to power from the Arduino is BAD. The relay could easily draw more current than the Arduino can supply.

 

If you totally wanted to play with the device, I would attempt to first get it working without the Arduino. First I would jumper In to GND and see if it triggers (this would be an Open Collector circuit). If that doesn't work try a 1K resistor between VCC and IN.

Link to comment
Share on other sites

Michael is right. Connect your 12 v dc power supply across the VCC and GND connectors.

You will not see output on the three screw connectors. These relays are usually single pole, double throw, meaning that when you apply power to the middle screw, it will appear on one of the outside screws until you energize the relay. At that time, the power will switch to the other outside screw.

The 12 v rating is for the coil that energizes the relay. The contacts are rated 10 amps if using a 250 VAC on the screw connectors, or up to 15 amps if using 125 VAC.

The only question left is will the Arduino "throw" the relay. The best way to determine this is to check the Specifications for the relay, if you can find them. Otherwise, if you feel adventurous, connect your Arduino output pin to the "IN" on the relay and GND on the Arduino to GND on the relay. Outputing a HIGH from the Arduino should throw the relay and a LOW should de-energize the relay.

I have a couple relay modules here that are similar, but they have a small solid state relay on the board also. The Arduino throws the solid state relay, which then throws the large blue relay. Can't tell for sure from your photo if yours has this component.

If you can show us the webpage where you bought these, we might be able to advise you better.

And which KH episode did you get the Arduino code from?

Link to comment
Share on other sites

cosmic Ray I bought it off of the geek website I looked through some other stuff and also looked up the actual relay and they are saying it’s 5v I’m probably not thinking about it the right way I’m going to follow a tutorial I saw using the same type of relay board and we will see what happens

Link to comment
Share on other sites

Michael Hagberg when I hooked up the 12v all I got was the red led and a faint green led when I triggered it, while I have it on the 5v from the arduino it’s a solid green and it turns off and on with the command, haven’t wired anything up to it yet I was assuming that I would hear a clicking noise but I probably have it wired up wrong

Link to comment
Share on other sites

Donald Kloss Do you have an ohmmeter that you can use to check the screw connections to see which ones connect?

Also, these boards come in various voltages .. I have a feeling that spec sheet is for a 5 v relay, not this one which is plainly marked 12v.

I would think the 12v pos goes to VCC, 12v neg goes to GND, signal pin from Arduino goes to IN, and a second ground wire goes from Arduino GND to GND on this board, to complete the path.

Link to comment
Share on other sites

I re did the wiring on it I have the 5v going to the in on the relay, grd to grd, and pin 8 going to vcc, now that I have it this way the relay leds are flashing according to the code, I also wired up a 12v led strip with a 12v source and wired it into comm and wired to NO on the board. I did check resistance and I have resistance between comm and NO and it never changes while the leds are flashing

Link to comment
Share on other sites

When you say you wired the LED strip to the relay. Did you connect one LED power wire to COM and the other to NO? That would be wrong.

 

You should use a separate power pack to drive the LEDs. Connect GND of power supply and LEDs together. Then take the power supply positive to the COM of the relay. Now add another wire from the NO of the relay to the positive of the LEDs.

Link to comment
Share on other sites

It appears you don't have a return path to your Arduino, Grd. Add a jumper from the bread board ground rail to the Arduino Grd.

 

This is one of those two ground things and you may want to include a diode at some point (cathod to the Arduino, the line end). However, for testing you should be good, as long as both power supplies are turned on. That way the 12 volt isn't trying to drive the Arduino and more important the 5 volt isn't trying to drive the 12 Vdc relay. Good luck.

Link to comment
Share on other sites

 Share


×
×
  • Create New...