Take Your Medicine is comprised of an Arduino Uno and an MPU-6050, which harbors an accelerometer, gyroscope, and temperature measuring unit inside. Arduino C and Processing were utilized to write the necessary lines of code. When the user lifts the pill bottle, the MPU-6050 is able to detect this movement through its accelerometer. I used the change in acceleration to create a trigger event, in which the Arduino would create a serial output and simultaneously communicate with a script in Processing, which detects this serial output. Once the serial output is detected in Processing, an audio clip is played on repeat until the device is put down, in which case the audio clipping is played until the last second. Google was heavily used for this process. Additionally, Arduino forums and a posting from the Fall 2013 Electronic Media Studio 2 class proved to be especially handy.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .