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 / 467
466  |  468
Subject: 
Re: Relationship between voltage and analog()
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sat, 1 Jun 1996 14:03:32 GMT
Original-From: 
Fred G. Martin <(fredm@media.mit)AvoidSpam(.edu)>
Viewed: 
1262 times
  
Would anybody please send me a mail letting me to know the
relationship between the output of ananlog() function and
the voltage ?

The input voltage range is 0 to 5 v, and the output number range is 0
to 255.  The relationship is linear, so 2.5v = 128 (for example)


For example, if my sensor works under the command
"if (analog(0)>47) then ...."  What would be the voltage ?

to convert from the output # to the voltage, it would be

5v x (output # / 255)

so 47 is about 0.92 volts.


-Fred



Message is in Reply To:
  Relationship between voltage and analog()
 
Hello! Would anybody please send me a mail letting me to know the relationship between the output of ananlog() function and the voltage ? For example, if my sensor works under the command "if (analog(0)>47) then ...." What would be the voltage ? Any (...) (28 years ago, 1-Jun-96, 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