My team tried testing the Pololu QRTXL analog reflectance sensor but has been unsuccessful. We want to use them line detection and following
Last year, we ordered 16 channel QRT sensors and could get voltages, but they were inconsistent between the different channels and hence could not be useful. All of the channels went to the Analog In ports.
This year we got the 1 channel QRTXL sensor. We have it wired up to the Analog In on the roboRIO (VCC to power, G to ground, and S to signal). Once again we are getting a voltage through the getVoltage() method, but it is not varying. We think the sensor is working properly because we briefly checked that the voltage was actually varying with voltage meter, but there is more testing we have to do.
How do we implement these sensors? Would this be a code error or an electronics error.