Author Topic: Small 5V power supply  (Read 7433 times)

0 Members and 1 Guest are viewing this topic.

Offline MikeyTopic starter

  • Regular Contributor
  • *
  • Posts: 77
  • Country: dk
  • Just hit 3rd!
    • captain-slow.dk
Small 5V power supply
« on: January 18, 2013, 08:19:08 pm »
I am going to do a project where I need to power an atmega328p, a rf receiver module, and 4 relays.

It is going to be a home automation node that will simply receive a signal from the sender and then turn the relays on/off depending on the message. It will have 3x 230V out and 1x open/closed output so it will be easy to add lights to it, and also be able to just send a trigger signal (going to use that for my automated garage door).

To keep installation simple it would be easiest to have the 230V to 5V power supply on the pcb, but looking at bit on cost and such I come down to it would be easiest and cheapest to take one of those cheap 5V usb power supplies.

But, I also remember how they looked when Dave took two apart, so what would people here suggest? Are there any known decent of them out there? Or can I do the power supply myself very easy? (only done a few simple pcb's before)
captain-slow.dk | 3D printing | CNC machining | Mechanical designs | Simple electronics
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16313
  • Country: za
Re: Small 5V power supply
« Reply #1 on: January 18, 2013, 08:29:33 pm »
Find a genuine phone charger ( does not matter what manufacturer as long as it is a 5v unit) and use the board out of that. I recycled an old Nokia one as a power supply for a LED lamp, just had to change the input capacitors as they were not looking too well after 5 years or so of being powered.
 

Offline MikeyTopic starter

  • Regular Contributor
  • *
  • Posts: 77
  • Country: dk
  • Just hit 3rd!
    • captain-slow.dk
Re: Small 5V power supply
« Reply #2 on: January 18, 2013, 08:31:41 pm »
Find a genuine phone charger ( does not matter what manufacturer as long as it is a 5v unit) and use the board out of that. I recycled an old Nokia one as a power supply for a LED lamp, just had to change the input capacitors as they were not looking too well after 5 years or so of being powered.
Problem is they are like $15-20 if I buy them here from a reliable source, isnt really cheap any longer then.
captain-slow.dk | 3D printing | CNC machining | Mechanical designs | Simple electronics
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16313
  • Country: za
Re: Small 5V power supply
« Reply #3 on: January 18, 2013, 09:18:07 pm »
Who said new? Car boot sale, dumpster dive a little or look in a cupboard or ask friends and family if they have an old one no longer in use.
 

Offline retiredcaps

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: ca
Re: Small 5V power supply
« Reply #4 on: January 18, 2013, 09:20:39 pm »
With so many people getting new phones almost annually, unused/old phone chargers are plentiful supply.
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5092
  • Country: ro
  • .
Re: Small 5V power supply
« Reply #5 on: January 18, 2013, 09:29:29 pm »
The cheap usb chargers/adapters often have very bad regulation. I've tested one recently and it was outputting 5.7v up to about 200mA, with half a volt or so ripple... above 300mA it started to drop down in voltage to as low as 4v at 360mA.

Some phone chargers can have as much as 7-9v output when there's little load, like 10-50mA. You'll still have to get an adjustable low drop linear regulator or something to protect your chips from such regulators. You set the regulator to 4.7v or something like that, which is still enough for the controller to still run properly, and low enough to have room for the 0.2-0.3v minimum drop on the regulator.

I don't say you shouldn't use one, search for some chargers but TEST them first.

Or you could just get some cheap 5-9v power adapter and use the regulator to get 4.7-5v you need. If you get one of those that has 3v-4.5v-6v-7.5v-9v-12v then you could just set it to 7.5v and use a 30-50 cents 7805 to get 5v.



« Last Edit: January 18, 2013, 09:37:07 pm by mariush »
 

Offline muvideo

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: it
Re: Small 5V power supply
« Reply #6 on: January 18, 2013, 09:35:33 pm »
Follow Sean's advice, you just have to search for them.
Last year I bought a new/old stock of 9.4V 700mA chargers,
good for CV or CC application (leds) less than 2€ each.
I'm using them for everything, once learned the circuit
inside it's easy to mod the feedback circuitry to change
the output voltage/current (by a reasonable amount).
Now I simply take the calibre, and open an hole in the plastic
case, in the point where I know I will expose the resistors
that set current and voltage setpoints.

Another alternative is use plain old transformers, check
your power requirements, the low power ones are pretty
small and low cost. Two relays and a micro, a 3VA one
could be enough.

Fabio.
Fabio Eboli.
 

Offline Praxis

  • Contributor
  • Posts: 22
Re: Small 5V power supply
« Reply #7 on: January 19, 2013, 10:37:18 am »
If you need good regulation, look for a 9v wall-wart and run it through a linear regulator circuit.  Older, cheaper transformer-based supplies will generally give cleaner power at low load than a cheap switching supply.  Actually, in any case where you're powering circuitry that doesn't have it's own regulator on it with a line-derived source, it's a good idea to stick one on.

If you don't know how to tell the difference between a transformer and a switching wall-wart, hold it in your hand and think: "could I concuss someone with this?"  If the answer is yes, it's got a transformer. ;)
 

Online kripton2035

  • Super Contributor
  • ***
  • Posts: 2627
  • Country: fr
    • kripton2035 schematics repository
Re: Small 5V power supply
« Reply #8 on: January 19, 2013, 10:42:45 am »
this one has some good regulation, may be too much current for you but it's cheap !
http://dx.com/p/5v-2a-regulated-switching-power-supply-110-220v-94518
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10023
  • Country: nz
Re: Small 5V power supply
« Reply #9 on: January 19, 2013, 12:09:58 pm »
Since this device only interacts with the outside world through relays and an rf receiver it's a perfect fit for a capacitor based mains powersupply since its completely isolated. 

http://ww1.microchip.com/downloads/en/appnotes/00954A.pdf

Capacitor based powersupplies are often used for modular timers/dimmers and other small devices that fit behind lightswitches and wall plates where 5V/12V is needed from the 230V mains.

I recommend reading about them before attempting to build one. There's safety issues to consider when working on anything that's not mains isolated.

The designs ive seen produce 24V and use a 7805 to get mcu vcc.
They also use 12v relays with resistors in series to run from the 24V. I forget why that's done, i think its to do with running the powersupply close to its rated current limit and still being able to pull in relays.

« Last Edit: January 19, 2013, 12:38:55 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf