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.edu/AntiSpam/>
|
Viewed:
|
1573 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
|
|
|
|