-->
Page 2 of 5

Re: Best for long battery power source

PostPosted: Thu May 18, 2017 12:23 pm
by faramon
I use npn transistor, litle input current on base can switch relay and this works well

Re: Best for long battery power source

PostPosted: Thu May 18, 2017 2:08 pm
by rudy
But where is the relay current coming from? If from the batteries then you have a problem if the relay is on for a significant time. You didn't say how you are using the relay or what you are switching on.

Re: Best for long battery power source

PostPosted: Thu May 18, 2017 2:34 pm
by faramon
i have two projects on wifi, one is with nodemcu and relay. Nodemcu is on the main electricity within proper 220 to 5 v microusb. Relay is on 5volts on nodemcu. This is wall socket. And second project would be motion sensor that works within nodemcu that is powered by baterry holder with microusb. This part is the problem because i think that battery holder will empty the batteries very soon if nodemcu with motion sensor or dht22 is every minute live on wifi because i read the temp or motion with mqtt on lua on nodemcu

Re: Best for long battery power source

PostPosted: Fri May 19, 2017 2:00 am
by schufti
if you had done at least a little recherche in the forum on topic low-power, battery, deep-sleep etc. you should allready know that nodemcu (not esp in general) is absolutely incompatible with battery and low power.