Output 0-20mA from an Arduino with ATMega328

  • Thread starter Thread starter Etude
  • Start date Start date
  • Tags Tags
    Arduino Output
AI Thread Summary
An Arduino Duemilanove with ATMEga328 can output a variable current of 0-20mA for a speed indicator, but requires additional components to manage the voltage output. Directly connecting the Arduino pin will yield 0-5V, necessitating a resistor to limit current and accommodate the speed indicator's input impedance. The total impedance, including the added resistor, should ideally be around 250 Ohms, with a 270 Ohm resistor likely sufficient for limiting current. It's important to clarify whether the speed indicator requires a 0-20mA or a 4-20mA input, as the latter is a common industry standard. Understanding the relationship between current and voltage, as well as circuit configurations, is crucial for accurate implementation.
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.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top