frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Strain gauge made out of PCB

https://github.com/vapetrov/PCB_strain_gauge
116•dr_coffee•1y ago

Comments

fake-name•12mo ago
The challenge is that while you can make a strain gauge out of just about anything, making them repeatable over temperature, humidity (in the case of hygroscopic materials, like PCB FR4) and repeated flexing is where it gets difficult.

For this, while I'm sure it works, if the humidity and/or temperature changes, the same deflection will result in different readings.

If you can calibrate it immediately before each use, or you don't care about absolute values, this is a completely valid option.

"Real" strain gauges generally use a constantan resistive element to deal with the temperature variability, deposited on a plastic carrier film (typically polyimide). The film elements then get glued to the stress sensing member. They're fairly inexpensive too.

mofosyne•12mo ago
I'm sure there's a general rule of thumb where this approach works best as an approximation (such as a simple on/off switch)... which may give us opportunities to simplify the BOM list further with cheaper parts at cost to accuracy which wouldn't apply to PCB anyway.

Where I mostly seen this approach is with 3D printers where we just want to know if the nozzle is touching the print base.

But if we can quantify the general worse case variation between most PCBs then maybe we can create a recommended strain sensor element with a semi-quantified level of accuracy so it's not just an on/off sense.

greggsy•12mo ago
I figured that's why they put it in a sealed chassis in the demo.
margalabargala•12mo ago
All sensors are thermometers, some measure other things too.
kragen•12mo ago
I hadn't thought about the hygroscopic and expansion questions; I think FR4 is, like wood, almost immune to longitudinal variation with temperature and humidity due to its anisotropy. (But I haven't tried to measure that.) And strain gauges are low enough impedance that I'd expect the capacitive effects to matter.

The temperature coefficient of resistance of the strain element seems like a concern, though, and so do thermal EMFs. My kitchen scale zeroes when I turn it on, a procedure that should be able to cancel one of these two but not both. Maybe you could have a diode thermal sensor, as an MCXO does, to measure the temperature so you can cancel both?

This project seems to do the first-order temperature correction thing:

> The included sample firmware will wait until a serial console is opened, perform a 5 second offset calibration, then sample continuously at the lowest gain setting. The graph.py script can be used to display the output.

> For high sensitivity measurements, it's important to let the board reach a stable operating temperature for at least 5 minutes before calibrating

.

The thing I intuitively worry about here is creep. Does FR4 creep enough to worry about? Normally you make strain gauge bodies out of steel because it doesn't.

4gotunameagain•12mo ago
For temperature dependent effects there are things like self-compensated strain gauges (where their temperature related deformation counteracts that of a target material), or dual side measurement (sandwich a bar between two strain gauges, strain cause compression on one, elongation on the other, so +-/-+, while temperature compresses or elongates both (++/--), cancels out.)
kragen•11mo ago
You might be able to do that kind of thing with traces on both sides of the FR4?
knotimpressed•12mo ago
For a long time I've been trying to make a DIY milligram-accurate scale, and milligram-accurate strain load cells are expensive. Does anyone know if the resolution of this is high enough?
colechristensen•12mo ago
You can just buy strain gauges which are specially cut copper foils on a thin plastic substrate that you glue to something, like a metal strip. The resistance changes very slightly as the metal bends.

You measure the change in resistance with a wheatstone bridge tuned correctly.

You basically just need a strain gague (a few dollars), 4 resistors, an op-amp, and a microcontroller with an ADC.

Calibration is important and you'll run into things like the metal bar creeping, permanently bending as a result of weight being put on and off.

But also, milligram accurate scales are $20 on Amazon https://www.amazon.com/GRAM-PRES-Precision-Milligram-Reloadi...

kragen•12mo ago
Not every scale with milligram repeatability has milligram accuracy, and not every scale with milligram resolution readouts has milligram repeatability. You probably know that, but not everyone reading this does.

