SlideShare uma empresa Scribd logo
1 de 45
Baixar para ler offline
Sensor fusion between car and
smartphone
Gabor Paller
gaborpaller@gmail.com
Sfonge Ltd.
http://www.sfonge.com
Thanks for the memory
Car offers
●

Power (no need to worry about battery drain)

●

Fixed position (if in car kit)

●

Sensors

●

More sensors → more exciting applications!

●

Sensor fusion: the use of multiple sensors so
that they compensate each other's weaknesses
Relevant phone sensors
●

●

●

●

GPS – if the phone is placed in the car so that it
“sees” the satellites
Accelerometer – shaking, vibration, violent
movements like aggressive braking or turns
Gyroscope – turn detection, support sensor for
the accelerometer
Compass (magnetometer) – direction (not
sensitive to drift), magnetic signature
Relevant car sensors
●

●
●

●

Speed – driving style, distance (if integrated by
time)
RPM – driving style
Built-in GPS – not subject to incorrect
placement within the car
Large number of car diagnostic indicators –
remote diagnostic → not the subject of this
presentation
Obtaining car sensor data
●
●

●

●

OBDII (like OBD-2, On-board diagnostic)
Widely deployed (mandatory in the EU since
2001/2004)
Developed for diagnostic, not for obtaining
traffic data
Nevertheless, used for a variety of applications
like fleet management
(MirrorLink)
●

●

Emerging standard for car infotainment
system-phone connection
Developed by Car Connectivity Consortium
(CCC), http://www.mirrorlink.com/

●

Supported by some recent phones and cars

●

Even the specification costs 150 USD

●

Not used in the experiments in this presentation
ELM327
●

●
●

●

●

ELM327 is a popular microcontroller for OBD2 access. Developed by
ELM Electronics cloned by many
On the car side, it talks OBD2 to the car's on-board computer
On the terminal side, it offers a friendly serial interface with AT
commands reminiscent of the Hayes modem command set
Actual devices often offer USB or Bluetooth interface (anything goes
that has serial line support)
Bluetooth is ideal for Android device connectivity
●

●

Basic Bluetooth example programs like BluetoothChat can be used to
communicate with the device almost without changes

Example program:
http://mylifewithandroid.blogspot.com/2013/03/data-capture-application-for-car-speed.html
ELM327 sequence
●

ATD OK

●

Set all to defaults

●

ATZ ELM327 v1.4

●

Reset all

●

ATE0 OK

●

Switch off echo

●

ATM0 OK

●

Don't store discovered protocols

●

ATL0 OK

●

Don't send LF after CR

●

ATH0 OK

●

Don't show OBD headers

●

ATS0 OK

●

Don't insert spaces into hex digits

●

ATSP0 OK

●

Discover OBD protocol automatically

●

Query current data 0x00 (register support)

●

Query current data 0x0D (speed, 0 km/h)

●

●

0100 SEARCHING..
4100BE3EB811
010D 410D00
Cutting edge technology!
OBDII dongle
Precise fixing is crucial
First use case
●

●

Dead
reckoning-type
navigation when
GPS is not
available
E.g. in tunnels,
parking houses,
dense urban
settings (urban
valleys) ...
Sensors used
●

●

●

Base coordinate p0 comes from the GPS or
from earlier measurement
Absolute value of velocity vector (v) comes
from the speed sensor of the car
Direction of velocity vector
●

Gyroscope

●

Compass
Gyroscope recap
●
●

Measures rotation around 3 axes
More exactly: measures rotation speed (angular
velocity) around the axes

Δφ
v x=
Δt
Δ φ =v x Δ t
φ ' =φ + Δ φ
The problem of devices
●

Newer phones are not always better
●

●

Particularly not their sensors

It happens that a new sensor type – like
gyroscope – is introduced in good quality
●

Then the cost-cutting starts in later, “more
advanced” device types
Nexus S gyro

Car making 90 degree turns, device horizontal.
Red: angular velocity, blue: aggregated rotation degree
Galaxy Nexus gyro

Car making 90 degree turns, device horizontal.
Red: angular velocity, blue: aggregated rotation degree
Origin of the spikes: unknown
Only Nexus S measurements will be used in this
presentation
The problem of drift
Compass
●

●

Measures the device orientation wrt.
the magnetic vector of the Earth
This vector points toward the
magnetic center of the Earth
●

●

It has a component that points to the
magnetic North pole – that's what we
use for orientation
Beware of the z component! (also
called magnetic inclination). If the
device is not held horizontally, the
downward vector element influences
the measurement
Car's magnetic field
Turning around, out of car

Phone is inside the car, ignition on, car makes full circle
Find the offset
●

●

●

Identify 3 points on
the circle (use the
gyroscope to figure
out whether there
was enough
rotation)
Calculate the center
of the circle
Subtract the offset
Move the circle to the center
Circle moved to the zero point of the coordinate system
(on the x-y plane)

Initial circle
Compass vs. gyro
Compass

Gyro

Compass is harder to calibrate and less exact but it has no drift
Tunnels
Tunnels
Effect of external magnetic fields
Not called Chain Bridge by chance ...
Parking houses
Parking houses
Urban valleys
Urban valleys
No GPS reading
in the circle
Results
●

●

●

Dead reckoning using speed (from car) and
direction (from smartphone) provides reasonable
results when GPS is not available
Compass and gyroscope need to support each
other to obtain sufficiently precise direction
vector
Compass is an extremely problematic sensor in
car/urban environment that needs constant
recalibration
Second use case: vibrations
●

●

Goal: use the phone's accelerometer for something
useful (car does not have any similar sensor)
Separating motion acceleration: already discussed
here:
http://mylifewithandroid.blogspot.com/2012/05/better-motion-control-using.html

(can be used to classify driving habits)
●

Vibration:
●

Damaged road

●

Vehicle faults (not discussed here)
bumpy_road
Raw vibration

Bumpy road
section
After high-pass filter

Effects of slow acceleration changes (turns) are removed
Power

Bumpy road
section
Luckily we have exact position ...
Speed bumps
Drivers slow down ...
Speed drops &
vibration spike
at the same time:
speed bump

Red: speed, blue: acceleration absolute value
Or they don't ...
Not possible to detect

Red: speed, blue: acceleration absolute value power
Results
●

●

●

Localized road damages cannot always be
recognized
Damages that span longer distances may be
detected more reliably
In any case, with a large number of
measurements, road damages can be mapped
efficiently
Idea of a platform
●

Available for Android applications

●

Discovers car connectivity options and sensors

●

●

●

Notifies applications about the connectivity
status and available sensors
Allows single or repeated sampling of sensor
data
Controlling car's systems?
Questions?

Mais conteúdo relacionado

Mais procurados

Android sensors
Android sensorsAndroid sensors
Android sensorsdatta_jini
 
Mems gyroscope working, principle of operation of disc resonator gyroscope
Mems gyroscope working, principle of operation of disc resonator gyroscopeMems gyroscope working, principle of operation of disc resonator gyroscope
Mems gyroscope working, principle of operation of disc resonator gyroscopeAnkush Wawoo
 
Mechanical design of mems gyroscopes
Mechanical design of mems gyroscopesMechanical design of mems gyroscopes
Mechanical design of mems gyroscopesAhmed El-Sayed
 
Inertial navigaton systems11
Inertial navigaton systems11Inertial navigaton systems11
Inertial navigaton systems11Vikas Kumar Sinha
 
Inertial Navigation System
Inertial Navigation SystemInertial Navigation System
Inertial Navigation Systemaerobuddy
 
Lecture 12 localization and navigation
Lecture 12 localization and navigationLecture 12 localization and navigation
Lecture 12 localization and navigationVajira Thambawita
 
Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November)
Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November) Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November)
Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November) Lviv Startup Club
 
MSc thesis presentation
MSc thesis presentationMSc thesis presentation
MSc thesis presentationMarco Bosco
 
Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...
Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...
Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...Premier Publishers
 
Lesson 10 Gyro And Magnetic Compass
Lesson 10   Gyro And Magnetic CompassLesson 10   Gyro And Magnetic Compass
Lesson 10 Gyro And Magnetic CompassGuilherme Azevedo
 

Mais procurados (20)

Lecture 04
Lecture 04Lecture 04
Lecture 04
 
Gyroscopes
Gyroscopes Gyroscopes
Gyroscopes
 
Android sensors
Android sensorsAndroid sensors
Android sensors
 
