261Views5Replies

Author Options:

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

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

5 Replies

user
PaulMakesThings (author)2011-05-17

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.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2010-07-15

Are you looking for a high efficiency circuit, or just something that works ? Steve

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2010-07-15

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

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2010-07-13

Use a PWM port, filter that to DC, then add a single op amp as a voltgae to current converter.

Select as Best AnswerUndo Best Answer

user
orksecurity (author)2010-07-13

Not directly. You would have to build a digitally-controlled current regulator, and then use the AVR to control that.

Select as Best AnswerUndo Best Answer