rotating sharp IR sensors

Hello everyone,

I have attached to a DC brush-less motor 2 sharp IR sensors and attached those to a TI ADS1015. I have the code done for the sampling and I am already getting some readings. The problem I am having is that the measurements when the sensor is still, and when they are rotating are different.

I am able to detect obstacles, but I have significant amount of noise that I have to filter out.

my question is are these sensors suitable for measuring distances while rotating? I know these sensors measure the angle of the incidence of the IR beam. could it be that the angle changes over time?

Thanks in advance!

The most likely cause is timing errors, and analog noise. The sharp distance sensors need filtering of the supply voltage and signal output with capacitors for filter out noise spikes. Itself can create those analog spikes when it is switching on and of it’s IR led. Just google sharp sensors and filtering. Aside from that, the output voltage is updated at regular intervals. There may be some delay in the signal. And if you are turning the sensor this will appear as range errors to the object measured or angle errors depending on the turn/sweep rate.

If you are turning DC motors then this may cause additional noise on the supply of the sharp sensor. And this may get through into the output signal of the sensor. Since you have not explained how you drive this motor it is hard to suggest ways of reducing motor noise.