A self-balancing toothbrush for people suffering from Parkinson's disease
- Install the Arduino IDE
- Download the I2Cdev library
- Extract the folders
i2cdevlib-master\Arduino\MPU6050
andi2cdevlib-master\Arduino\I2Cdev
to a temp location - Move the 2 folders to the Arduino libraries location - probably
C:\Program Files (x86)\Arduino\libraries
- If this is done correctly, there should be an entry named "MPU6050" under File -> Examples
- Download and extract the Processing software
- Download the ToxicLibs complete zip
- Extract the zip contents to the libraries folder in the processing sketchbook - for me this was found at
C:\Users\USERNAME\Documents\Processing\libraries
- Comment out the line
#define OUTPUT_READABLE_YAWPITCHROLL
(should be line 100) - Uncomment the line
//#define OUTPUT_TEAPOT
(should be line 117) - Upload the code to the microcontroller
- Open the processing app
- Go to File -> Open ->
C:\Program Files (x86)\Arduino\libraries\MPU6050\Examples\MPU6050_DMP6\Processing\MPUTeapot\MPUTeapot.ino
Setup instructions followed from both DIYHacking and Instructables