Mems gyroscope working, principle of operation of disc resonator gyroscope
Mems gyroscope working, principle of operation of disc resonator gyroscopeMems gyroscope working, principle of operation of disc resonator gyroscope
Mems gyroscope working, principle of operation of disc resonator gyroscope
 
Mechanical design of mems gyroscopes
Mechanical design of mems gyroscopesMechanical design of mems gyroscopes
Mechanical design of mems gyroscopes
 
Inertial navigaton systems11
Inertial navigaton systems11Inertial navigaton systems11
Inertial navigaton systems11
 
Inertial Navigation System
Inertial Navigation SystemInertial Navigation System
Inertial Navigation System
 
Accelerometer 1
Accelerometer 1Accelerometer 1
Accelerometer 1
 
Lecture 12 localization and navigation
Lecture 12 localization and navigationLecture 12 localization and navigation
Lecture 12 localization and navigation
 
V5I2-IJERTV5IS020384
V5I2-IJERTV5IS020384V5I2-IJERTV5IS020384
V5I2-IJERTV5IS020384
 
TWIP Control
TWIP ControlTWIP Control
TWIP Control
 
F05124244
F05124244F05124244
F05124244
 
Lecture2
Lecture2Lecture2
Lecture2
 
Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November)
Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November) Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November)
Oleg Novosad - "Ar kit vs arcore" - Lviv GameDev Mixer (November)
 
MSc thesis presentation
MSc thesis presentationMSc thesis presentation
MSc thesis presentation
 
Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...
Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...
Stairs Detection Algorithm for Tri-Star Wheeled Robot and Experimental Valida...
 
Gyro
GyroGyro
Gyro
 
Lesson 10 Gyro And Magnetic Compass
Lesson 10   Gyro And Magnetic CompassLesson 10   Gyro And Magnetic Compass
Lesson 10 Gyro And Magnetic Compass
 
Sensor's inside
Sensor's insideSensor's inside
Sensor's inside
 
Gyroscope
GyroscopeGyroscope
Gyroscope
 

Destaque

Connect your Android to the real world with Bluetooth Low Energy
Connect your Android to the real world with Bluetooth Low EnergyConnect your Android to the real world with Bluetooth Low Energy
Connect your Android to the real world with Bluetooth Low EnergyGabor Paller
 
Multisensor Data Fusion : Techno Briefing
Multisensor Data Fusion : Techno BriefingMultisensor Data Fusion : Techno Briefing
Multisensor Data Fusion : Techno BriefingPaveen Juntama
 
7 ry p_2015
7 ry p_20157 ry p_2015
7 ry p_2015pidru4
 
Learn Working of Accelerometer using Micro Python
Learn Working of Accelerometer using Micro PythonLearn Working of Accelerometer using Micro Python
Learn Working of Accelerometer using Micro PythonRengaraj D
 
FlightGear——自由開源的飛航模擬平台
FlightGear——自由開源的飛航模擬平台FlightGear——自由開源的飛航模擬平台
FlightGear——自由開源的飛航模擬平台BSEC
 
The generalized SLAM framework
The generalized SLAM framework The generalized SLAM framework
The generalized SLAM framework SchmidtAdam
 
Search Engine Query Suggestion Application
Search Engine Query Suggestion ApplicationSearch Engine Query Suggestion Application
Search Engine Query Suggestion ApplicationAndrea Gigli
 
Multisensor data fusion for defense application
Multisensor data fusion for defense applicationMultisensor data fusion for defense application
Multisensor data fusion for defense applicationSayed Abulhasan Quadri
 
Multisensor data fusion in object tracking applications
Multisensor data fusion in object tracking applicationsMultisensor data fusion in object tracking applications
Multisensor data fusion in object tracking applicationsSayed Abulhasan Quadri
 
Advances in Gyroscope Technologies
Advances in Gyroscope TechnologiesAdvances in Gyroscope Technologies
Advances in Gyroscope TechnologiesPruthviraj A
 
The Application of Gyro in Vehicle Angle Measurement
The Application of Gyro in Vehicle Angle MeasurementThe Application of Gyro in Vehicle Angle Measurement
The Application of Gyro in Vehicle Angle MeasurementIJRES Journal
 

Destaque (16)

Connect your Android to the real world with Bluetooth Low Energy
Connect your Android to the real world with Bluetooth Low EnergyConnect your Android to the real world with Bluetooth Low Energy
Connect your Android to the real world with Bluetooth Low Energy
 
