arduino Sharp IR distance sensor outputting consistently high voltage

Posted on Feb 6, 2014

A project with two distance sensors that signal an Arduino to operate a servo motor when an object comes into range. This currently works well, except that the sensors are outputting a relatively high voltage all the time, so I have to set a very high cutoff voltage in the Arduino code, or the motor is triggered all the time - eg both sensors are giving the Arduino numbers like 350-450

arduino Sharp IR distance sensor outputting consistently high voltage
Click here to download the full size of the above Circuit.

via the analog Read command (which should be about 1. 7 - 2. 1V as far as I understand it) all the time. This means that if I set a cutoff of 550 or 600, the setup works, but only if an object is within 12cm of the sensor (which should be able to detect objects as far away as 80cm). The sensors are not optically interfering with each other. I am using an old computer ribbon cable to connect both sensors to the Arduino and I am suspicious that this is somehow causing noise in the output voltage, but the Arduino never seems to be read values less than about 300 (1. 4V), and I would have expected noise to give some low readings sometimes. Any help would be greatly appreciated. I tried posting a circuit diagram, but as a guest user, the site won`t let me. Also, I`d post the code, but it is embarrassingly messy. The Arduino and the servo have separate power sources with common ground, the sensors are powered from the regulated 5V Arduino supply, and connected to separate analog pins.

Leave Comment

characters left:

New Circuits



Popular Circuits

Components Tester with AT89C52
2x30W audio amplifier (STK465)
Level sensor for cryogenic fluids
Electronic Thermometer
IR Remote Control Extender Circuit
Interfacing LCD with 8051
remote control for electrical
stk415 090e 2x50 watt stereo
Pulse Operation of DC Solenoids
Simple AM Transmitter
Switchless NiCd-NiMH Battery Charger
Frequency electronic locks LM567 schematic
Common emitter amplifier works a