Sometimes you just get lucky. I had a project on my list for a long time, and it was one that I had been putting off for a few months now because I loathed one part of what it entailed — sensitive, high-accuracy analog measurement. And then, out of the blue I stumbled on exactly the right trick, and my problems vanished in thin air. Thanks, Internet of Hackers!

The project in question is a low-vacuum regulator for “bagging” fiberglass layups. What I needed was some way to read a pressure sensor and turn on and off a vacuum pump accordingly. The industry-standard vacuum gauges are neat devices, essentially a tiny little strain gauge on a membrane between the vacuum side and the atmosphere side, in a package the size of a dime. (That it’s a strain gauge is foreshadowing, but I didn’t know that at the time.) I bought one for $15 ages ago, and it sat on my desk, awaiting its analog circuitry.

See, the MPX2100 runs on 12 V and puts out a signal around 40 mV on top of a 6 V offset. That voltage level is inconvenient for modern 3.3 V microcontroller ADCs, and the resolution would get clobbered by the 6 V signal if I just put a voltage divider on it. This meant whipping together some kind of instrument amplifier circuit to null out the 6 V and amplify the 40 mV for the ADC. The circuits I found online all called for 1% resistors in values I didn’t have, and mildly special op-amps. No fun, for me at least. So there it sat.

<img data-attachment-id="496693" data-permalink="https://hackaday.com/2021/09/18/finding-the-right-hack-is-half-the-battle/dscf2554_thumbnail/" data-orig-file="https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png" data-orig-size="1200,1200" data-comments-opened="1" data-image-meta='{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}' data-image-title="DSCF2554_thumbnail" data-image-description="" data-image-caption="

Cut the blue wire or the red wire? HX711 module and pressure sensor on the left.

” data-medium-file=”https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png?w=400″ data-large-file=”https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png?w=625″ loading=”lazy” src=”https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png?w=400″ alt=”Picture of sketchy-looking vacuum apparatus.” width=”400″ height=”400″ srcset=”https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png 1200w, https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png?resize=250,250 250w, https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png?resize=400,400 400w, https://hackaday.com/wp-content/uploads/2021/09/DSCF2554_thumbnail.png?resize=625,625 625w” sizes=”(max-width: 400px) 100vw, 400px”>

Cut the blue wire or the red wire? HX711 module and pressure sensor on the left.

Until I ran into this project that machetes through the analog jungle with one part, and it happened to be one I had on hand. A vacuum pressure sensor is a strain gauge, set up like a Wheatstone bridge, just like you would use for weighing something with a load cell. The solution? A load-cell ADC chip, the HX711, found in every cheap scale or online for under a buck. The only other trick was finding a low-voltage pressure sensor to work with it, but that turns out to be easy as well, and I had one delivered in two days.

In all, this project took months of foot-dragging, but only a few clicks and five minutes of soldering once I got the right idea. The industrial applications and manufacturers’ app notes all make sense if you are making hundreds or millions of these devices, where the one-time cost of prototyping up the hard bits gets amortized, but the hacker solution of using a …read more

Source:: Hackaday