Battery charger using ATtiny24A

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Battery charger using ATtiny24A

Postby queen245 » Wed May 09, 2012 5:49 am

Hi,

Iam a newbie to this forum and to ATtiny.

Iam looking for reference circuit for a battery charger using ATtiny24A.
Atmel website gives a reference using ATtiny15.

Appreciate any inputs in this regard.

Thanks in advance.
queen245
 
Posts: 2
Joined: Wed May 09, 2012 5:41 am

Re: Battery charger using ATtiny24A

Postby adafruit_support_mike » Thu May 10, 2012 4:40 pm

Exactly what kind of circuit are you trying to build, and what kind of batteries do you want to charge?

There are lots of options.. you can make a charger that plugs into the wall and charges a dozen batteries at the same time, or you can make a battery charging circuit that lives in a device that gets plugged into a wall wart from time to time. You can make a trickle charger that keeps batteries fresh for a long time, or you can make a high-speed charger that gets flat batteries up and pushing electrons as fast as possible. You can charge a cell phone or iPod battery, or you can charge a car battery.

On top of that, you have to charge different kinds of batteries in different ways.. if you use a nickel/metal hydride battery charger in lithium polymer batteries, you'll probably get a fire, if not an explosion.

If you're looking to charge, say, a lithium polymer cell phone battery, there are dedicated chips that will do the job really well and cost less than half what even a cheap microcontroller will.
When you void a product warrany, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 1418
Joined: Thu Feb 11, 2010 1:51 pm

Re: Battery charger using ATtiny24A

Postby queen245 » Thu May 10, 2012 11:33 pm

Thanks for your response.

Well... iam looking out to design a Solar to 3.7v, 13.8AH Lithium-polymer battery charger.

I would like to use a picopower microcontroller ATtiny24A and I am looking for reference designs around.

Appreciate any light in this area.

Thanks aton!
queen245
 
Posts: 2
Joined: Wed May 09, 2012 5:41 am

Re: Battery charger using ATtiny24A

Postby philba » Fri May 11, 2012 8:59 am

Is your professor requiring the ATTiny 24A? Like mstone says, there are really good charger chips out there.

I'll give you a hint - most Tinys are very similar, differing mostly by flash size.
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 5:59 pm

Re: Battery charger using ATtiny24A

Postby adafruit_support_mike » Sun May 13, 2012 12:01 am

Okay.. solar to LiPo is nice and specific, and I gather you're running the ATTiny from the battery, not using it to control how the battery charges.

13.8 amp-hours though? Dang..

Someone will need to check me on this, but I'm pretty sure people have adapted the Adafruit LiPo charger:

http://www.adafruit.com/products/259

to work with a solar panel supply. You can probably find links to reference projects in the Adafruit blog.

If I understand you correctly though -- you're using the LiPo to power the ATTiny, not using the ATTiny to regulate charging of the LiPo -- you pretty much have two separate circuits: a battery charger, and a battery-powered microcontroller.

LiPo charging is fussy enough that it's probably best to use a dedicated chip. I happen to use Microchip MCP73811Ts, which cost about 50c each, but other people have different preferences. They're all cheap, small, and are optimized to do all the measuring-deciding-and-controlling as efficiently as possible though.

Running a microcontroller from a battery is really a separate subject from battery charging. You'll want to look at the brownout and low-power shutdown modes the chip offers, and design accordingly. Given the Brick-o-Power you're charging though, I doubt you'll need to sweat over the micropower design principles.

If you're specifically trying to build a charger controlled by the microcontroller, look at the datasheets for dedicated charging chips to get an idea of how the LiPo charging process works. Your battery pack may also have a datasheet that tells you how that specific unit wants to be charged. Once you understand the trickle current/constant current/constant voltage dance, you'll be able to program the ATTiny to do the same thing.
When you void a product warrany, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 1418
Joined: Thu Feb 11, 2010 1:51 pm


Return to Microcontrollers

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]