ADC 16bit conversion to 1µm

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Ferla
Flowcode v5 User
Posts: 126
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

ADC 16bit conversion to 1µm

Post by Ferla »

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

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: ADC 16bit conversion to 1µm

Post by kersing »

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

Ferla
Flowcode v5 User
Posts: 126
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: ADC 16bit conversion to 1µm

Post by Ferla »

sorry... What part of the forum can I use?

User avatar
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

Post by Benj »

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.

Ferla
Flowcode v5 User
Posts: 126
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: ADC 16bit conversion to 1µm

Post by Ferla »

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.

User avatar
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

Post by Benj »

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 :wink:


User avatar
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

Post by Benj »

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.

Ferla
Flowcode v5 User
Posts: 126
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: ADC 16bit conversion to 1µm

Post by Ferla »

I take note of your advice, I think AL025 is sufficiently suitable for what I would like to do. :wink:
I always remain included in the right conversion calculation.

User avatar
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

Post by Benj »

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.

Ferla
Flowcode v5 User
Posts: 126
Joined: Sun Jan 06, 2013 8:58 pm
Location: Italy
Been thanked: 19 times
Contact:

Re: ADC 16bit conversion to 1µm

Post by Ferla »

Fantastic, I immediately order the component, this is what makes the difference between you Matrix and the other tools.
Matrix, I love you all ♥ :lol: "I hope you don't misunderstand me :D "

Post Reply