Data fusion with kalman filtering
Data fusion with kalman filteringData fusion with kalman filtering
Data fusion with kalman filtering
 
Multisensor Data Fusion : Techno Briefing
Multisensor Data Fusion : Techno BriefingMultisensor Data Fusion : Techno Briefing
Multisensor Data Fusion : Techno Briefing
 
Data fusion with kalman filtering
Data fusion with kalman filteringData fusion with kalman filtering
Data fusion with kalman filtering
 
Uses of accelerometer sensor and its application in m-Learning environments: ...
Uses of accelerometer sensor and its application in m-Learning environments: ...Uses of accelerometer sensor and its application in m-Learning environments: ...
Uses of accelerometer sensor and its application in m-Learning environments: ...
 
7 ry p_2015
7 ry p_20157 ry p_2015
7 ry p_2015
 
Learn Working of Accelerometer using Micro Python
Learn Working of Accelerometer using Micro PythonLearn Working of Accelerometer using Micro Python
Learn Working of Accelerometer using Micro Python
 
FlightGear——自由開源的飛航模擬平台
FlightGear——自由開源的飛航模擬平台FlightGear——自由開源的飛航模擬平台
FlightGear——自由開源的飛航模擬平台
 
Fusion_Class
Fusion_ClassFusion_Class
Fusion_Class
 
The generalized SLAM framework
The generalized SLAM framework The generalized SLAM framework
The generalized SLAM framework
 
Search Engine Query Suggestion Application
Search Engine Query Suggestion ApplicationSearch Engine Query Suggestion Application
Search Engine Query Suggestion Application
 
Multisensor data fusion for defense application
Multisensor data fusion for defense applicationMultisensor data fusion for defense application
Multisensor data fusion for defense application
 
Multisensor data fusion in object tracking applications
Multisensor data fusion in object tracking applicationsMultisensor data fusion in object tracking applications
Multisensor data fusion in object tracking applications
 
Advances in Gyroscope Technologies
Advances in Gyroscope TechnologiesAdvances in Gyroscope Technologies
Advances in Gyroscope Technologies
 
The Application of Gyro in Vehicle Angle Measurement
The Application of Gyro in Vehicle Angle MeasurementThe Application of Gyro in Vehicle Angle Measurement
The Application of Gyro in Vehicle Angle Measurement
 
Canini09a
Canini09aCanini09a
Canini09a
 

Semelhante a Sensor fusion between car and smartphone

Технологии беспилотных автомобилей
Технологии беспилотных автомобилейТехнологии беспилотных автомобилей
Технологии беспилотных автомобилейVitebsk DSC
 
autonomousvehicles-161545445212101224.ppt
autonomousvehicles-161545445212101224.pptautonomousvehicles-161545445212101224.ppt
autonomousvehicles-161545445212101224.pptAshishJhuria
 
Autonomousvehicles 161212101224
Autonomousvehicles 161212101224Autonomousvehicles 161212101224
Autonomousvehicles 161212101224Cisco Systems
 
Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles Jeffrey Funk
 
Xpeng Motors' P7's self-driving roadmap and system design
Xpeng Motors' P7's self-driving roadmap and system design Xpeng Motors' P7's self-driving roadmap and system design
Xpeng Motors' P7's self-driving roadmap and system design Junli Gu
 
Autonomous RC car using gps
Autonomous RC car using gpsAutonomous RC car using gps
Autonomous RC car using gpsma_np
 
autonomousvehicles-161212101224-converted.pptx
autonomousvehicles-161212101224-converted.pptxautonomousvehicles-161212101224-converted.pptx
autonomousvehicles-161212101224-converted.pptxhuzefa ansari
 
DE - Smart Parking System.pptx
DE - Smart Parking System.pptxDE - Smart Parking System.pptx
DE - Smart Parking System.pptxBhavikSanghar
 
AUTO PILOT TECHNOLOGY IN VEHICLES
AUTO PILOT TECHNOLOGY IN VEHICLESAUTO PILOT TECHNOLOGY IN VEHICLES
AUTO PILOT TECHNOLOGY IN VEHICLESnithishreddy1999
 
Momo Popo.pptx
Momo Popo.pptxMomo Popo.pptx
Momo Popo.pptxNomearod1
 
