Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By laukejas
#89180
btidey wrote:A NodeMCU should work OK from 5V up on the external Vin. It feeds the regulator just like the USB (with an isolation schottky). Although some NodeMCU may be able to tolerate higher voltages that will because they have a higher voltage capacitor fitted. It is still not a good idea to feed a linear regulator with a higher voltage than necessary as it causes excessive heat and will drain the battery faster.

If you are having to use a higher voltage then I would suspect that there is something wrong with the boost converter particularly around whether it can supply the peak current requirements of the NodeMCU which can go up to 500mA.

As I said feeding this from 5V may be better idea if this can give a decent current. It will also probably work direct from the battery at least when well charged. The on board regulator fitted is not the best from a drop out viewpoint so that would limit how far the battery voltage can fall.

A SG90 servo should only draw about 300mA when running. This should not cause any difficulty even on the same rail as the NodeMCU. I have several servo applications using MG90 (metal gear equivalent) and they power the servos from same supply with just simple decoupling.


Well, I tested it thoroughly, and NODEMCU just doesn't work with 5V for me. Even when I'm powering it directly from my PSU, which can easily supply 2A. With voltage that low, NODEMCU gets stuck booting half of the time, and the other half it boots, but stays extremely unstable. Try to connect to WiFi - and it's stuck again. I tried this with different NODEMCU's. But I'm not surprised - after all, it is declared explicitly that NODEMCU should be supplied by 7-12 volts via the Vin pin. For example like here:

Image

I have been powering my NODEMCU's with as much as 10V and above in many projects running for months on end with no issues... Sure, it may not be very efficient, and the regulator might get a bit warm, but nothing ever failed... or exploded. I mean, if the NODEMCU specifications say it can handle 7-12V, then surely the components of NODEMCU are rated for that.

As for powering it directly from LiPo battery - I don't get how that could possibly work. I mean, ideally, I'd want to supply 3.3V directly to NODEMCU via it's 3V3 pin, without using the onboard regulator. That would be ideal. But the LiPo can discharge down to 3.5V. Finding a LDO with less than 0.2V drop that can supply 500mA with even higher peaks - well, I did my search, but I was unable to find anything affordable and purchasable on Ebay/Aliexpress (other suppliers don't ship to where I live). If you know anything, I'm all ears.

In any case, back to the original question - how can I prevent the SG90 from exploding stuff on my NODEMCU? Is there any solution more reliable than a capacitor? I kind of don't trust them.
User avatar
By schufti
#89181 I'm pretty sure that the servo is not related to the incident. It is the "we don't know what we are doing but we sell cheap" mentality that resulted in the capacitor rated 6.3V what some parts may withstand, others ---

it is the same reason why all the usb-serial converter chips on these modules are powered from the 3.3V rail (instead of usb) while a powered chip is only making sense when the module is powered from usb - resulting in these modules not being usable for low power projects (apart from horrible regulators drawing 10mA quiescent current).
User avatar
By laukejas
#89182
schufti wrote:I'm pretty sure that the servo is not related to the incident. It is the "we don't know what we are doing but we sell cheap" mentality that resulted in the capacitor rated 6.3V what some parts may withstand, others ---

it is the same reason why all the usb-serial converter chips on these modules are powered from the 3.3V rail (instead of usb) while a powered chip is only making sense when the module is powered from usb - resulting in these modules not being usable for low power projects (apart from horrible regulators drawing 10mA quiescent current).


I believe you. But I am 100% sure that the servo is related in some way. Because everything was running perfectly, until the moment when I hit the enter key to send the command over REPL to move the servo. And that is EXACTLY when the explosion occurred. It can't be a coincidence.
User avatar
By btidey
#89193 The voltage range specified for Vin varies according to where you look. I have seen 7-12V, 5-20V, 4.5-10V. On some boards it is labelled as 5V indicating that is the voltage they expect.

The reality is that this pin is connected direct to the input to the regulator that drops down to 3.3V. You should be able to verify that by using a meter to see a direct connection.

If the board is stable when powered from the USB then it would be stable if externally powered from 5V. As you don't experience that then I would check with a meter that you are truly getting 5V at the board itself. If there is some resistance in the connection then it might be causing a voltage drop that is being offset by supplying a higher voltage.

NodeMCU units are manufactured by lots of different outfits. The fact that yours had a 6.3V capacitor indicates it wasn't a full spec item capable of withstanding higher voltages on Vin.

As to why it exploded when you operated the servo, one theory would be that the change in load temporarily raised the 8V feed to the board and took the capacitor stress further beyond its limits.

Either way you should not operate a board with a 6.3V capacitor and more than that feeding it. Either replace with one with a higher rating or find out why feeding a 5V in is not giving stable operation.