Skip to content

Arduino .ino files and .phyphox files (basically XML) I created during my 2021 summer Physics internship.

Notifications You must be signed in to change notification settings

M-Chan/phyphox-arduino-summer-2021

Repository files navigation

Visualising Remote Sensor Data on a Mobile Phone

Arduino .ino files and .phyphox files (basically XML) I created during my 2021 summer Physics internship

Acknowledgements

A lot of this code has been modified from the original phyphox app experiments using their open source .phyphox files These are available from this github: https://github.com/phyphox/phyphox-experiments For the .ino files, some of it was based on files from https://github.com/phyphox/phyphox-arduino

The .ino file for allowing Phyphox to access the IMU sensor data was modified from https://hebergement.universite-paris-saclay.fr/phyphox/nano_phyphox_v1.ino

Special thanks to my supervisor Dr Davies for providing me with this project and guiding me throughout. Many thanks to Dr Cubiss for providing suggestions for contructing a resonance curve manually.

Folders and Files

The 'simple-data-plots' folder is me testing how to write .ino files that allows data to be transfered from the Arduino Nano to the Phyphox app

The 'accelerometer-sensor' folder has .ino files and is me testing how to access the sensor on an Arduino Nano

The 'imu-statistics-phyphox-files' folder has .phyphox files for the accelerometer, gyroscope and magnetometer. Each file plots graphs of each axial component variable w.r.t. time and a histogram showing the count distribution with a fitted Gaussian curve. It also includes the .ino file to upload to the Arduino Nano allowing for the data transfer.

The 'forced-oscillator-experiment' has the.phyphox files for retrieving the data from this experiment. The ocillator-exp.phyphox file just has the acceleration w.r.t. time graph and the FFT graph; no resonance curve added. (Note you will need the .ino file in the above folder to access the accelerometer). I have tried to add a resonance curve and this folder includes some of the attempts I have made - still not a resonance curve in the end but the code might still be of use. Note: you can find the resonance frequency using the FFT graph and reading the peak frequency after setting the Arduino oscillating without the vibration generator. Note: the resonance attempts are not in order (last attempt is not necessarily the best). Note: if for resonance-attempt-3.phyphox the curve is levelling off, you just need to reset the data.

Screenshots

For the trig graphs on the same view... trig graphs (same view)

For the 3d accelerometer data plot... 3D accelerometer

For one of the imu-statistics (magnetometer)... magnetometer_view1

Oscillator Experiment without Resonance Curve (Vibration generator turned off)... osc_exp

Resonance Attempt 1... Res1-2

Resonance Attempt 2...

actual_res2

Resonance Attempt 3...

res3-1 Res3-2

Resonance Attempt 4... Note: Unlike the other attempts, this one requires changing the driving frequency to produce a resonance graph Res4

Manually Produced Resonance Curves

Using the oscillator-exp.phyphox file, I performed the forced driven oscillator experiment and changed the driving frequency. I then plotted the outputted Max FFT reading with respect to the peak frequency using Origin. The resulting graph is shown below... Res1

Using the oscillator-exp-stats.phyphox file, I did the exact same thing as before but plotted the average Max FFT reading with respect to the average peak frequency with x-error bars using Origin. The resulting graph is shown below... res-stats-2

About

Arduino .ino files and .phyphox files (basically XML) I created during my 2021 summer Physics internship.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages