Main Site Documentation

Pin voltage


#1

Hi, i have a panda fez 2 shield. But i don’t know how can we read the precise voltage of a pin. If i use “exeple.Read()”, it give me just True or False.
Help me plz.
:slight_smile:


#2

What you need is to use an analog in port.

http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation%20v4.1/html/1910dd50-4dc4-061d-5168-ab71ed3ea7b8.htm


#3

yes, but is use also “Read()” ?


#4

Yes use Read method it returns:

[quote]Default resolution is 10 bits with analog value between [0, 1023][/quote] Linear scale

which corresponds to voltage values in [0, 3.3] range


#5

and, ok thx


#6

You are welcome! We have some tutorials on wiki. Here is one of them:

http://wiki.tinyclr.com/index.php?title=Analog_Inputs


#7

You mention “shield” can you tell us exactly what shield you have? The concept of a shield is something that plugs onto your base processor board, not the base processor itself, perhaps you just mean the baseboard?


#8

I think by shield he means Panda II