Driverless car.pptx
Driverless car.pptxDriverless car.pptx
Driverless car.pptxNomearod1
 
Autonomous car(driver less car) (self driving car)
Autonomous car(driver less car) (self driving car)Autonomous car(driver less car) (self driving car)
Autonomous car(driver less car) (self driving car)basawanna
 

Semelhante a Sensor fusion between car and smartphone (20)

Autonomous car
Autonomous carAutonomous car
Autonomous car
 
Технологии беспилотных автомобилей
Технологии беспилотных автомобилейТехнологии беспилотных автомобилей
Технологии беспилотных автомобилей
 
Google CAR
Google CARGoogle CAR
Google CAR
 
Sazz
SazzSazz
Sazz
 
GOOGLE DRIVERLESS CAR
GOOGLE DRIVERLESS CAR GOOGLE DRIVERLESS CAR
GOOGLE DRIVERLESS CAR
 
autonomousvehicles-161545445212101224.ppt
autonomousvehicles-161545445212101224.pptautonomousvehicles-161545445212101224.ppt
autonomousvehicles-161545445212101224.ppt
 
Autonomousvehicles 161212101224
Autonomousvehicles 161212101224Autonomousvehicles 161212101224
Autonomousvehicles 161212101224
 
Autonomous Vehicles
Autonomous VehiclesAutonomous Vehicles
Autonomous Vehicles
 
Autonomous car
Autonomous carAutonomous car
Autonomous car
 
Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles Smart infrastructure for autonomous vehicles
Smart infrastructure for autonomous vehicles
 
Xpeng Motors' P7's self-driving roadmap and system design
Xpeng Motors' P7's self-driving roadmap and system design Xpeng Motors' P7's self-driving roadmap and system design
Xpeng Motors' P7's self-driving roadmap and system design
 
Autonomous RC car using gps
Autonomous RC car using gpsAutonomous RC car using gps
Autonomous RC car using gps
 
autonomousvehicles-161212101224-converted.pptx
autonomousvehicles-161212101224-converted.pptxautonomousvehicles-161212101224-converted.pptx
autonomousvehicles-161212101224-converted.pptx
 
DE - Smart Parking System.pptx
DE - Smart Parking System.pptxDE - Smart Parking System.pptx
DE - Smart Parking System.pptx
 
AUTO PILOT TECHNOLOGY IN VEHICLES
AUTO PILOT TECHNOLOGY IN VEHICLESAUTO PILOT TECHNOLOGY IN VEHICLES
AUTO PILOT TECHNOLOGY IN VEHICLES
 
Momo Popo.pptx
Momo Popo.pptxMomo Popo.pptx
Momo Popo.pptx
 
Driverless car.pptx
Driverless car.pptxDriverless car.pptx
Driverless car.pptx
 
Autonomous car(driver less car) (self driving car)
Autonomous car(driver less car) (self driving car)Autonomous car(driver less car) (self driving car)
Autonomous car(driver less car) (self driving car)
 
car parking
car parkingcar parking
car parking
 
Presentasi smart transfort
Presentasi smart transfortPresentasi smart transfort
Presentasi smart transfort
 

Mais de Gabor Paller

Towards a floating plastic waste early warning system
Towards a floating plastic waste early warning systemTowards a floating plastic waste early warning system
Towards a floating plastic waste early warning systemGabor Paller
 
Dataflow-based heterogeneous code generator for IoT applications
Dataflow-based heterogeneous code generator for IoT applicationsDataflow-based heterogeneous code generator for IoT applications
Dataflow-based heterogeneous code generator for IoT applicationsGabor Paller
 
Sigfox szenzorfejlesztéssel kapcsolatos tapasztalatok
Sigfox szenzorfejlesztéssel kapcsolatos tapasztalatokSigfox szenzorfejlesztéssel kapcsolatos tapasztalatok
Sigfox szenzorfejlesztéssel kapcsolatos tapasztalatokGabor Paller
 
Energy-efficient operation of GSM-connected infrared rodent sensors
Energy-efficient operation of GSM-connected infrared rodent sensorsEnergy-efficient operation of GSM-connected infrared rodent sensors
Energy-efficient operation of GSM-connected infrared rodent sensorsGabor Paller
 
