G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 What voltage do you have on the Perf board VCC? And I cant see the other end of the GND wire from the perf board to the Arduino, I assume it's connected to a GND pin on the Arduino. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 29, 2018 Author Share Posted January 29, 2018 Jim Hofmann I have a jumper on the grd rail of the arduino and also a jumper on the grd rail from the 12v power supply Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 Then I'm at a loss. The relay should be going on/off with the changes in the Arduino pin. 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 might just wait until I get my actual 5 volt relays should be here on Friday thanks for taking the time to help me out again Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 29, 2018 Share Posted January 29, 2018 FYI you can NOT hook the 5v relay directly to the Arduino pin. The Arduino pins can ONLY source 40ma. It is most likely the relay coil draws more current. 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 will be using an external power supply for the 5 volts also probably a battery pack, I ordered those because I see a lot of videos using the 5v relays as opposed to the 12v relays, theoretically it should work hopefully I also switched the vcc and the in and supplied the 5v from the arduino and the leds flash again so I took the 12v and wired it to in and vcc to pin 7 no relay action, I’m confused as to what is going on it seemed so simple ? Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted January 30, 2018 Share Posted January 30, 2018 Donald Kloss It doesn't matter whether you use 5 v relays, or 12v or whatever. What matters is that you supply VCC with whatever voltage the relays require. If 12v relays, then connect 12 v Positive from external power supply to VCC and 12 v Negative to GND. Connect Arduino output pin to IN on relay board and Arduino GND also to GND on relay board. You had that reversed and saw the LEDs on the relay board flash, but that was just because the are low power and you had it misconnected. You were not able to activate the relay that way because the Arduino does not provide enough current to energize the relay. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 30, 2018 Author Share Posted January 30, 2018 cosmic Ray I do have 12v going to vcc and the ground from my external source and data pin 7 going to in, it works if I unplug power and plug it back in but with the arduino it’s not controlling the relay switch. Will the arduino send the signal to the relay by only being hooked up to the relay, also I tried to tie ground from the arduino to the same rail as the external power supply Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted January 30, 2018 Share Posted January 30, 2018 I made a short video of how this all hooks up. I'm using an external power supply to supply 5v to an Arduino, and also to the VCC and GND pins on a relay board. The relay board is a 5v model, purchased from the link Padre gave us on KH 342, except it is a two relay board instead of the 8 relays that he bought. On the output side of the relay board I'm powering a 12v test light with a 12v LiPo battery. The Arduino is already programmed with the "Blink" example, which just alternately turns on and off a LED mounted on the Arduino, and also triggers pin D13 on the Arduino. In my video, there is one bluish green wire running from D13 on the Arduino to the IN pin on one of the relays. There's no need to run another GND back to the Arduino because the circuit is already being completed through the power ground wire. As the Arduino triggers on and off it triggers the relay on and off which turns the test light on and off. Naturally, any sensor input could be used to trigger the Arduino. The video is still uploading as I type this, but should be done in a few. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 30, 2018 Author Share Posted January 30, 2018 cosmic Ray I followed your setup I have 12v to vcc grd to grd and I tried pin 7,8,13, and even pin 3, I have a load hooked up to com and no, still no go, maybe there is issues with the relays I got. I wired up an external ps for the arduino also, while on pin 13 the internal led flashes but nothing on the relay, I’m going to wait until I get the ones from amazon and then I will attack this again and see what happens. Thank you for taking the time to put a circuit together Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted January 31, 2018 Share Posted January 31, 2018 Donald Kloss You may have burned out the solid state relay by connecting 12v to "IN" and GND, but we can't be sure from here. Also, the onboard LED is connected to Pin D13 on many Arduino boards, but not all. You can check yours here: https://www.arduino.cc/en/Main/Products Select your board and go to that page, and then read through the "Documentation" What code are you running on the Arduino? The internal LED is connected to pin D13 on my Arduino, but on some boards there is an internal current limiting resistor also. You tell Arduino to bypass the internal resistor by declaring that Pin 13 (or whatever pin your board has connected to the internal LED) is an Output with this line of code in the setup() secion: pinMode(13, Output) This bypasses the internal resistor and lets full current flow to your Output pin. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted January 31, 2018 Author Share Posted January 31, 2018 cosmic Ray I was testing it out with the blink test and I had tested the 5 relays that I had and 3 of them did the same thing the other 2 only the green led was on, I was testing it out on a arduino uno and then went to the nano both on pin 13 and also tried to setup a separate led on a different pin and had the same issue, I know the relay works because when I unplug either ground or power to the relay it clicks and turns the device off, I did a basic sketch with only one output and tested it with an led and it flashes like it’s suppose to just the relay isn’t clicking when told to Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted January 31, 2018 Share Posted January 31, 2018 Donald Kloss setting the Arduino aside and only testing the relay board. If you connect GND and VCC leaving IN unconnected. Does the relay click? It should not. This would indicate that relay interface is defective. Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted February 1, 2018 Share Posted February 1, 2018 Would really be great if there was a schematic for this relay board. Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted February 1, 2018 Share Posted February 1, 2018 Donald Kloss Arduino only rates their Nano board to a max input voltage of 7 - 9v, but their Uno up to 12v. arduino.cc - Arduino - Compare As you have an Uno, I would hook your 12v power supply to both the VCC and GND on the Uno, and also the VCC and GND on the realay board, and then the ouput pin of the Arduino to the "IN" pin on the relay board, and then run the Blink program. Maybe you did this (I'm lost among the various things you've tried), but it should work. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted February 1, 2018 Author Share Posted February 1, 2018 Michael Hagberg that is how it’s working now so that probably means I got a bad batch because I removed a new one out of the pack and it did the same exact thing, I ordered some 5v ones off amazon instead of wish hopefully I will have better luck Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted February 1, 2018 Share Posted February 1, 2018 Donald Kloss post a link to the 5v ones you purchased from Amazon. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted February 1, 2018 Author Share Posted February 1, 2018 cosmic Ray so Instead of my external 5v to power the arduino I would use the 12v supply? Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted February 1, 2018 Author Share Posted February 1, 2018 Michael Hagberg your comments are coming up as spam for some reason, but here is the link for the ones I ordered DAOKI® 5 PCS 5v Relay Module for Arduino ARM PIC AVR MCU 5V Indicator Light LED 1 Channel Relay Module Works with Official Arduino Boards https://www.amazon.com/dp/B00XT0OSUQ/ref=cm_sw_r_cp_api_tWOCAbXY222N5 Link to comment Share on other sites More sharing options...
G+_Michael Hagberg Posted February 1, 2018 Share Posted February 1, 2018 Donald Kloss those look good. I just wanted to confirm you purchased 5v relay modules vs 5v relays. Link to comment Share on other sites More sharing options...
G+_Donald Kloss Posted February 1, 2018 Author Share Posted February 1, 2018 Michael Hagberg I made sure this time not like the other ones that say they input 5v but the relay says 12, I couldn’t really find a lot of stuff for the 12v ones most of the tutorials I have seen have been 5v we will find out this weekend if it works Link to comment Share on other sites More sharing options...
G+_Andreas Stevens Posted February 1, 2018 Share Posted February 1, 2018 it can depend, that voltage regulator will tell you it's operation voltage, see if you can get any numbers from the surface mount black 3 pin chip by the VCC pin the 12v you see is the relay max, those particular relay boards are usually 5v, and occasionally 3.3v, not 12 v, they are common for micro controllers like Arduino. I have several different ones and they all roughly look like your picture 5v ground, and a trigger pin. it won't trigger unless you tell it to Link to comment Share on other sites More sharing options...
G+_Andreas Stevens Posted February 1, 2018 Share Posted February 1, 2018 my fault, that's a transistor next to the VCC, if I remember, I'll look at my packages tomorrow, but, I will still say it is most likely a typical 5 volt operation, which is triggered by pin 8 (that you are using in your pictures), ground needs to be tied to the Arduino ground. Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted February 2, 2018 Share Posted February 2, 2018 Donald Kloss Yes, 12v for everything, as long as you use the Nano, which is rated to handle it. Link to comment Share on other sites More sharing options...
G+_John Sullivan Posted February 2, 2018 Share Posted February 2, 2018 Don Hatcher Hi Don, You're right, or that is, you would be if this was just a 12v relay by itself.But what we have here is a 12 v relay module .. it includes not only the relay, but also additional circuitry that does exactly what you're thinking of. Link to comment Share on other sites More sharing options...
Recommended Posts