Timeline for Relay Module turns on and off in a loop
Current License: CC BY-SA 4.0
20 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Aug 26, 2020 at 8:14 | history | bounty ended | eivindml | ||
S Aug 26, 2020 at 8:14 | history | notice removed | eivindml | ||
Aug 26, 2020 at 8:14 | vote | accept | eivindml | ||
Aug 26, 2020 at 8:12 | comment | added | eivindml | @jfowkes I think that did the trick! :D Thank you very much. I will also take all the safety instructions everyone here gave. | |
Aug 26, 2020 at 7:09 | comment | added | jfowkes | Try running the power for the relay board directly from the 5V on the 12V-to-5V board. That will reduce the voltage drop along the wires to the Arduino. | |
Aug 25, 2020 at 7:25 | answer | added | Sanmveg saini | timeline score: 1 | |
Aug 25, 2020 at 7:11 | answer | added | David Norman | timeline score: 3 | |
Aug 25, 2020 at 6:51 | comment | added | eivindml | Any ideas how I can prevent the reboot? | |
S Aug 25, 2020 at 6:50 | history | bounty started | eivindml | ||
S Aug 25, 2020 at 6:50 | history | notice added | eivindml | Draw attention | |
Aug 24, 2020 at 12:53 | comment | added | eivindml | I just assumed that it didn't reboot, since it was looping so fast, and I didn't think the Arduino booted that fast, but that was a wrong assumption on my part! | |
Aug 24, 2020 at 12:53 | comment | added | eivindml |
Thank you all for your reply! First off: sorry about the Live wiring "floating" around. It's going to be inserted into the relay, but quickly disconnected it when debugging things. But completely removed it now, to really make sure nothing happens. Secondly: I added some delay, and a led flashing sequence to the setup() method, and it confirmed your suspicions that it actually reboots. Now it reboots once, then it works without rebooting after that first reboot. The question is then, how do I prevent the "voltage drop" so it doesn't reboot?
|
|
Aug 22, 2020 at 23:21 | comment | added | jfowkes | When the relay turns on there could be sufficient voltage drop between the 5V regulator and the Arduino to cause the Arduino to reset, either by brownout detect or just having too low a voltage. | |
Aug 22, 2020 at 23:16 | comment | added | jfowkes | What on earth is that bare ended Live wire doing sticking out of your 12V supply?! That's really dangerous! | |
Aug 22, 2020 at 5:50 | comment | added | D.A.S. | Is pwr floating when USB gnd is removed? EMI problem? | |
Aug 21, 2020 at 14:54 | comment | added | Justme | Looking at the code, how do you know it does not restart? | |
Aug 21, 2020 at 13:06 | comment | added | eivindml | Thanks for that. Will look at the mains switching. The Arduino does not restart. You can watch the video, and turn on the sound to verify this. Linked above. | |
Aug 21, 2020 at 12:42 | comment | added | Justme | Does the Arduino restart ( i.e. run the setup) or just run the loop but think that the button is released? I don't know how much the Arduino consumes but turning on the relay increases the regulator heating by 0.5W, so does the regulator heat up and go into thermal shutdown? Also the mains switching looks a bit hazardous. If you plug that device into ungrounded outlet and it happens to switch off the neutral, you can end up with mains coupled to metal case via filter caps. | |
Aug 21, 2020 at 11:24 | history | edited | eivindml | CC BY-SA 4.0 |
edited title
|
Aug 21, 2020 at 11:18 | history | asked | eivindml | CC BY-SA 4.0 |