Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
edwardchuajh
PostPosted: Feb 26, 2010 - 02:16 PM
Newbie


Joined: Feb 26, 2010
Posts: 10


Hi,

I understand that we can provide 5V power to the AVR chip by using e.g. a 9V wall supply through a 7805 chip and supporting capacitors etc.

However, if I have a high quality handphone charger, e.g. original Samsung or Motorola chargers which states itself as 5V, do I still need the 7805 circuitry?

If possible, how do I test if the voltage is indeed "safe" for the avr chip?
 
 View user's profile Send private message  
Reply with quote Back to top
MBedder
PostPosted: Feb 26, 2010 - 02:19 PM
Resident


Joined: Nov 02, 2009
Posts: 530
Location: Zelenograd, Russia

Just measure the output voltage of your "high quality handphone charger" BEFORE applying it to your AVR - I bet you'll get surprised Very Happy
 
 View user's profile Send private message  
Reply with quote Back to top
Personman
PostPosted: Feb 26, 2010 - 02:33 PM
Hangaround


Joined: Jul 13, 2008
Posts: 204
Location: Pennsylvania

Have a look at this tutorial;
http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=103
 
 View user's profile Send private message  
Reply with quote Back to top
Plons
PostPosted: Feb 26, 2010 - 02:41 PM
Raving lunatic


Joined: Nov 01, 2005
Posts: 4906
Location: Hilversum - the Netherlands

There is another thing to be aware of with switching powersupplies: the leakagecurrent through the Y-cap. See this thread: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=82257&start=0

_________________
Problems with Parallel Port Programmers ? Read this:
http://www.aplomb.nl/TechStuff/PPPD/PPPD%20English.html
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
edwardchuajh
PostPosted: Feb 26, 2010 - 04:06 PM
Newbie


Joined: Feb 26, 2010
Posts: 10


Thanks!

Which means it'd still be advisable to get a linear voltage regulator and not cut corners.. hmm

However if in the case I'm running a series of 17 normals LEDs each drawing 30mA for a total of 510mA, and they're drawing power from the AVR chip, will it overheat the (regular) 7805 chip too much with an input voltage of 9V?

I am actually trying out a binary clock, and will hope it to run 24/7.

Sorry if it sounds off-topic, I am pretty new to this and if required I will promptly move this topic elsewhere.

Thanks!

P.S. If using the 7805 and AVR to run everything is not feasible, are there any obvious solutions?
 
 View user's profile Send private message  
Reply with quote Back to top
MartinM57
PostPosted: Feb 26, 2010 - 04:17 PM
Resident


Joined: Dec 15, 2005
Posts: 532
Location: Bristol, UK

Although new to this, you need to get to be able to read and understand data sheets...

Power dissipated in regulator = 4 x 0.51 watts = 2.04 watts - yes it will get extreeemely hot without a good heatsink. Look at the 7805 data sheet for the thermal characteristics of a 7805 (a little bit complex to understand - Google can probably find somewhere where someone explains how to deal with the thermal characteristics of a regulator...)

510ma through the AVR will almost certainly destroy it - see the Electrical Characteristics section for your AVR. There is normally a limit to:
- amount of current for the whole chip
- amount of current for each output pin

I'll leave others to describe alternative solutions...
 
 View user's profile Send private message  
Reply with quote Back to top
Personman
PostPosted: Feb 26, 2010 - 07:47 PM
Hangaround


Joined: Jul 13, 2008
Posts: 204
Location: Pennsylvania

Quote:
510ma through the AVR will almost certainly destroy it


Transistor as a switch switch.
http://www.ermicro.com/blog/?p=423

Though this links to the transistor as a switch section of this site, there is a lot of good info there.
http://www.allaboutcircuits.com/vol_3/chpt_4/2.html
 
 View user's profile Send private message  
Reply with quote Back to top
Plons
PostPosted: Feb 26, 2010 - 09:48 PM
Raving lunatic


Joined: Nov 01, 2005
Posts: 4906
Location: Hilversum - the Netherlands

If you check the outputvoltage with a voltmeter as suggested by MBedder, and the result is OK, you *can* use that mobile phone charger for your final, enclosed clock, but with a big BUT during development: when everything is open on the table, you need to be aware of the leakage current mentioned in the thread posted earlier. Also note the voltages that come as a bonus with that leakage.
To get rid of those, connect the groundlead (or negative) of the secundary side of the powersupply, to safety ground of the mains.

If you are unsure about what I wrote, do use a traditional transformer-based wallwart .... at least during development.

_________________
Problems with Parallel Port Programmers ? Read this:
http://www.aplomb.nl/TechStuff/PPPD/PPPD%20English.html
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
theusch
PostPosted: Feb 26, 2010 - 10:05 PM
10k+ Postman


Joined: Feb 19, 2001
Posts: 18830
Location: Wisconsin USA

Quote:

If you check the outputvoltage with a voltmeter as suggested by MBedder, and the result is OK,

And be sure to check it with no-load, minimal app load (e.g., AVR in reset and no power suckers active), normal load, and max load. A lightly-loaded unregulated wallwart can have way-high voltages.

For demo rigs and the like, we keep a small stock of >>regulated<< wall-warts on hand in common voltages such as 5, 12, and 24 VDC.

Lee
 
 View user's profile Send private message  
Reply with quote Back to top
edwardchuajh
PostPosted: Feb 28, 2010 - 12:09 PM
Newbie


Joined: Feb 26, 2010
Posts: 10


thanks!

I think I will go with using Darlingtons,

http://www.ermicro.com/blog/?p=423

was very useful =)

Thanks all!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits