A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By mtlevine0
#23174 Yes baby steps are important. Have you tried issuing a "node.restart()" on power up? Also be careful that pin 0 isn't being held low at power up, this causes the device to enter flash mode. I doesn't look like you're using that pin from your lua script though.
User avatar
By user1829
#23222 um, OK!

i added "node.restart()" at the top of the script, now it just boot loops!

i guess i should have asked how to put it into the script!

i'll just reflash firmware and see how it goes.
....
yep, back into operation again :)

so - where does the restart need to be placed?

also - when trying to flash, it won't flash unless the relays are disconnected from the NodeMCU 3.3 VCC & GND - does this mean my relay board if problematic?
User avatar
By user1829
#23276 thanks again for your help!

and well - I DID try to do that, but totally forgot to add the GND to the relay board!

it kinda worked, but the relays were not clicking, I will keep testing tonight...

also - where would I put the "node.restart()" to ensure it gets a fresh start (that's what it is for right?) in a power failure? at the start or end?