5v from USB wallwart

Nano Every based project, with strip LEDs.
Currently the LEDs are fed 9v by a 7809 via MOSFETs (IRLB8721PBF).
The rest of the project is 5v (powered via a 7805) or 3.3v (powered from the Arduino).
To eliminte the 78xx voltage regulators, I’m planning to change to using 5v LED strips.

The 5v LED strips I’ve seen so far, look as though they will need around 1A. So I’m planning to mount a USB port (as an alternative to a barrel jack) on the main PCB and use a walwart (240v AC in / 5v DC out on a USB lead) to power the whole project with 5v.

I’ll then power the Nano via its 5v pin (rather than it’s onboard voltage regulator), and seperately feed the same MOSFETs with 5v (from the wallwart, NOT via the Arduino) rather than the current 9v?

As long as I use a USB wallwart capable of providing enough current for the whole project, are there any reasons not to use a USB wallwart as a PSU like this?

Please post schematics. Words are not useful.

Looking at the missing schematic it appears you are switching the low side, what prevents the LEDs from feeding back into the pins of the Arduino 9 volts? It is better to switch the high side, this eliminates back feed.

Try this

If it is indeed a 5V power supply and not a charger, it should provide a clean and stable 5V with low ripple. It should also be an isolated type supply. Some of the cheap devices may expose the line voltage at the 5V output.

Hi, @anon57936601

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Thanks.. Tom.... :smiley: :+1: :coffee: :australia:

On the whole I think your idea is good. However, a few things in your explanation put questions into my head.

Why 2 voltages? Can you eliminate one of them with careful choice of components? Fewer voltages is simpler and therefore probably better. If you cannot escape needing both, check that the Nano Every can supply enough current from it's 3V pin for your 3V components. Classic Nano boards can only supply a very small current from their 3V pin, for example.

The MOSFET you linked to is suitable, but it may be overkill. You said "strips" and "MOSFETs" implying at least 2, each MOSFET switching only 0.5A at most, which could easily be done with smaller, cheaper transistors.

Why? Barrel sockets are more durable and there are plenty of 5V PSU available with barrel jacks (jack==plug, not socket).

It's always worth getting decent well designed power supplies.

XP and Meanwell have always been reliable, and safe. Generally, if a large distributor like RS or Digikey list them, then you can be fairly sure they meet all the requirements.

A more satisfactory way, but longer, can simply be to design or build your own. Then you can pick your own components.

There are many press reports here in the UK of house fires being started by things like e-scooter chargers or general electronic goods. A few pounds saved on a PSU isn't worth the risk.

Thanks for the input.
Sorry for the delay with a schematic - I had to almost start from scratch as the project is spread across 3 KiCAD schematics/PCBs, which have no Arduino (I'm using jumper sockets on the PCB), no LEDs (the LED strips are connected to the third PCB via screw-terminals), etc etc etc
It’s the section “circled” in blue that I was thining of swapping for 5v, so both the Nano Every and the (different LEDs) would have 5v and there’d be no 9v at all.

@anon95813201
If it's a dedicated 5v power supply (rather than what I assume are the common chargers you mention), will I need to worry about USB-PD? All my boards are THT so, from what I can see, USB-PD would be challenging. Otherwise, what do I need to look for in a USB PSU’s spec that differentiates it from a charger?

@PaulRB
Multiple voltages because the LED strips I've used are 9v, most of the I2C LCDs I've seen need 5v (the one I have does) and I'm hoping to add a HC05 Bluetooth module which needs 3.3v
If I can get everything down to a single voltage (maybe feed the HC05 from the Nano's 3.3v?), that would be my ideal. (I'm aware the Nano Every will never be able to power the LED strips.)

I'm using the IRLB8721 because I got them when I was epecting to use more powerful LED strips ... and I still have spares. The 5v strips I've seen need 1A per meter and each MOSFET controls about 0.5m. As I'm over-spec-ing for safety, can you suggest something smaller that wold be suitable?

I'd not considered a 5v PSU and a barrel socket.

@tigger
Ideally I'd like to have the whole thing battery powered. But it's the horror stories about Lithium battery fires that have put me off.

With lithium batteries of any type, single use or rechargeable, it's one component you don't cut corners with.
Buy reputable brands from reputable suppliers and use recommended chargers.
Yes, there are reports of fires etc. from misuse or sub-standard equipment, but the overwhelming usage is trouble-free, so I wouldn't be to alarmed.
I've got one inside me, a lithium-iodide type, but so far, no fires etc. :grinning_face:

The Nano Every has a switching power supply on board, it can supply a reasonable amount of power.

For comparison, the classic Nano can supply a few hundreds mA at 5V (dependent on VIN), and only 50mA at 3.3V
I guess your power source might be 12V. Using linear regulators you'll lose more on heat dissipation than you actually use at 5V.

I totally agree.
If one have a look at Samsung/Lg/Panasonic li-ion battery passed safety test results, one can work (carefully) with batteries without any hesitation. Online there's lot of b..shit about how dangerous they are.

The easiest way (for design) is to use batteries with integrated protection, charging them in a designated charger. If they don't have a protection circuit, you can still charge them in that charger, but you'll need to measure the voltage to shut down at a certain minimum.

By the way, you need to be aware of a vulnerability of the Nano Every when uploading:

If it's not a charger, and it does not use USB-C connector then PD won't be an issue.

Otherwise, what do I need to look for in a USB PSU’s spec that differentiates it from a charger?

I don't buy an electrical device unless it comes with a datasheet or users manual, so I know exactly what I'm getting. If you buy things from Amazon, Ebay, Aliexpress and the like, you get what you pay for and it may not be as advertised. If you willing to take a chance because it's cheaper (and I have) it may be OK.

As I understand your schematic you will fry the LEDs as there is no current limit. Adding resistors would solve that problem and the value can probably be chosen to run them on 5V.

True, but that’s a failing of my schematic. As stated in my actual question, I’m using “LED strips” and, as I understand it, they have built in resistors. I’ve been using them for months and haven’t fried them yet. :grin:

That may be true for the ones you have, I have both types, some with and some without resistors. Also you labeled it diode not diode strip.