For a low cost linear measurement, you could try digital calipers. They typically have a serial port out the top side.
https://www.aliexpress.com/item/200mm-8-Inch-Digital-Caliper-Electronic-Carbon-Fiber-Vernier-Gauge-LCD-Screen-Micrometer-Measuring-Tools/32868362949.html?spm=2114.search0204.8.77.79e32c57dZqF8h
Brief overview of the serial interface found here. It notes the 1.5V signal levels, so with the STM32, I think we are OK with our 3.3V supply. No need for those external level shifting transistors. Just wires between this and the STM32.
http://nut-bolt.nl/2012/reading-digital-calipers-with-an-arduino/
The above article references this article, which gets into more detail. I recall there were 2X different protocols for these. This one is the most common, but beware there is another one that could be obtained. AKA get the plastic that looks like these, not those other ones with more fancy looking plastic.
http://robocombo.blogspot.com/2010/12/using-tis-launchpad-to-interface.html
This trick also tends to work with these DRO devices.
https://www.aliexpress.com/item/shahe-0-150-mm-linear-scale-dro-remote-digital-readout-linear-scale/32826807324.html?spm=2114.search0204.8.5.456612d3s2qULN
[help needed] electronic DIY shock dyno
- kb1gtt
- contributor

- Posts: 3779
- Joined: Tue Sep 10, 2013 1:42 am
- Location: ME of USA

Re: electronic DIY shock dyno
You do not have the required permissions to view the files attached to this post.
Welcome to the friendlier side of internet crazy 
-
deezums
- Posts: 13
- Joined: Fri Oct 09, 2020 6:09 pm
Re: electronic DIY shock dyno
I made a DIY dyno based off the Honda forum post a while back. I used a 1,000kg load cell and linear potentiometer from injection molding machines.
It more or less worked, matches up with what I would expect a stock miata bilstein to look like. I never actually tried changing any valves, or rebuilding any shocks.
If I recall, the HX711 was way too slow. I bought some dev board for a fancy Analog devices ADC and got it up and running at very high speed instead. Ringing doesn't much seem to be an issue, but slop in joints on changes of direction are, so I filter those results out.
Noise on the potentiometer was always an issue, I looked into LDVTs and some other encoders and more or less left it there.

And some data, sorry for the lack of units and wacky scaling and no visibility. Pretty sure the last two are the software's fault and not my own.
https://imgur.com/a/bTfKXoD
It more or less worked, matches up with what I would expect a stock miata bilstein to look like. I never actually tried changing any valves, or rebuilding any shocks.
If I recall, the HX711 was way too slow. I bought some dev board for a fancy Analog devices ADC and got it up and running at very high speed instead. Ringing doesn't much seem to be an issue, but slop in joints on changes of direction are, so I filter those results out.
Noise on the potentiometer was always an issue, I looked into LDVTs and some other encoders and more or less left it there.

And some data, sorry for the lack of units and wacky scaling and no visibility. Pretty sure the last two are the software's fault and not my own.
https://imgur.com/a/bTfKXoD
- AndreyB
- Site Admin
- Posts: 14779
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B

Re: electronic DIY shock dyno
where are you located?!
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
deezums
- Posts: 13
- Joined: Fri Oct 09, 2020 6:09 pm
Re: electronic DIY shock dyno
Near the middle of Kansas, more or less.
- AndreyB
- Site Admin
- Posts: 14779
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B

Re: electronic DIY shock dyno
Important thing we are in the same country
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
deezums
- Posts: 13
- Joined: Fri Oct 09, 2020 6:09 pm
Re: electronic DIY shock dyno
Haha, not a problem! I probably won't build my own set of shocks before then anyway.
Just as a fair warning, it's a bit of a workout!
Just as a fair warning, it's a bit of a workout!

