Controlling relays with nodemcu
Posted: 08 Mar 2019, 10:25
Hi!
I'm new to this and I'm sorry if this question has been asked before, but I could not find anything that is related to my question.
Anyway, I bought a nodemcu v2 Lua just a couple of days ago. My plan is to use that on my sailboat to protect my batteries from overcharging.
On my boat, I got a wind turbine and when it blows a lot, it charges the batteries (12V system) to high so I need to dump the excess voltage.
So, my plan with espeasy and nodemcu is this:
1. Check battery status.
2. If battery Voltage is over 14.4V it turns on the relay and dumps the excess voltage until Voltage has reached 12.9 Volt
3. When Voltage has reached 12.9V it turns off the relay and everything goes back to normal.
So, I got the relay, nodemcu but now I need to figure out how to write the rules to make it happen. I would appreciate if someone could help me a little bit with this. I have read the wiki but cant figure out how to do it.
Regards
Patrik
I'm new to this and I'm sorry if this question has been asked before, but I could not find anything that is related to my question.
Anyway, I bought a nodemcu v2 Lua just a couple of days ago. My plan is to use that on my sailboat to protect my batteries from overcharging.
On my boat, I got a wind turbine and when it blows a lot, it charges the batteries (12V system) to high so I need to dump the excess voltage.
So, my plan with espeasy and nodemcu is this:
1. Check battery status.
2. If battery Voltage is over 14.4V it turns on the relay and dumps the excess voltage until Voltage has reached 12.9 Volt
3. When Voltage has reached 12.9V it turns off the relay and everything goes back to normal.
So, I got the relay, nodemcu but now I need to figure out how to write the rules to make it happen. I would appreciate if someone could help me a little bit with this. I have read the wiki but cant figure out how to do it.
Regards
Patrik