×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

(OP)
Hi.

I'm designing and implementing a NiCAD battery charger for fun.  So far, I have my LM317 outputting approximately 1.2 A in a constant current source configuration.  My question is how do I modify it to be an adjustable constant current source (say through my microcontroller) so that once the batteries' voltage plateaus then I start trickle charging and not damage my batteries?  Thanks.

### RE: Adjustable Constant Current Source

(OP)
I realized that I haven't attached a circuit schematic.  The circuit I used it the constant current source straight from the LM317 datasheet.  I'm leaving this open for interpretation; hopefully, we'll see some interesting circuits .

### RE: Adjustable Constant Current Source

The 5A constant current source shown in the National LM317 datasheet already has an adjustment for current

TTFN

### RE: Adjustable Constant Current Source

(OP)
The schematic shows the current to be adjusted through a potentiometer.  I wish to adjust the current by way of microcontroller (for example through a DAC).

### RE: Adjustable Constant Current Source

Just replace the potentiometer with a digital pot

TTFN

### RE: Adjustable Constant Current Source

Do not make things more difficult than they are !

Use a circuit for  voltage regulator (voltage set for trickle charging) with current limit (current limit set to desired charge current).

If you want a more sophisticated charging algorithm  try to find special ICs, some containing even a microcontroller, designed for that purpose.

### RE: Adjustable Constant Current Source

Hi, you should not trickle charge nicads, once they are charged turn the charger OFF.

### RE: Adjustable Constant Current Source

The DAC will work and so will an ADC to monitor your circuit.  Yeah, it's pretty complicated for an LM circuit but if it's for fun, then have at it!

DC

Doug Calli
Callico Special Effects

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!