To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 4342
4341  |  4343
Subject: 
Re: HB's analog inputs
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 26 Aug 1998 13:48:53 GMT
Original-From: 
Dan White <dwhite@cybermetrix.=AvoidSpam=com>
Reply-To: 
dwhite@^ihatespam^cybermetrix.com
Viewed: 
1072 times
  
edmund wrote:

does anyone know if the handy board's analog inputs can accept analog
current output(4-20mA) from a photo-electric distance sensor? (e.g. the
sensor might return 4mA if the object is 1 ft away and 15mA if it's 3 ft
away) or can it only accept analog voltage output(0-5V).

if the function 'int analog()' is used and the analog input is 2.5V, would
the handy-board return a value of 127? i believe the range of values is
from 0-255 for 0-5V. what if the analog input is current?

the distance sensor i'm going to buy comes with either a current or a
voltage output and i don't know which will suit the HB best. can anyone
help? thanks in advance.

edmund
Edmund,

Typically the solution is to pass the 4-20 mA through a 250 ohm resistor
and measure the voltage across that resistor. As long as your A/D input
impedance is high, it can be ignored. A resistor is essentially a
current to voltage converter after all. You can use a 1% tolerance for
better accuracy. Keep in mind that you will never read zero because your
current never goes to zero. At 4 mA you will read one volt and at 20 mA
you will read 5 volt so now you have a 1-5 V transducer.

4-20mA ---------.----------- A/D +input
                /
                \ 250
                / ohm
                \
4-20mA return---.----------- A/D -input (ground)

Good Luck,
Dan



--
/***********************************************************
* Dan White - National Instruments Certified Instructor    *
* CyberMetrix,Inc. - National Instruments Alliance Member  *
* <http://www.cybermetrix.com/ni>                          *
* dwhite@cybermetrix.com                                   *
***********************************************************/



Message is in Reply To:
  HB's analog inputs
 
does anyone know if the handy board's analog inputs can accept analog current output(4-20mA) from a photo-electric distance sensor? (e.g. the sensor might return 4mA if the object is 1 ft away and 15mA if it's 3 ft away) or can it only accept (...) (26 years ago, 26-Aug-98, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR