G+_Donald Kloss Posted January 28, 2018 Share Posted January 28, 2018 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 More sharing options...
G+_Michael Hagberg Posted January 28, 2018 Share Posted January 28, 2018 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 More sharing options...
G+_Donald Kloss Posted January 28, 2018 Author Share Posted January 28, 2018 Michael Hagberg thanks for the info I couldn’t find a spec sheet on it to see but I will definitely try that out to see what happens Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted January 28, 2018 Share Posted January 28, 2018 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 More sharing options...
G+_Donald Kloss Posted January 28, 2018 Author Share Posted January 28, 2018 This is the spec sheet had to figure out where I ordered them from Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 28, 2018 Author Share Posted January 28, 2018 cosmic Ray it was on kh 342 the it remote sensor one he tested the single relay with the keyboard first Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted January 29, 2018 Share Posted January 29, 2018 Donald Kloss Ok, STOP! The spec sheet says that VCC is 5 V, not 12 V. That does not seem right .. can you give me the link to where you bought it? I'd like to have a look around. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 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 More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 LOL, definitely NOT written by a person who speaks English. I looked at units on banggood and they have 12v VCC that will trigger with 5v IN from an Arduino pin. Can you describe the LEDs when you apply VCC and when you connect a resister from VCC to IN? Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 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 More sharing options...
G+_John Sullivan Posted January 29, 2018 Share Posted January 29, 2018 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 More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 Donald Kloss looks like it's working fine. As Cosmic says, hook up something on the relay contacts. Link to comment Share on other sites More sharing options...
G+_Don Hatcher Posted January 29, 2018 Share Posted January 29, 2018 You will have to trigger a transistor with arduino to engage the relay coil Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 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 More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 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 More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 Michael Hagberg that’s how I have it wired up Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 Do you have 5v or 12v on VCC? My guess is that although the poorly written specs state 5v that you would actually need 12v on VCC to trigger the relay. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 Michael Hagberg I was able to get the relay to click now but only when I unplug the ground I’m not getting anything from the arduino, I also just ordered some 5v relays from amazon ?. I have pin 8 wired to the in Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 Something isn't right. Could you take a photo showing how the wires are connected? Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 Michael Hagberg hopefully this one is clear Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 You need a GND wire between the Ardunio and the perf board. How are you powering the perf board with 12v? Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 Michael Hagberg I put another ground from the arduino to the perf board same issue, I also tried moving the ground from the perf board to the arduino, it’s probably something I’m over looking Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 How are you powering the perf board with 12v? Take a picture of the supply connected to the perf board. Also showing GND between Arduino and Perf Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 Michael Hagberg has to upload it this way can only add 1 picture at a time hopefully this works, I appreciate you helping me outphotos.google.com - New photo by Donald Kloss Link to comment Share on other sites More sharing options...
G+_Jim Hofmann Posted January 29, 2018 Share Posted January 29, 2018 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 More sharing options...
Recommended Posts