12
Determination of road surface conditions using mobile handset based accelerometers Student: Conor Molloy Supervisor: Liam Kilmartin

Determination of road surface conditions using mobile handset based accelerometers

  • Upload
    duman

  • View
    25

  • Download
    2

Embed Size (px)

DESCRIPTION

Student: Conor Molloy Supervisor: Liam Kilmartin. Determination of road surface conditions using mobile handset based accelerometers. Presentation Overview. Android Project Overview. Accelerometer GPS MatLab. Android. Android was bought by Google in 2003 - PowerPoint PPT Presentation

Citation preview

Page 1: Determination of road surface conditions using mobile handset based accelerometers

Determination of road surface conditions using mobile handset based accelerometers

Student: Conor MolloySupervisor:Liam Kilmartin

Page 2: Determination of road surface conditions using mobile handset based accelerometers

Presentation Overview• Android

• Project Overview.

• Accelerometer

• GPS

• MatLab

Page 3: Determination of road surface conditions using mobile handset based accelerometers

Android• Android was bought by Google in 2003

• Android is used in 54% of smartphones.

• Its open source which allows anyone to develop applications for it.

• It uses the Java programming language.

Page 4: Determination of road surface conditions using mobile handset based accelerometers

Project Overview• Using Android add-on for Java, which allows developers

to write applications for Android smartphones.

• Access the smartphone’s sensors, specifically GPS and the Accelerometer. Using permissions.

• Write the data from the sensors to a file.

• Import the file to MatLab for analysis and visualization.

Page 5: Determination of road surface conditions using mobile handset based accelerometers

Accelerometer• Measures the forces experienced by the smartphone on 3 axis.

• Can be used to determine the orientation of the phone.

Page 6: Determination of road surface conditions using mobile handset based accelerometers

Accelerometer• The phone will most likely

not be perfectly vertical so the region between the Z and Y axis is where the vibrations will occur.

• Using Eular’s angles the orientation of the phone can be used to correct the data gathered so that the vibrations will be measured on the true vertical axis.

Page 7: Determination of road surface conditions using mobile handset based accelerometers

GPS• Use satellites to get the phones position on earth.

• Network of 24 satellites

• Phone requires connection to 4 of these to get its position.

Page 8: Determination of road surface conditions using mobile handset based accelerometers

Code used

Accelerometer Code GPS Code

Page 9: Determination of road surface conditions using mobile handset based accelerometers

Writing Data to File• Use Java’s built in function to write and create files.

• The file is created and then written to using this method.

• Writes the accelerometer and location data to a .csv file so it can be used in MatLab.

Page 10: Determination of road surface conditions using mobile handset based accelerometers

Matlab• Used for mathematical

analysis.

• Can import .txt files, but need to be .csv for matrix manipulation.

• Will be used to calculate the variance of the accelerometer data, which will be divided into frames.

Start

Import file

Divide data into frames

Calculate variance of each frame

All frames done

Plot variance

No

Yes

Page 11: Determination of road surface conditions using mobile handset based accelerometers

Future Work• Compensate for speed of vehicle. • System to compare with known road surface conditions• Implement server side infrastructure for recording data

from multiple devices. • Implement Android application as a service with an

unobtrusive mechanism for activation while driving• Investigation of variation of results across handsets and

vehicles and implementation in Matlab of methodology for aggregation of data (including rejection of outlier data) on server side

Page 12: Determination of road surface conditions using mobile handset based accelerometers

Questions?