I have one of these sensors
but however I adjust the sensitivity, the value read is either 32 or 1023 - nothing in between.
Am I missing something obvious here?
I have one of these sensors
but however I adjust the sensitivity, the value read is either 32 or 1023 - nothing in between.
Am I missing something obvious here?
Am I missing something obvious here?
No, but we are.
What's output - analog level? digital pulse stream? something else?
Looks like a reflection sensor, comparator IC with adjustable threshold, and a digital output.
Leo..
Wawa:
Looks like a reflection sensor, comparator IC with adjustable threshold, and dgital a output.
Leo..
I think Leo gets the prize. So, it is working perfectly. Whether it is being used perfectly, we don't know.
Looks similar to this:
Assuming the circuit diagram is correct, figure out which pin of the smoke coloured package is connected to ground then solder a wire to the other pin and connect it to the Arduino analogue input.
The sensitivity adjustment pot will not affect the analogue output as it only works on the digital half of the circuit.
So it only has 2 values? With the three output pins, I assumed it would have variable analogue out, which I intend to use for a "midi theremin" project.
Does this mean I should connect it to the digital pins and use it for on/off only?
Thanks, I'm at the low end of the learning curve at the moment
I don't see how your thought-process is working there - analogue or digital, you'd still need at least three pins for an active device.
AWOL:
I don't see how your thought-process is working there - analogue or digital, you'd still need at least three pins for an active device.
It's the thought process of an ignorant beginner - I assumed digital readings just needed on/off. ie two pins.
The device is half analogue, half digital.
The sensor itself is analogue, but the signal is converted into an on/off digital signal via an adjustable threshold and made available on the connector.
If you want the analogue signal you'll need to solder a wire to the sensor as mentioned in post #5.
mikb55:
Assuming the circuit diagram is correct, figure out which pin of the smoke coloured package is connected to ground then solder a wire to the other pin and connect it to the Arduino analogue input.
Sadly, it's too darn small to solder anything to it and the pcb seems to be laminated with some wires hidden inside. Nice idea though!
All boards have a protective laquer (solder mask).
Scratch it off with a blunt knife untill you see the bare copper.
Pre-tin that, and then solder a wire to it.
Leo..
google for "FC-51 sensor". I did it and found a site what sells it and includes description and all: Infrared Sensor Module Reflection FC-51.
(as I'm new to this fórum, I don't know if it is fine linking to comercial pages)
HIH
Rodeca