Changing linefinder Sensor Digital Read to Analog Read


#1

Hi.

I was wondering if there was anyway to alter the ME-Linefinder so the sensors would provide an analog output based on how much Infrared they sense? I am working on a PID algorithm that requires analog sensor values based on the reflectivity of the object it is sensing.

I tried unsuccessfully to use a PWM Port (Port 6) and alter the library for the function “linefinder.readSensor1()” from Digital Read (DRead) to Analog Read (ARead), but I was only getting extreme values 947 or 0… but nothing in between. Maybe I am not understanding how the sensor works but I would think that it would output a range of values based on what is reflected back from the surface. Can someone steer me in the right direction.


#2

Hi @prevost_jacob

I’m sorry for that the Me-linefinder can’t output PWM value. The probe does output the analogue value. But there is a 74HC chip on the PCB. The chip would transfer the analogue value to high low-level output voltage. The critical value is 1.6V.

However, you can try to use the light sensor to replace the Me-linefinder. The light sensor would output the analogue value.


#3

Thank you for the information. That makes sense now!


#4