Using a microcontroller to charge a NMH battery?

Ask and answer questions, share tips and resources for installing lighting and other electronics in your models.

Moderators: Sparky, Moderators

Post Reply
User avatar
MillenniumFalsehood
Posts: 16992
Joined: Tue Nov 16, 2004 5:23 pm
Location: Wichita, KS, USA
Contact:

Using a microcontroller to charge a NMH battery?

Post by MillenniumFalsehood »

I have a large project that has need of an independent power supply for one area, and I was thinking about using a microcontroller to switch off the main power when the NMH battery is fully charged. Something like telling it "if v=12 disconnect power, else connect power to batteries" to make it top off the 12 volt battery pack. I'd have it also monitor a switch at the same time to make sure both sections aren't connected when it uses the batteries. I'm pretty sure this is something I can have a small PIC do, I just wanted you guys' thoughts on such a project.
If a redhead works at a bakery, does that make him a gingerbread man?

Ponies defeat a Star Trek villain? Give them a Star Wars award ceremony!
EVApodman
Posts: 4542
Joined: Sat Sep 30, 2006 8:37 am

Re: Using a microcontroller to charge a NMH battery?

Post by EVApodman »

Such a project is possible but it involves much electronics. I know from similar type circuits in emergency battery power supplies to stop main charging once the batteries have reached their maximum charge.
"Nothing to do now but drink a beer and watch the universe die."
"Basically what I do everyday."

I AM Spartacus!
I'm Batman.

Don't believe everything you see on the Internet!- Abraham Lincoln

Oh my God!! It's full of plastic peanuts!

Today is a good day to model!
seam-filler
Posts: 3894
Joined: Thu Apr 17, 2003 11:05 am
Location: Aberdeen, Scotland

Re: Using a microcontroller to charge a NMH battery?

Post by seam-filler »

Try trawling through Arduino sketches. A very quick search turned up the following (although this is just the charger, not the switch you want)

https://www.allaboutcircuits.com/projec ... y-charger/
"I'd just like to say that building large smooth-skinned models should be avoided at all costs. I now see why people want to stick kit-parts all over their designs as it covers up a lot of problems." - David Sisson
User avatar
MillenniumFalsehood
Posts: 16992
Joined: Tue Nov 16, 2004 5:23 pm
Location: Wichita, KS, USA
Contact:

Re: Using a microcontroller to charge a NMH battery?

Post by MillenniumFalsehood »

Thanks for the link! It was a really good read and a big help with this project. :D
If a redhead works at a bakery, does that make him a gingerbread man?

Ponies defeat a Star Trek villain? Give them a Star Wars award ceremony!
Post Reply