AgroDat poster at Sensornets 2015 conference
AgroDat poster at Sensornets 2015 conferenceAgroDat poster at Sensornets 2015 conference
AgroDat poster at Sensornets 2015 conferenceGabor Paller
 
LiveFolders as feeds
LiveFolders as feedsLiveFolders as feeds
LiveFolders as feedsGabor Paller
 
Understanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolUnderstanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolGabor Paller
 
The dedexer disassembler
The dedexer disassemblerThe dedexer disassembler
The dedexer disassemblerGabor Paller
 

Mais de Gabor Paller (8)

Towards a floating plastic waste early warning system
Towards a floating plastic waste early warning systemTowards a floating plastic waste early warning system
Towards a floating plastic waste early warning system
 
Dataflow-based heterogeneous code generator for IoT applications
Dataflow-based heterogeneous code generator for IoT applicationsDataflow-based heterogeneous code generator for IoT applications
Dataflow-based heterogeneous code generator for IoT applications
 
Sigfox szenzorfejlesztéssel kapcsolatos tapasztalatok
Sigfox szenzorfejlesztéssel kapcsolatos tapasztalatokSigfox szenzorfejlesztéssel kapcsolatos tapasztalatok
Sigfox szenzorfejlesztéssel kapcsolatos tapasztalatok
 
Energy-efficient operation of GSM-connected infrared rodent sensors
Energy-efficient operation of GSM-connected infrared rodent sensorsEnergy-efficient operation of GSM-connected infrared rodent sensors
Energy-efficient operation of GSM-connected infrared rodent sensors
 
AgroDat poster at Sensornets 2015 conference
AgroDat poster at Sensornets 2015 conferenceAgroDat poster at Sensornets 2015 conference
AgroDat poster at Sensornets 2015 conference
 
LiveFolders as feeds
LiveFolders as feedsLiveFolders as feeds
LiveFolders as feeds
 
Understanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer toolUnderstanding the Dalvik bytecode with the Dedexer tool
Understanding the Dalvik bytecode with the Dedexer tool
 
The dedexer disassembler
The dedexer disassemblerThe dedexer disassembler
The dedexer disassembler
 

Último

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 

