Assignment 1 (Due 4/13/2022)
The purpose of this assignment is to get comfortable with the smartphone development environment by modifying the sample Android and iOS code made for this class.
-
Download the sample code for this class from Github:
IMU [Android, iOS]
Mic/speaker [Android, iOS]
-
The IMU code is currently set to read and log the accelerometer data. Modify the code to log and graph the magnetometer readings.
Deliverable:
- Upload a video showing how the magnetometer readings on the phone change when you rotate it on a flat surface. The readings change depending on how the phone is oriented with respect to the Earth's magnetic field. Show how the readings change when you bring a permanent magnet close to the phone. The video can be a screen recording or it can be recording using another smartphone or the webcam on your laptop.
- Upload a screenshot showing the magnetometer readings logged as text to the screen of your IDE.
-
Run the sample microphone and speaker code. While the tone is playing, take a sample measurement in a silent room with no noise. While the tone is playing, take another measurement while tapping on the table or making other forms of noise. Download the two recordings from the phone to your computer.
Deliverable: Plot the FFT spectrum from both recordings using your favorite plotting software, upload this plot. You can use MATLAB which is free for UW students. Other options like Python work well too.
All deliverables can be uploaded as a single zip file to Canvas.