Quote:
Originally Posted by andreboos
Why would an unconnected pin report random values? Or do you just mean it would be a noisy zero?
|
The open input to the analog board is capable of receiving electrical noise interference from the environment, sparks generated in motors or other electronic signals within the robot. Best practice is to somehow limit analog inputs to prevent this noise intrusion. A limit switch between +5 and power common provides a very low impedance source in either case that minimizes noise pickup. Yes, noise can be picked up of sufficient amplitude that it could be interpreted as a valid signal.