Phyphox – Physical Experiments Using a Smartphone (phyphox.org)

by _Microft 42 comments 256 points
Read article View on HN

42 comments

[−] davidhoell 33d ago
The coolest thing I ever did with that was finding wires in a friends wall - we needed to drill a hole and it was unclear whether the wires went up (problem) or right from the outlet. I didn't have a cable finder on hand but did have the epiphany to put a large load on the outlet (we used a kettle, a hairdryer would also work, just needs a lot of watts) and use the Fourier transform magnet spectrum to find the 50 Hz grid frequency in the wall. Worked beautifully.

Sadly, since most smartphone magnetometers seem to have a sample rate of 100/s, this will not be applicable to Americans and everyone else with a 60 Hz grid frequency, the 50 Hz were already at the Nyquist–Shannon limit.

[−] gus_massa 33d ago

>

this will not be applicable to Americans and everyone else with a 60 Hz grid frequency, the 50 Hz were already at the Nyquist–Shannon limit.

The trick should work fine, but you may confuse the 60Hz signal with a 40Hz signal [1] [2].

This should work for higher frequencies too, but if the frequency is toooo high the problem is that the magnetometers averages a short period of time (or use a window) instead of being an actual an instant measurement.

[1] Calculated using my fingers moving in the air. 60=50+10 -> 50-10=40. I think it's 40Hz, but I would need a pencil and paper to be sure.

[2] https://en.wikipedia.org/wiki/Aliasing

[−] slow_typist 33d ago
If your sample rate is 100 Hz you would usually apply analog lowpass filtering at around 40 Hz, well below Nyquist. But with enough load on the line, since no filter has perfect attenuation in the stop band…
[−] laxpri 31d ago
are you using magneto-meter . I am quite noob using it
[−] slow_typist 33d ago
There is a paper you can cite if you use phyphox professionally.[1]

In Germany phyphox is quite popular in physics education.

However on android the sampling rate of the acceleration sensor is limited to 50/s. At least if you install through the official app store.

[1] https://iopscience.iop.org/article/10.1088/1361-6552/aac05e

[−] samch 33d ago
One of my kids has science project due each quarter in school, and this is our go-to app. We’ve measured acceleration in an elevator, sound attenuation of an audio source in a small vacuum chamber, and the Doppler effect. The app makes it easy to capture and export the data points to make graphs. I highly recommend this even just to play around with.
[−] sudb 33d ago
I think there's loads of scope to use phone cameras as dataloggers too, especially for older equipment that doesn't have an easy way to connect/export the data.

(I've been meaning for ages to write a piece of software that's able to extract change over time data from a video of a 7 segment display, like on a balance or a digital thermometer or something)

[−] DaSHacka 33d ago
I've been using Trail Sense [0] for sensor-related information after learning about it from a friend.

The interface is more polished, but the information is less technical than Phyphox (as the app is geared towards being a survival toolkit).

[0] https://github.com/kylecorry31/Trail-Sense

[−] q3k 33d ago
Good toolkit to have around. Recently used it to verify the true RPM of a system (using the accelerometer spectrum tool) against its control loop implementation.
[−] black6 33d ago
If you prefer not to deal with an app store: https://www.apkmirror.com/apk/rwth-aachen-university/phyphox...
[−] OuterVale 33d ago
I've had great fun using Phyphox to visualise my hand getting closer/farther from my phone based on the presence of my magnet implant. So many cool little things the app can visualise and measure, especially when used it creative ways.
[−] xnx 33d ago
Seems like a more advanced version of Arduino Science Journal https://www.arduino.cc/education/science-journal/
[−] trebligdivad 33d ago
Damn that's very impressive - for a long time Android had a lot of hopeless accelrometer, audio scope, etc apps, and it's always been hard to add your own stuff to it. Sounds very very neat!
[−] gozjsbtm 33d ago
Coincidentally, I downloaded the app yesterday. In 10 min, in my mitchen, I found g ~ 9.7 m/^2 using a cheap kitchen spring scale and the accelerometer (without g) sensor. Quality app.
[−] perlgeek 33d ago
I used it just the other day.

My parents have a sound bowl, and I wanted to know the resonance frequency. Took an audio spectrum, zoomed in on the first peak, read the frequency (iirc it was around 208 Hz).

[−] tomaskafka 33d ago
It’s the GOAT - I showed the app to a bunch of secondary school physics teachers and they were thrilled.
[−] _Microft 33d ago
The title was slightly editorialized for clarity.
[−] Kevin_VAI 33d ago
[dead]
[−] takahitoyoneda 33d ago
[dead]
[−] henryAlbigale 33d ago
Cool app dude