MaxHeadRoom
- Joined Jul 18, 2013
- 30,733
The logic gate Mosfet idea would reduce it even more!
Max.
Max.
Thanks @ElectricSpidey - the ESP8266 NodeMCU does have a voltage regulator onboard, and powering at 5v to Vin is pretty common.That chip runs on 3.3 volts...not 5, so make sure it has the onboard 3.3 regulator if you plan to power it with 5 volts.
Good to know, that is what the root of my question was about - whether using a voltage divider to power an MCU was a good idea. Since I am not driving the motor from the MCU, do you still suggest the 7805 with heat/efficiency downsides over a Buck Converter? It also seems like some of the other suggestions like the 2N3904, 2N2222A or 2N7000 could work since the ESP8266 NodeMCU draws <200mA of current?Voltage dividers are not used to power devices...choose a 7805 TO220 regulator, your micro will thank you for it, considering it will have *enough to deal with driving a motor. (*RFI and other noise)
While V and I are important you can't have both without W. The 78L05 is limited to 700mW so it depends on just how much current the ESP module draws. The T-220 cased LM340T5 does not have a W rating and is noted as "internally limited". Which means it will give up to 2.2A without failing IF properly heatsinked. Costs more than a penny but still rather cheap and more robust. If this is for actual use and not just an exercise I would wholeheartedly recommend a regulator.If the ESP really draws 200mA then you will have to dissipate 1.4 watts, from the 7805.
Thanks @SamR - Unfortunately I have read a number of posts where others have tried using the ESP @ 12v and the regulator doesn't hold up well. See thread here.VIN: This board can be powered by an external power supply by using this pin. Supply a voltage between 3.3V to 12V to this pin and the linear voltage regulator on the board will power the board.
According to this, you don't need a regulator, the ESP already has one built-in. The GPIO however is 3.3V to control a switching xstr. You need to find the ESP specification for the current that can be sourced from the GPIO pin???
I just finished rebuilding a 40 year old alarm system that uses old school sounders such as a classic motor driven siren, and it took a hell of a lot more than opto isolation and saturated transistors to keep the noise from scrambling the processor, despite the fact that they are located quite a distance from the box.And to keep the motor noise out, use an opto-isolator and a saturated FET switch transistor.

OK on the tough job of keeping the noise out. Yes, optos are a first line, but they will not help enough when all tghe wires are bunched into one conduit, and the power neutral is shared. Right now I have a noise in a PA system in a church. Of course the sound system is next to the light dimming panel with a dozen 15 amp feeds and a dozen 200 watt triac dimmers. And all the power runs 30 feet in a piece of steel conduit. And not enough neutrals. No design is so good that fools can't mess it up. AND, "You Can't Fix Stupid." Sorry about raging away, folks.I just finished rebuilding a 40 year old alarm system that uses old school sounders such as a classic motor driven siren, and it took a hell of a lot more than opto isolation and saturated transistors to keep the noise from scrambling the processor, despite the fact that they are located quite a distance from the box.
In the end it took RF chokes...clip on ferrites and back EMF diodes to suppress the noise enough to keep the micro from freaking out.

https://www.amazon.com/gp/product/B072C3NMK1I am trying to imagine what sort of dehumidifier runs on 9 volts DC at low power. ALL of the dehumidifiers that I have seen use a refrigeration compressor and at least one fan, and draw at least 2 amps from the 120 volt mains.
So a description of a package that uses 9 volts at low power will be very educational for me.
Thank you @ElectricSpidey - super helpful response. Will investigate that path. Are you opposed to the Buck for the de-humidifier?Personally, and this is only me...
I would use the buck to step down to 9 volts. then use a 5 watt Zener to drop down to the ESP voltage. (The onboard regulator in the ESP will deal with ripple)
I would use logic level MOSFETs to switch the fans and the de-humidifier.
As far as the "noise" I was thinking "motor" in my previous posts, but those micro PC fans should be easy enough to clean up using caps and diodes.
Don't know about the de-humidifier.
And 3 amps should handle everything...but with no margin.
Thanks @Reloadron - I have found powering the Relay with separate power (5v as shown in the schematic) has worked reliably, then using the 3.3v HIGH logic from the ESP GPIO to trigger IN - but the ESP IN & 5v Vin/GND are separated via removing a jumper. Not sure if this address your concern, but definitely have found that powering the Relay via 3.3v does not work. Thanks for pointing out the potential issue.Those 5 volt relays don't work well at all when driven with 3.3 volts which is what you get with the ESP8266 GPIO pins. If I were you and only had those two channels to worry about I would use a level shifter. Get 4 channels for under $3.00 USD. I see where they are 5 volt powered relay modules but they don't work well with the 3.3 V logic for turning them On/Off.
Would the Peltier device work. I had one that came out of a drinking water cooler back in 1964, that had a copper water tank glued to one side and a heat sink on the other . Ran on 12 volts DC. Just reverse the polarity and it would heat the water. Should work great for a dehumidifier. I think the DC to Dc converter does a great job of powering MCU's. They cost about $2.00 ea on Amazon and allow almost any wallwart type power supply to work. Also the IGBT's work and will switch a lot of current. I use the IRFZ44 (about 9 amps @ 5 volts (gate)) and the FQP30N06L (3.3 volt version) driven from an Arduino, ESP8266-12E NodeMCU, and the Raspberry Pi Zero W for my master clock projects. Here is the RPI backup schematic using two on them.I am trying to imagine what sort of dehumidifier runs on 9 volts DC at low power. ALL of the dehumidifiers that I have seen use a refrigeration compressor and at least one fan, and draw at least 2 amps from the 120 volt mains.