(This one might be fine? It does claim to have a 50.000g calibration weight, which is a good sign, but it doesn't say anything about metrological traceability, which is a bad sign.)

dogma1138•12mo ago
Precision and accuracy is very expensive there is a reason why high end measurement equipment costs as much as it does.
kragen•12mo ago
At some level it becomes expensive, but it's far from clear that five significant figures of mass is that level.

A US$2 quartz watch measures time to 5½ significant figures, US$10 multimeters routinely measure voltage to 4½, and US$5 GPS receivers can provide you with time measurements accurate to 40ns that inherit the drift of world metrology standards, a precision of 16 significant figures if you are measuring a long enough time interval (over 10 years).

userbinator•12mo ago
Where are you finding $10 4.5 digit multimeters?
kragen•12mo ago
Hardware store, usually. 3.5 digits is common, 4.5 digits less so.
userbinator•12mo ago
3.5 digit ones sell for far less than that (especially the infamous 830-series based on the ICL7106 and its clones). I haven't found any 4.5 digit ones at that price.
kragen•12mo ago
I might be misremembering. How much have you found 4½ digit multimeters to cost?
userbinator•11mo ago
Around $30 at the very, very least.
thirdhaf•12mo ago
As a quick and dirty rule of thumb measuring parts per million in anything except time or frequency will get expensive. Temperature drifts will cause expansions and contractions on that order if you’re measuring lengths.
kragen•12mo ago
Yes, but in this case we're measuring weights, not lengths, and we're looking for 5 sig figs, not 6.
colechristensen•12mo ago
>metrological traceability

It's a $20 scale, if you had need of metrology you wouldn't be buying a $20 scale. Most of us do not need metrology. I want to make small amounts of pickles with perhaps unreasonably precise measurements of salt at scales where half a gram or maybe a tenth of a gram is significant.

kragen•12mo ago
You said, "Milligram accurate scales are $20 on Amazon," and linked to that scale. I'm questioning whether it's really accurate to a milligram. It sounds like now you're questioning that, too. That's fine. But please don't pull this sour grapes bait and switch bullshit.
s0rce•12mo ago
My dad built one with an electromagnetic coil many years ago, can't find the design, capacity was limited but had 100? microgram resolution, maybe similar to this applied science video https://www.youtube.com/watch?v=ta7nlkI5K5g but I think simpler.

maybe something like this: https://www.erowid.org/archive/rhodium/chemistry/equipment/s... https://www.erowid.org/archive/rhodium/chemistry/equipment/s...

I found some old emails about the scale from 2005/6 but can't find the link and it would probably be gone anyways.

kragen•12mo ago
Thanks for the reference! If you do find the link maybe it will be in the WABAC machine.
stavros•12mo ago
That's the most interesting misspelling of "wayback" I've seen so far.
bialpio•12mo ago
TIL it may not necessarily be a misspelling: https://en.m.wikipedia.org/wiki/Wayback_Machine_(Peabody%27s...
flowerthoughts•12mo ago
In the video, the author tries it with a small component that I think is a SOT-323-5 or similar. Based on [1], that weighs about 5-8 mg.

[1] https://www.mccsemi.com/pdf/ComponentWeightInformation.pdf

kragen•12mo ago
My uninformed opinion based on no experience is that this will creep so you should use a Kibble balance instead. (See sibling comment by s0rce.) Or maybe use a lever arm to amplify milligrams into tens of milligrams of force. Or just a regular pan balance. How big a weight do you want milligram precision on?

If you have some way to cut a precise shape out of some kind of metal sheet of well-controlled thickness, could you cut out a milligram precision bismar balance or steelyard?

dogma1138•12mo ago
Probably not, PCBs are also terrible as load cells because fibers break.

In general if you want a precise and accurate strain gauge you’ll be paying a lot for it, especially for one that doesn’t need to be recalibrated before every use and after nearly every measurement.

stefan_•12mo ago
Shahriar has a video on repairing a milligram resolution scale: https://www.youtube.com/watch?v=Lz9mBc6FGzE

They don't tend to use strain gauges I think.

klysm•12mo ago
Milligram accuracy isn’t a really a direct property of the load cell. A lot of it comes down to creep and hysteresis behavior.
sadhorse•11mo ago
Use vibration to measure small masses. Measuring natural frequency can be very accurate and sensitive.
rolph•12mo ago
Piezoelectric or Strain Gauge Based Force Transducers?

https://www.hbkworld.com/en/knowledge/resource-center/articl...

Piezo vs. strain gauge https://www.kistler.com/US/en/piezo-vs.-strain-gauge/C000001...

amelius•12mo ago
> Thinner boards will result in a smaller output voltage swing.

For the same weight? I would expect the opposite.

qwery•12mo ago
For the same deflection, I assume.

The device effectively measures mechanical strain at the surface of the PCB. The surfaces of a thicker board will experience more strain from bending because the radius of the curve (at the surface) is greater.

amelius•12mo ago
Can anyone explain why the BRIDGE_SUPPLY voltage is connected to the voltage regulator output and PWM signal at the same time (through the FSA5157L6 analog switch)?
bitdivision•12mo ago
I don't think it is. PWM_BIAS is used as the select for the analog switch. High connects COM to B1 (GND) and low connects COM to B0 (BRIDGE_SUPPLY).
amelius•12mo ago
Ah yes, you're right, my bad.

The map that keeps Burning Man honest

https://www.not-ship.com/burning-man-moop/
326•speckx•3h ago•134 comments

AlphaEvolve: Gemini-powered coding agent scaling impact across fields

https://deepmind.google/blog/alphaevolve-impact/
133•berlianta•2h ago•37 comments

Child marriages plunged when girls stayed in school in Nigeria

https://www.nature.com/articles/d41586-026-00796-2
217•surprisetalk•4h ago•130 comments

Agents need control flow, not more prompts

https://bsuh.bearblog.dev/agents-need-control-flow/
42•bsuh•1h ago•9 comments

California leaders report four to six weeks worth of gasoline and diesel supply

https://kmph.com/news/local/california-leaders-report-four-to-six-weeks-worth-of-gasoline-and-die...
63•cdrnsf•45m ago•68 comments

DeepSeek 4 Flash local inference engine for Metal

https://github.com/antirez/ds4
51•tamnd•2h ago•10 comments

The Self-Cancelling Subscription

https://predr.ag/blog/the-self-cancelling-subscription/
81•surprisetalk•3h ago•37 comments

Chrome removes claim of On-device Al not sending data to Google Servers

https://old.reddit.com/r/chrome/comments/1t5qayz/chrome_removes_claim_of_ondevice_al_not_sending/
118•newsoftheday•1h ago•22 comments

RaTeX: KaTeX-compatible LaTeX rendering engine in pure Rust

https://ratex.lites.dev/
113•atilimcetin•3d ago•65 comments

PySimpleGUI 6

https://github.com/PySimpleGUI/PySimpleGUI
33•geophph•1d ago•9 comments

OpenBSD Stories: The closest thing to cute kittens (OpenBSD/zaurus)

http://miod.online.fr/software/openbsd/stories/zaurus1.html
19•zdw•22h ago•3 comments

MPEG-2 Transport Stream Packaging for Media over QUIC Transport

https://www.ietf.org/archive/id/draft-gregoire-moq-msfts-00.html
30•mondainx•3h ago•11 comments

Speedup in Lattice Boltzmann Cylinder Flow

https://github.com/alikamp/Parks-KPBM-Scaling
38•kauai1•2d ago•3 comments

SQLite Is a Library of Congress Recommended Storage Format

https://sqlite.org/locrsf.html
532•whatisabcdefgh•19h ago•161 comments

Indian matchbox labels as a visual archive

https://www.itsnicethat.com/features/the-view-from-mumbai-matchbook-graphic-design-130426
126•sahar_builds•3d ago•28 comments

Appearing productive in the workplace

https://nooneshappy.com/article/appearing-productive-in-the-workplace/
1476•diebillionaires•1d ago•599 comments

Printing Blogs

https://fi-le.net/print/
7•fi-le•1d ago•1 comments

GovernGPT (YC W24) Is Hiring Engineers to Build Thinking Systems in Montreal

https://www.ycombinator.com/companies/governgpt/jobs/hRyltS0-backend-engineer-thinking-systems
1•owalerys•5h ago

Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

https://www.ticalc.org/programming/columns/83plus-bas/cherny/
146•suoken•2d ago•65 comments

Show HN: Stage CLI – a tool to make reading your AI generated changes easier

https://github.com/ReviewStage/stage-cli
6•cpan22•2h ago•0 comments

Agent-harness-kit scaffolding for multi-agent workflows (MCP, provider-agnostic)

https://ahk.cardor.dev
59•enmanuelmag•7h ago•18 comments

Diskless Linux boot using ZFS, iSCSI and PXE

https://aniket.foo/posts/20260505-netboot/
170•stereo-highway•14h ago•89 comments

Motherboard sales are now collapsing amid unprecedented shortages fueled by AI

https://www.tomshardware.com/pc-components/motherboards/motherboard-sales-collapse-by-more-than-2...
118•speckx•2h ago•95 comments

RSS feeds send me more traffic than Google

https://shkspr.mobi/blog/2026/05/rss-feeds-send-me-more-traffic-than-google/
235•SpyCoder77•17h ago•52 comments

Vibe coding and agentic engineering are getting closer than I'd like

https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering/
722•e12e•1d ago•814 comments

Valve releases Steam Controller CAD files under Creative Commons license

https://www.digitalfoundry.net/news/2026/05/valve-releases-steam-controller-cad-files-under-creat...
1661•haunter•1d ago•558 comments

Chevrolet Performance eCrate package (400v/200hp)

https://www.chevrolet.com/performance-parts/crate-engines/ecrate
143•mindcrime•2d ago•119 comments

SingleRide: Longest route on NYC Subway without visiting the same station twice

https://singleride.nyc/
81•TMWNN•1d ago•45 comments

The mechanical latching memory of an adhesive tape

https://iopscience.iop.org/article/10.1088/1367-2630/ae4acc
23•gnabgib•1d ago•11 comments

ProgramBench: Can Language Models Rebuild Programs from Scratch?

https://arxiv.org/abs/2605.03546
111•jonbaer•14h ago•60 comments