HI
I am using Panasonic HG-C1030 sensor with an Arduino R4 and ads1115.
On HG-C1030 i will mensure objects less then 1 milimeter.
The sensor has an analog output option 0-5V or 4-40ma.
On sensor im using 0-5volts
On arduino with ads1115 i can read voltage (ads.computeVolts function) to read a voltage on sensor´s Analog output.
My question its, how to convert votage to milimeters?
I looked at the datasheet but did not see any formula to do the conversion of voltage to mm. Keep in mind I am an autistic 82 yo so maybe you or someone younger should read over the specs again just in case I missed something.
Have you tried contacting the manufacturer?
Page 191 seems to indicate you set a minimum and maximum distance, my interpretation is the distance is mapped to 0 to 5vdc (your ADC). It also seems to need 30vdc to work.
For distance is A to B in small steps:
- Measure A mm ==> Av volts 10 times
- take the average of the volts
- write the distance and average in a table (Spreadsheet is useful)
Let the spreadsheet try to find a matching formula
If that does not work have a look at