3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Can i use an avr microprocessor to output a specific current?

if anyone has some arduino code or something for an attiny 13 it would help alot!

8 answers
sort by: active | newest | oldest
May 17, 2011. 6:10 PMPaulMakesThings says:
For complex solutions like this I find it is often best to use IC's designed for the job since they are cheap and really simplify the task. Here is an example that may suit your needs:
http://www.maxim-ic.com/app-notes/index.mvp/id/921
One chip shown there is about $1.10 and the other is $1.70, and since the chip is built for the purpose it usually does a good job and eliminates some possibilities for error.
Jul 15, 2010. 12:19 AMsteveastrouk says:
Directly, it can drive a couple of standard LEDs - the kind that need a few mA to run. Otherwise, you would need to build something.

How much current did you want ?

Steve
Jul 15, 2010. 3:06 PMsteveastrouk says:
Are you looking for a high efficiency circuit, or just something that works ? Steve
Jul 13, 2010. 11:49 PMsteveastrouk says:
Use a PWM port, filter that to DC, then add a single op amp as a voltgae to current converter.
Jul 13, 2010. 7:46 PMorksecurity says:
Not directly. You would have to build a digitally-controlled current regulator, and then use the AVR to control that.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!