Then just change your program logic accordingly.Īgain, you need to read the thread and understand what the actual problem is. Instead of using the Normally Open position, you could use the normally closed instead. ![]() You do realize that the relay switch has TWO positions. Problem: Re: Relay module is active low.how to reverse thatĪnd - as so often turns out to be the case in these discussions, that is absolutely not the problem once you get down to it! Makes you wonder - why would you get a four relay module and only use one relay? I'm only using one of the relays, so I have a digital output from Arduino to relay 4. You are thinking of running the Arduino Vcc from a serious power supply, which is a totally different matter. It will not provide power or motors and the like. The one derived from the on-board regulator (or the USB which will admittedly provide a little more power). If you don't decouple then the simple way round is to use a separate supply. I would disagree with that as well, providing you apply sufficient decoupling you can run everything off one supply. Read it again and recant!Īrduino Vcc should never be used for powering motors, relays, or other than a couple of LEDs drawing 10 mA or so. You haven't been following the theme here. You need to sing the current to activate the opto to activate the relay so you do need the Arduino ground connecting to the relay board ground if it has a separate supply. Try using external power for the board, if that still doesn't work, you will probably need to tell us more about your setup. I have this relay board in 4/8/16 channels, and I have reset/uploaded sketches countless times with the relay hooked up to my arduino, it never goes low. I second this, it does not go low on reset. My advice - find the actual problem and fix that. So what happens if he wants to use the other relays, eh? D ![]() This should work providing the power link is removed and you only drive one relay. Universal problem reported here but the Arduino Vcc should never be used for powering motors, relays, or other than a couple of LEDs drawing 10 mA or so. ![]() Oh, and if the relay power supply is only used for the relay board, do not deliberately connect its ground to the Arduino ground. I am betting that is the problem and that if you provide a more appropriate power source for the relay board (JD-Vcc), the problem will go away. What does sound of interest now, is that you are powering the relay board from the Arduino Vcc. Someone correct me if I am wrong here, but the Arduino output does not go low when it reboots, it is open circuit and will not actuate the opto-coupler. The Arduino's output will still go low when it reboots, and the relay board would still be active LOW, would it not? So when the Arduino reboots (1-0-1 transition), the relay would still pull in until the microcontroller runs the program again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |