Esp8266 NodeMCU and ServoMotor powered with external power supply

Hi everyone!

I'm building a prototype which I want to run on 4 AA batteries. I've putted them in series so I can get about 5v and 2400mAh.

My question is: How can I power both ESP8266 and servo motor with the same power supply?

I found many tutorials for powering the servo motor with an external power supply, but in all those the Arduino or the NodeMCU were powered by usb.

My guess is to get all together as in the attached image.

Thank you for your help! :slight_smile:

Untitled Diagram.jpg

That should work. Vin takes 4.5-10V so if your AAs are 1.2V rechargeables you'll have to keep them fairly well charged.

Steve

slipstick:
That should work. Vin takes 4.5-10V so if your AAs are 1.2V rechargeables you'll have to keep them fairly well charged.

Steve

Hi Steve!

Thanks for your answer.

To increase the running lifetime of the prototype I'm putting the esp8266 in deep sleep mode, which should be enough to keep it running for some time no?

Do you have any more suggestions?

Thanks again