Programming Your Mobile Devices Using MATLAB
Teo, Wei Yang
Date of Issue2016
School of Electrical and Electronic Engineering
Modern day mobile devices are embedded with various types of sensors such as the accelerometer, magnetometer, GPS location sensor, orientation and camera sensor. By utilizing the Matlab Android/iOS Sensor Support Package, motion, location and visual data from Android/iOS mobile devices can be collected wirelessly. This project aims to collect these sensor data from mobile devices and transmit them wirelessly in real-time to Matlab for processing and analysis. This project also includes the utilization of these collected sensor data to develop wireless real-time applications in Matlab which includes a Pedometer, a GPS Velocity Heat-Map Tracking System and a Colour Detection application using the camera sensor. The first application developed in this project is a pedometer. The developed pedometer in Matlab processes and analyzes the real-time wireless accelerometer data collected from the device using several mathematical functions, to determine the amount of steps taken with the device. Number of steps taken is displayed and updated in real-time through Matlab as well. Second application developed in this project is a GPS Velocity Heat-Map Tracking System, where the location and velocity of the device, is mapped real-time onto an online web-map in Matlab. The route taken by the device installed in a vehicle will overlay onto the map as a velocity heat-map whereby its range of velocities are shown by a red-to-green colour spectrum, corresponding to low-to-high velocities. Motion data such as the device‟s acceleration, angular velocity, altitude and orientation data are also plotted in real-time wirelessly using Matlab. Lastly, utilizing the camera sensor found in most modern smartphones and tablets, a camera colour detection application was also developed using Matlab. By treating the camera on a mobile device as an IP camera, Matlab is able to extract the live video feed captured by the device wirelessly. Video feed is then displayed in Matlab in real-time as captured by the device. A looping script will analyze the live video feed by converting the video frames through various image processing tools and determine the RGB data in each single frame to detect the target colour.
Final Year Project (FYP)
Nanyang Technological University