Arduino .ino files and .phyphox files (basically XML) I created during my 2021 summer Physics internship
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.
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.
For the trig graphs on the same view...
For the 3d accelerometer data plot...
For one of the imu-statistics (magnetometer)...
Oscillator Experiment without Resonance Curve (Vibration generator turned off)...
Resonance Attempt 2...
Resonance Attempt 3...
Resonance Attempt 4... Note: Unlike the other attempts, this one requires changing the driving frequency to produce a resonance graph
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...
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...