I have made a project using nodemcu that controls an extension board through an app.
I have hooked it up to a 4 channel relay for the same. But for some reason the led on the relay is working but the relay itself is not working. I tried using another relay board that i had and that is also not working. Can anyone help me?
Sounds like you're not providing enough power to energize the coils. You may need separate power for them.
Relay boards.
Do your own.
On the relay it is written 5 volt. I am powering the relay using the vin pin from the nodemcu. And i am powering the nodemcu using an adapter that outputs 5v at 1 amp. Is it enough?
And just a few weeks ago it worked perfectly. Even at that time i was using the same power source. All i changed was that i soldered the whole circuit on a perf board.
I dont have the resources to make a diy relay
Hmmm, applying the popular methodology of "what changed last?"........
i had not used it for while before i decided to solder it
i can try to power the esp with two lithium ion batteries i have(3.7 v each) but i am not sure that the esp would be able to handle it
The relay coils pull more current than you may expect and often rather more than the manufacturer claims. However, it usually seems to bite people trying to switch all eight on a module. One shouldn't be a problem. It sounds like a wiring problem now.
"All i changed was that i soldered the whole circuit on a perf board."
"I dont have the resources to make a diy relay"
I did perfboard, too; I didn't make a relay.
I dont know...the led corresponding to the relay is turning on but there is neither a clicking sound nor the terminals are getting closed. Even if i try just one relay or all 4 the result is same
I didnt understand what you are trying to say
So should i try with the lithium batteries? Or i can also try with a 9 volt adapter i have
"I didnt understand what you are trying to say"
Obviously.
"Relay boards.
Do your own."
(What's to not understand? Don't tell me.)
the "do your own" part
Oh, another thing to consider is testing the relay module standalone, assuming you have something that will provide 5V.
When you look at the price of a relay module, it's pretty clear that you're not getting any world class relays.
ig i can test it with an arduino
Certainly worth a try.
thanks for your time and i will test it with an arduino then reply back