Live data from Hacker News

The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

flexmonkey.blogspot.com

21–30 of 30 posts

Re: The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

#23

Earlier quoted context omitted.

A US nickel coin weighs exactly 5g. Edit: if you happen to be in that exotic locale. I'm sure other coinage has similarly consistent weight.

A dollar bill weighs 1g.

That's cool. I assume that holds for any American bill, since they're all the same size?

Re: The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

#24

Earlier quoted context omitted.

A dollar bill weighs 1g.

That's cool. I assume that holds for any American bill, since they're all the same size?

indeed it does. I have done it with 10 bills of mixed denominations and it's 10 grams on a scale.

Re: The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

#26
post #25

What kind of granularity can you get with this? Based on all of the apps/build in features utilizing 3D Touch, I had thought it was binary.

Really? Lightly touch an icon but don't press hard enough to show the shortcut menu - as you modulate your touch pressure the glow will follow. When you peek an email, adjust the pressure of your touch - you will see it zoom in and out.

Within a few minutes of playing with the feature it was obvious that it was very high resolution detection of pressures.

Re: The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

#27
post #25

What kind of granularity can you get with this? Based on all of the apps/build in features utilizing 3D Touch, I had thought it was binary.

Somewhere around 336 levels, it would seem, with this generation.

https://medium.com/@rknla/exploring-apple-s-3d-touch-f5980ef...

Re: The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

#29

Earlier quoted context omitted.

If you put a very light balloon in there won't the air pressure increase more than a smaller but heavier apple?

You put the object ontop of the bag, not in it

Ah! That makes a lot more sense now...

Re: The Plum-O-Meter: Weighing Plums Using 3D Touch in Swift

#30
post #8

That's awesome. You can make a scale another way too, by using the barometer in the iPhone. You will need a ziplock or other airtight clear plastic bag, and an object of known weight for calibration. You can measure the change in air pressure in the bag with your iPhone inside, and put your object to weigh on top of the bag (carefully balanced). There is a linear relationship between the rise in air pressure and the…

Note that the bag must be extremely flexible for that to work. Otherwise the weight will be supported by the bag and the air pressure inside will be lower. For some reason, that reminds me of the classic "measure the height of a building using a barometer" joke.

[deleted]
Post reply on HN