TrackWeight: Turn your MacBook's trackpad into a digital weighing scale

github.com

591 points by wtcactus a day ago


benoau - a day ago

There used to be iPhone apps that did something similar -

https://www.theverge.com/2015/10/28/9625340/iphone-6s-gravit...

hn_throwaway_99 - a day ago

I think this is neat, but only in a Rube Goldberg machine sort of way. The instructions are:

1. Open the scale

2. Rest your finger on the trackpad

3. While mainting finger contact, put your object on the trackpad

4. Try and put as little pressure on the trackpad while still maintaining contact. This is the weight of your object

That is, the pressure sensors only work if it detects capacitance, so you need to be touching the track pad (but not too much!!) while weighing something.

ivanjermakov - a day ago

> TrackWeight utilizes the Open Multi-Touch Support library by Takuto Nakamura to gain private access to all mouse and trackpad events on macOS. This library provides detailed touch data including pressure readings that are normally inaccessible to standard applications.

How can something be available as a library but not as a native interface? Swift does not expose that API?

incanus77 - a day ago

This reminds me of how, twenty years ago, I used the PowerBook’s hard drive vibration sensor to rig up a seismograph to measure construction noise:

https://allthegooddomainsweretaken.justinmiller.io/2007/04/0...

mikpanko - a day ago

Very cool. Curious: what is the minimum and maximum weight MacBook's trackpad can reliably measure this way?

pmxi - a day ago

This is clever! and potentially useful too.

Have you done any testing to determine how precise and accurate this is? I suspect their must be a lot of variance between laptops, since this isn’t an intended use case.

markstos - 6 hours ago

If you are backpacking with your Macbook, this saves you from also needing to pack a kitchen scale.

pavon - a day ago

I love this, such a creative hack, and the wonderful irony that it only works when one has their finger on the scale.

* Not legal for trade outside of Ankh-Morpork.

skyboo - 21 hours ago

Reminds me of this from when I had an HDD Macbook https://uri.cat/software/LiquidMac/

jordanmorgan10 - a day ago

Back when we had 3D Touch, there was UIForce which did this. I still lament the loss of 3D Touch to this day :-(

jahantech - a day ago

This is exactly why normal people call us geeks "weird". Keep bringing on the cool stuff!

projektfu - a day ago

Could it be used to provide gait analysis for your pet mouse?

mig39 - a day ago

Very cool, Krish! Hi from Fort McMurray! I'm going to use this project as an example for a Computer Science class.

qoez - a day ago

Apparantely on safari there's touch strength so this should be possible to make for the web too, cool

arm32 - a day ago

I must not use this for weed, I must not use this for weed, I must not use this for weed

mrheosuper - 17 hours ago

OT, but this is what i love about apple laptop. They care about small detail, the detail that won't be on spec sheet for advertising.

Like their laptop speaker is superior to any other machine, even premium laptop like xps or surface won't even come close. Or their huge trackpad but still accurate.

I wish other manufacturers copy this from Apple.

conflictracker - 13 hours ago

Best repo I discovered this month. I love this kind of stuff.

jojohohanon - 19 hours ago

I was a bit frustrated that the expected precision wasn’t on the main summary screen.

Does anyone know?

qwertytyyuu - a day ago

Ah I remember being able to do this with the iPhone 6s

tln - a day ago

No download link?

subdev - a day ago

How does one come up with this idea?

DonHopkins - a day ago

Just what I need to roll the quantitative doobie.

koiueo - a day ago

Finally, some actually useful usage scenario for that oversized trackpad

thrownawaysz - a day ago

Can someone compile a binary? Don't want to download Xcode just for that...

fnord77 - a day ago

What's the weight range it can handle? no mention of it and I don't want to dig through code

theyknowitsxmas - a day ago

Apple would've made an app a long time ago but would get sued after someone put a tire on it.

byyoung3 - a day ago

great work

ynniv - a day ago

Finally some hacker news

ChrisMarshallNY - a day ago

Very cool, but I'd still probably just buy a cheap digital scale.

robthebrew - a day ago

[flagged]

xyst - a day ago

[flagged]

elif - a day ago

[flagged]