Último (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 

Sensor fusion between car and smartphone

  • 1. Sensor fusion between car and smartphone Gabor Paller gaborpaller@gmail.com Sfonge Ltd. http://www.sfonge.com
  • 2. Thanks for the memory
  • 3. Car offers ● Power (no need to worry about battery drain) ● Fixed position (if in car kit) ● Sensors ● More sensors → more exciting applications! ● Sensor fusion: the use of multiple sensors so that they compensate each other's weaknesses
  • 4. Relevant phone sensors ● ● ● ● GPS – if the phone is placed in the car so that it “sees” the satellites Accelerometer – shaking, vibration, violent movements like aggressive braking or turns Gyroscope – turn detection, support sensor for the accelerometer Compass (magnetometer) – direction (not sensitive to drift), magnetic signature
  • 5. Relevant car sensors ● ● ● ● Speed – driving style, distance (if integrated by time) RPM – driving style Built-in GPS – not subject to incorrect placement within the car Large number of car diagnostic indicators – remote diagnostic → not the subject of this presentation
  • 6. Obtaining car sensor data ● ● ● ● OBDII (like OBD-2, On-board diagnostic) Widely deployed (mandatory in the EU since 2001/2004) Developed for diagnostic, not for obtaining traffic data Nevertheless, used for a variety of applications like fleet management
  • 7. (MirrorLink) ● ● Emerging standard for car infotainment system-phone connection Developed by Car Connectivity Consortium (CCC), http://www.mirrorlink.com/ ● Supported by some recent phones and cars ● Even the specification costs 150 USD ● Not used in the experiments in this presentation
  • 8. ELM327 ● ● ● ● ● ELM327 is a popular microcontroller for OBD2 access. Developed by ELM Electronics cloned by many On the car side, it talks OBD2 to the car's on-board computer On the terminal side, it offers a friendly serial interface with AT commands reminiscent of the Hayes modem command set Actual devices often offer USB or Bluetooth interface (anything goes that has serial line support) Bluetooth is ideal for Android device connectivity ● ● Basic Bluetooth example programs like BluetoothChat can be used to communicate with the device almost without changes Example program: http://mylifewithandroid.blogspot.com/2013/03/data-capture-application-for-car-speed.html
  • 9. ELM327 sequence ● ATD OK ● Set all to defaults ● ATZ ELM327 v1.4 ● Reset all ● ATE0 OK ● Switch off echo ● ATM0 OK ● Don't store discovered protocols ● ATL0 OK ● Don't send LF after CR ● ATH0 OK ● Don't show OBD headers ● ATS0 OK ● Don't insert spaces into hex digits ● ATSP0 OK ● Discover OBD protocol automatically ● Query current data 0x00 (register support) ● Query current data 0x0D (speed, 0 km/h) ● ● 0100 SEARCHING.. 4100BE3EB811 010D 410D00
  • 12. Precise fixing is crucial
  • 13. First use case ● ● Dead reckoning-type navigation when GPS is not available E.g. in tunnels, parking houses, dense urban settings (urban valleys) ...
  • 14. Sensors used ● ● ● Base coordinate p0 comes from the GPS or from earlier measurement Absolute value of velocity vector (v) comes from the speed sensor of the car Direction of velocity vector ● Gyroscope ● Compass
  • 15. Gyroscope recap ● ● Measures rotation around 3 axes More exactly: measures rotation speed (angular velocity) around the axes Δφ v x= Δt Δ φ =v x Δ t φ ' =φ + Δ φ
  • 16. The problem of devices ● Newer phones are not always better ● ● Particularly not their sensors It happens that a new sensor type – like gyroscope – is introduced in good quality ● Then the cost-cutting starts in later, “more advanced” device types
  • 17. Nexus S gyro Car making 90 degree turns, device horizontal. Red: angular velocity, blue: aggregated rotation degree
  • 18. Galaxy Nexus gyro Car making 90 degree turns, device horizontal. Red: angular velocity, blue: aggregated rotation degree Origin of the spikes: unknown
  • 19. Only Nexus S measurements will be used in this presentation
  • 20. The problem of drift
  • 21. Compass ● ● Measures the device orientation wrt. the magnetic vector of the Earth This vector points toward the magnetic center of the Earth ● ● It has a component that points to the magnetic North pole – that's what we use for orientation Beware of the z component! (also called magnetic inclination). If the device is not held horizontally, the downward vector element influences the measurement
  • 22. Car's magnetic field Turning around, out of car Phone is inside the car, ignition on, car makes full circle
  • 23. Find the offset ● ● ● Identify 3 points on the circle (use the gyroscope to figure out whether there was enough rotation) Calculate the center of the circle Subtract the offset
  • 24. Move the circle to the center Circle moved to the zero point of the coordinate system (on the x-y plane) Initial circle
  • 25. Compass vs. gyro Compass Gyro Compass is harder to calibrate and less exact but it has no drift
  • 28. Effect of external magnetic fields Not called Chain Bridge by chance ...
  • 32. Urban valleys No GPS reading in the circle
  • 33. Results ● ● ● Dead reckoning using speed (from car) and direction (from smartphone) provides reasonable results when GPS is not available Compass and gyroscope need to support each other to obtain sufficiently precise direction vector Compass is an extremely problematic sensor in car/urban environment that needs constant recalibration
  • 34. Second use case: vibrations ● ● Goal: use the phone's accelerometer for something useful (car does not have any similar sensor) Separating motion acceleration: already discussed here: http://mylifewithandroid.blogspot.com/2012/05/better-motion-control-using.html (can be used to classify driving habits) ● Vibration: ● Damaged road ● Vehicle faults (not discussed here)
  • 37. After high-pass filter Effects of slow acceleration changes (turns) are removed
  • 39. Luckily we have exact position ...
  • 41. Drivers slow down ... Speed drops & vibration spike at the same time: speed bump Red: speed, blue: acceleration absolute value
  • 42. Or they don't ... Not possible to detect Red: speed, blue: acceleration absolute value power
  • 43. Results ● ● ● Localized road damages cannot always be recognized Damages that span longer distances may be detected more reliably In any case, with a large number of measurements, road damages can be mapped efficiently
  • 44. Idea of a platform ● Available for Android applications ● Discovers car connectivity options and sensors ● ● ● Notifies applications about the connectivity status and available sensors Allows single or repeated sampling of sensor data Controlling car's systems?