ADC 16bit conversion to 1µm
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
ADC 16bit conversion to 1µm
Hello guys
a kind suggestion from you.
I would like to measure the distance with a resolution of 0.001 mm (1µm) a connected magnetometer and a ADC to Pic, so I assume that I have to set the order of the 16 bits since mathematics is not my strong point in your opinion, what formula can i use to convert ADC to mm ?
Thanks
a kind suggestion from you.
I would like to measure the distance with a resolution of 0.001 mm (1µm) a connected magnetometer and a ADC to Pic, so I assume that I have to set the order of the 16 bits since mathematics is not my strong point in your opinion, what formula can i use to convert ADC to mm ?
Thanks
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
Re: ADC 16bit conversion to 1µm
Please do not post questions as topic starters in "Programming Tips & Tricks".
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC 16bit conversion to 1µm
Hello,
The number of ADC bits is dictated by the microcontroller, you can use the read as int to read a full bit depth value, normally 10-bit or 12-bit on most microcontrollers.
Often noise can become quite a large part of the problem and so you often find magnetometers with their own dedicated on-board filtered adc hardware and a digital interface. This is designed to try and eliminate as much noise as possible from the system. This is also why microcontrollers rarely have ADC peripherals with greater then 12-bit.
We support a number of magnetometer sensors in Flowcode 8, if you find a specific sensor that isn't supported then let us know and we will investigate adding it for you.
The number of ADC bits is dictated by the microcontroller, you can use the read as int to read a full bit depth value, normally 10-bit or 12-bit on most microcontrollers.
Often noise can become quite a large part of the problem and so you often find magnetometers with their own dedicated on-board filtered adc hardware and a digital interface. This is designed to try and eliminate as much noise as possible from the system. This is also why microcontrollers rarely have ADC peripherals with greater then 12-bit.
We support a number of magnetometer sensors in Flowcode 8, if you find a specific sensor that isn't supported then let us know and we will investigate adding it for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
Re: ADC 16bit conversion to 1µm
Always fantastic as always in responding quickly, very helpful.
I am evaluating ATL025 or SM324 of the NVE.
We find projects that convert ADC to temperature, humidity etc., but nothing that converts to linear displacement.
I have always been fascinated by DRO that read various peripherals from simple Chinese gauges to linear scales or to the digital protocol (Mitutoyo). Cannot create any component related to linear displacement? It would be useful for many applications where it is not possible to install a rotary encoder.
I am evaluating ATL025 or SM324 of the NVE.
We find projects that convert ADC to temperature, humidity etc., but nothing that converts to linear displacement.
I have always been fascinated by DRO that read various peripherals from simple Chinese gauges to linear scales or to the digital protocol (Mitutoyo). Cannot create any component related to linear displacement? It would be useful for many applications where it is not possible to install a rotary encoder.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC 16bit conversion to 1µm
Hello,
The SM324 looks good, I'll have a read through the datasheet and see how easy it would be to generate a component for it.
I did find a datasheet for the ATL025 but it wasn't giving much away
The SM324 looks good, I'll have a read through the datasheet and see how easy it would be to generate a component for it.
I did find a datasheet for the ATL025 but it wasn't giving much away

Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC 16bit conversion to 1µm
Aha, yes thanks that one's slightly better, I would still vote for the SM324 as for the ATL025 you need a microcontroller with differential ADC which we don't currently support. Or you might be able to get away with a bridge amplifier e.g. A HX711 but again it's not as straightforward.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
Re: ADC 16bit conversion to 1µm
I take note of your advice, I think AL025 is sufficiently suitable for what I would like to do.
I always remain included in the right conversion calculation.

I always remain included in the right conversion calculation.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC 16bit conversion to 1µm
Hello,
The SM324 component has now been done and will be pushed out to the update system this afternoon along with a couple of other new bits.
The SM324 component has now been done and will be pushed out to the update system this afternoon along with a couple of other new bits.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Flowcode v5 User
- Posts: 126
- Joined: Sun Jan 06, 2013 8:58 pm
- Location: Italy
- Been thanked: 19 times
Re: ADC 16bit conversion to 1µm
Fantastic, I immediately order the component, this is what makes the difference between you Matrix and the other tools.
Matrix, I love you all ♥
"I hope you don't misunderstand me
"
Matrix, I love you all ♥

