Raspberry Pi Zero Helmet Impact Force Monitor
Test the System!
Open the terminal window, navigate to the folder where you saved the program code using the
Run the program using root privileges:
sudo python NameOfFile.py
Check that the acceleration values in the x, y, and z-direction are printing to the terminal window, are reasonable, and turn on the LED light if the g-force is above our thresholds.
To test, rotate the accelerometer so that the each axes point towards the earth and check that the measured values are either 1 or -1 (corresponds to acceleration due to gravity).
Shake the accelerometer to make sure the readings increase (sign indicates direction of axis, we're most interested in the magnitude of the reading).