But, he’s using the regular Analog I/O from NetMF. I think the Seeed Gadgeteer code could just confuse things as Gadgeteer uses a 0.0 to 1.0 and NetMF uses an int value of (as far as I know) unspecified range.
…or I completely missed something, which is entirely possible
As an aside, I just checked the specs on the LPC2387 (which the old white Panda I uses). The chip uses a 10 bit ADC and as such, should (assuming no other code scaling this value in NETMF), returns values between 0 and 1023. That would mean something above, say, 600 or 700 would be pretty wet.
Thank You,
Ok how would I do code to check if the sensor is connected? Also the sensor that I am using uses a propieretary “grove” connection. There are 4 wires
1.SIG
2.Nothing
3.VCC
4.GND
Would I need the second wire?
Thank You