Analog Proximity Sensor Readings

Topics about the Hardware of Revolution Pi
Post Reply
luka
Posts: 12
Joined: 04 Sep 2017, 07:19
Answers: 0

Analog Proximity Sensor Readings

Post by luka »

Hello!

I have one question regarding analog input reading time. We are using analog proximity sensor and it seems that reading time is somewhat delayed (seems more than 100ms).

I am testing this on a simple c program with just printing the result of reading the variable. But the readings seem a bit slow or unresponsive when value changes.

There is no noticable delay with digital inputs.

Do you have any idea why this may be?

Our connection of sensor to aio module.

P.s.
sensor has also option of reading voltage but we do not use it in this application.
analog_prox_sens_conf.png
analog_prox_sens_conf.png (174.75 KiB) Viewed 4370 times


Thanks,
Luka
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41
Answers: 1

Re: Analog Proximity Sensor Readings

Post by volker »

Hi Luca,
we are using such sensors for our exhibts and they work fine and responsive. But please note that there are models out on the market which do have low pass filter functions built in (which sometimes can be configured) controlling their responsiveness in time which behaves reciprocal to the precision of the measurement.
Unser RevPi Motto: Don't just claim it - make it!
luka
Posts: 12
Joined: 04 Sep 2017, 07:19
Answers: 0

Re: Analog Proximity Sensor Readings

Post by luka »

Thanks.

I found out there is a ADC_Data rate settings. Set it to higher value. Works as expected now.
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41
Answers: 1

Re: Analog Proximity Sensor Readings

Post by volker »

Okay, great!
Yes we do have the same in our AIO module: slower = higher precision...
Unser RevPi Motto: Don't just claim it - make it!
Post Reply