| | Relationship between voltage and analog() Hajime
| | | 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)
| | | | | | | | Re: Relationship between voltage and analog() Fred G. Martin
| | | | | (...) 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) (...) to convert from the output # to the voltage, it would be 5v x (output # / 255) so 47 is about 0.92 (...) (28 years ago, 1-Jun-96, to lugnet.robotics.handyboard)
| | | | | | |