Hello! I am currently using the TCRT5000 Reflective Optical Sensor for my project. The sensor outputs data in a range of about 0-1000. I was hoping to connect the LM358 Amplifier Module (Adjustable Gain up to 100x) to my sensor in order to increase the output signal.
The wiring of the op amp module seems very simple. However, when I connected everything the output changed to a range of around 450-550. I am confused as to why this is happening, and quite stuck.
To test it out, I used a different Arduino board and the KY-038 Sound Sensor with a different LM358 Amplifier Module. To my surprise, I got the same result of a a range of around 450-550.
Clearly, I am doing something very wrong. Any help would be greatly appreciated!
I'm fairly sure most of us don't have a crystal ball.
If you want serious help, then post a link to the sensor, a diagram with parts values showing how you did get that 0-1000, a diagram how you did connect it to the LM358, and the code (with code tags!).
The type of Arduino might also be important.
Read the 'how to post' guidelines first.
Leo..
This is your sensor data sheet. I haven't a clue what you are trying to do? The sensor has an Open Collector transistor output suitable for Digital Input pin of an Arduino. It uses a phototransistor. Why are you trying to amplify the output? Here is an overview using the part already on a module board with an Arduino. If using a module board keep in mind:
Features:
Supply Voltage: 3.3V~5V
Detect distance: 1mm-8mm
Digital Outputs LOW when objects detected
On-board indicator LED to show the results
On-board potentiometer to adjust the sensitivity
On-board LM393 chip
The output is digital high or low. If you are using only the part tie 10K resistor to the collector out and the other end of resistor to 5.0V or 3.3V and the collector resistor junction to your digital input.