Output 0-20mA from an Arduino with ATMega328

  • Thread starter Thread starter Etude
  • Start date Start date
  • Tags Tags
    Arduino Output
Click For Summary

Discussion Overview

The discussion revolves around generating a 0-20mA output from an Arduino Duemilanove with ATMEga328 for use in a speed indicator. Participants explore the necessary hardware and configurations to achieve this current output, considering both theoretical and practical aspects.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about using an Arduino pin to input 0-20mA into a speed indicator, noting the need for external hardware due to the Arduino's voltage output.
  • Another participant questions the relationship between current and voltage, as well as the effects of series and parallel circuits on current.
  • A suggestion is made that a low-tech solution could work, depending on the input impedance of the speed indicator, and proposes using a resistor to limit current while measuring voltage to back-calculate impedance.
  • There is a mention of a total impedance requirement of 250 Ohms, with a recommendation to use a 270 Ohm resistor to limit current to below 20mA.
  • One participant requests additional information about the speed indicator, specifically whether it operates on a 0-20mA or 4-20mA input.
  • Another participant confirms that a 4-20mA input is acceptable, as it is an industry standard.

Areas of Agreement / Disagreement

Participants express varying views on the specifics of the speed indicator's input requirements, with some suggesting a 0-20mA output while others mention the 4-20mA standard. The discussion remains unresolved regarding the best approach to achieve the desired current output.

Contextual Notes

There are limitations regarding the assumptions about the speed indicator's input impedance and the accuracy required for the output. The discussion does not clarify the exact characteristics of the speed indicator or the implications of using different resistor values.

Who May Find This Useful

This discussion may be useful for individuals working on projects involving Arduino and current output configurations, particularly in applications related to speed indicators or similar devices.

Etude
Messages
28
Reaction score
0
Hi! I am using a Arduino Duemilanove with ATMEga328 for my project.

I need an input of 0-20mA into a speed indicator. I know that the Ardunio pins have a current output of 0-40 mA and was wondering if I could use one of the pics to input 0-20mA into the speed indicator. I know that directly connecting the pin will give me 0-5V so I need some external hardware. Right? However, I have no clue how to do this. Can someone please help ? The current has to be variable from 0mA (or close to 0) to 20mA.
 
Engineering news on Phys.org
how are current, and voltage related?
how do series/parallel circuits affect current?
 
This will depend on how accurate you want the output - but a relatively low tech system should work. What is the input impedance of the speed indicator?
Since it takes a current input it should be pretty low, so possibly just by adding a resistor ( to limit the current ) and if the Speed Indicators input impedance is constant over the range of 1 -20 mA input you should be able to directly output the 0-5V Output to the Indicator.
Drive 1mA,10mA and 20mA current into the Indicator and measure the voltage needed to back calculate the impedance.
The sum of the added resistor and Indicator should come to 250 Ohms total. ( I'll bet just using a 270 Ohm Resistor will do the trick out of the box - this will limit the current to below 20mA- if you can compensate the difference in the program.)
 
Thanx! :)
 
More info on you speed indicator would be nice. Is it 0-20ma or 4-20ma?
 
4-20 mA is acceptable - since it is the industry standard.
 

Similar threads

Replies
7
Views
3K
  • · Replies 23 ·
Replies
23
Views
7K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
78
Views
10K
  • · Replies 24 ·
Replies
24
Views
6K
  • · Replies 1 ·
Replies
1
Views
1K