SlideShare une entreprise Scribd logo
1  sur  19
Roll Angle Estimation
using Thermopile Sensors
ANDRE LUIZ ALCANTARA OSTRUFKA
MARCUS PEREIRA
PROFESSOR: DR. JONATHAN ROGERS
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
MOTIVATION AND GOALS
MOTIVATION
•Use low cost sensors and filtering techniques for attitude estimation in order to reduce the cost of
UAVs
•These low cost sensors can also be used to perform redundant measurements to increase robustness.
•These sensors can be easily replaced and purchased in bulk.
GOAL
•To estimate the roll angle state of a test platform using data from thermopile sensors and compare
the estimates with ”truth” data from an IMU (Inertial Measurement Unit)
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
TOPICS
•THERMOPILE / IMU
•ELECTRIC CIRCUIT
•SOFTWARE
•SYSTEM MODELING
•EXTENDED KALMAN-FILTER(EKF)
•IMPLEMENTING THE HYBRID EKF ALGORITHM
•DATA PROCESSING
•PLOTS AND RESULTS
•FUTURE DIRECTIONS
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
THERMOPILE / IMU
•Thermopile sensors are electric devices that convert
thermal energy into electric energy
•They are composed of several thermocouples connected
usually in series
•Thermopiles detect the temperature of an object by
absorbing the infrared (IR) radiation that emits from the
object’s surface
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
From left to right:
sensor mount, Heimann
HMS J11F5.5
thermopile sensor, and
signal conditioning
circuit board.
THERMOPILE / IMU
•The ground and the sky have different IR
emissivity as seen in the plot.
•The output voltage of a thermopile sensor can
be approximated by a sine function, when the
roll angle is varied from 0 to 360 degrees.
•Data from two thermopile sensors in opposite
directions can be used for Horizon Seeking.
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
THERMOPILE / IMU
•Thermopile sensor: Heimann HMS J11F5.5
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
•9 Degrees of Freedom - Razor IMU
•It has an ITG-3200 (MEMS triple-axis gyro),
ADXL345 (triple-axis accelerometer), and HMC5883
(Triple-axis magnetometer). However, we use just
the gyro data for roll angle measurement of the
platform.
ELECTRIC CIRCUIT
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
ELECTRIC CIRCUIT
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
SOFTWARE
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
•Timer A: Interrupts every 20ms (approximately equal to the IMU sampling time)
• GPIO: Pins P5.5 and P5.4 are configured to tertiary function (ADC module). P5.5 corresponds to
ADC module A0 and P5.4 corresponds to ADC module A1
•ADC is configured to operate in multi-sequence mode, so that the data from both sensors can be
acquired simultaneously.
•The memory location MEM0 was set to store the data from module A0 and MEM1 from module
A1.
•Output from Pin P2.4 to the gate of a BJT transistor is used to turn on the transmission of IMU
data onto the Serial Monitor of the Adruino IDE. The IMU firmware code was modified to ouput
roll angle data only at a frequency of 50 Hz (or 20 ms sampling time).
•Pin P1.4 (Button S2) is used to start the data acquisition process from Thermopile sensors and
the IMU at the same time.
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
SYSTEM MODELING
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
EXTERNDED KALMAN-FILTER (EKF)
•Kalman filtering is an algorithm that uses a series of measurements observed over time, and
produces estimates of unknown variables (in our case roll angle) that tend to be more precise
than those based on a single measurement alone.
•The Extended Kalman filter (EKF) is the nonlinear version of the Kalman filter which linearizes
about an estimate of the current mean and covariance of the unknown state variable.
•In our case we need to use the Extended Kalman Filter because the measurement model is a
non-linear function of the state variable (sinusoidal function the roll angle), although the
system’s dynamics model is linear.
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
IMPLEMENTING
THE HYBRID EKF
ALGORITHM
DATA PROCESSING
Steps:
1. Process calibration data:- To be obtained by rotating the test platform 360 degrees 3-4 times
before flight tests. This is required to determine the scale factor (amplitude of approximated sine
wave function) for the measurement model of the Hybrid EKF. (Plot shown in subsequent slides)
2. Implement Moving Average (MA) Filters:-
Thermopile data – 4th order MA filter
IMU data – 45th order MA filter
3. Implement the Hybrid EKF Algorithm to Estimate Roll Angle .
4. Compare with IMU roll angle data to determine Estimation Error and calculate the Average RMS
estimation error.
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
RESULTS / ANALYSIS
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
1. Calibration: Using fit() in MATLAB
General model Sin1:
f(x) = a1*sin(b1*x+c1)
Coefficients (with 95% confidence bounds):
a1 = 0.2974 (0.2948, 0.3)
b1 = 0.002717 (0.002711, 0.002723)
c1 = -0.6589 (-0.674, -0.6439)
EKF Estimated roll angle vs. “True” roll
angle from IMU
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
EKF Estimation error compared to IMU
data
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
Average RMS error = 5.7075 degrees
FUTURE DIRECTIONS
1. Replicate a similar system for pitch angle estimation and use Sequential Kalman Filtering.
2. Implement this attitude estimation system for feedback control of a quadcopter.
3. Implement the above controller in real time using a Raspberry Pi.
4. Use the quaternion version of Extended Kalman Filter as an alternative (MEKF –
Multiplicative Extended Kalman Filter).
5. Proper modelling for measurement equation (using compressed sine wave function to
remove estimation error near peaks).
6. Better calibration methods (estimation is very sensitive to scale factor from calibration).
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
QUESTIONS?
ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)

Contenu connexe

Tendances

Automatic headlight intensity control system
Automatic headlight intensity control systemAutomatic headlight intensity control system
Automatic headlight intensity control systemAmosElliot
 
Lecture 9 synchros - transmitters, differentials, governing equations
Lecture 9   synchros - transmitters, differentials, governing equationsLecture 9   synchros - transmitters, differentials, governing equations
Lecture 9 synchros - transmitters, differentials, governing equationsManipal Institute of Technology
 
Techéol Wind Vane Alignment
Techéol Wind Vane Alignment Techéol Wind Vane Alignment
Techéol Wind Vane Alignment Brendan Wills
 
Lecture 3 Construction, Classification & Theory of Servomotors
Lecture 3   Construction, Classification & Theory of ServomotorsLecture 3   Construction, Classification & Theory of Servomotors
Lecture 3 Construction, Classification & Theory of ServomotorsManipal Institute of Technology
 
Test station for_wind_turbines
Test station for_wind_turbinesTest station for_wind_turbines
Test station for_wind_turbinesRCREEE
 
3 axis accelorometer- ADXL345
3 axis accelorometer- ADXL3453 axis accelorometer- ADXL345
3 axis accelorometer- ADXL345Raghav Shetty
 
Lecture 19 mathematical modeling of pneumatic and hydraulic systems
Lecture 19   mathematical modeling of pneumatic and hydraulic systemsLecture 19   mathematical modeling of pneumatic and hydraulic systems
Lecture 19 mathematical modeling of pneumatic and hydraulic systemsManipal Institute of Technology
 

Tendances (20)

Automatic headlight intensity control system
Automatic headlight intensity control systemAutomatic headlight intensity control system
Automatic headlight intensity control system
 
Lecture 18 directional valves and symbols
Lecture 18   directional valves and symbolsLecture 18   directional valves and symbols
Lecture 18 directional valves and symbols
 
Lecture 1 Electrical Motos - a Revist
Lecture 1   Electrical Motos - a RevistLecture 1   Electrical Motos - a Revist
Lecture 1 Electrical Motos - a Revist
 
Lecture 9 synchros - transmitters, differentials, governing equations
Lecture 9   synchros - transmitters, differentials, governing equationsLecture 9   synchros - transmitters, differentials, governing equations
Lecture 9 synchros - transmitters, differentials, governing equations
 
Lecture 17 actuation systems
Lecture 17   actuation systemsLecture 17   actuation systems
Lecture 17 actuation systems
 
Lecture 26 control valves
Lecture 26   control valvesLecture 26   control valves
Lecture 26 control valves
 
Lecture 22 flapper nozzle & ip converter
Lecture 22   flapper nozzle & ip converterLecture 22   flapper nozzle & ip converter
Lecture 22 flapper nozzle & ip converter
 
Lecture 12 stepper motors - types and working
Lecture 12   stepper motors - types and workingLecture 12   stepper motors - types and working
Lecture 12 stepper motors - types and working
 
Techéol Wind Vane Alignment
Techéol Wind Vane Alignment Techéol Wind Vane Alignment
Techéol Wind Vane Alignment
 
Lecture 3 Construction, Classification & Theory of Servomotors
Lecture 3   Construction, Classification & Theory of ServomotorsLecture 3   Construction, Classification & Theory of Servomotors
Lecture 3 Construction, Classification & Theory of Servomotors
 
Class 20 effect of kp, ki & kd and pid control mode
Class 20   effect of kp, ki & kd and pid control modeClass 20   effect of kp, ki & kd and pid control mode
Class 20 effect of kp, ki & kd and pid control mode
 
Class 39 final control elements - actuators
Class 39   final control elements - actuatorsClass 39   final control elements - actuators
Class 39 final control elements - actuators
 
AICQC Final
AICQC FinalAICQC Final
AICQC Final
 
Class 25 i, d electronic controllers
Class 25   i, d electronic controllersClass 25   i, d electronic controllers
Class 25 i, d electronic controllers
 
Class 1 need for process control & process terminology
Class 1   need for process control & process terminologyClass 1   need for process control & process terminology
Class 1 need for process control & process terminology
 
Test station for_wind_turbines
Test station for_wind_turbinesTest station for_wind_turbines
Test station for_wind_turbines
 
3 axis accelorometer- ADXL345
3 axis accelorometer- ADXL3453 axis accelorometer- ADXL345
3 axis accelorometer- ADXL345
 
Class 32 performance criteria for tuning controllers
Class 32   performance criteria for tuning controllersClass 32   performance criteria for tuning controllers
Class 32 performance criteria for tuning controllers
 
Lecture 19 mathematical modeling of pneumatic and hydraulic systems
Lecture 19   mathematical modeling of pneumatic and hydraulic systemsLecture 19   mathematical modeling of pneumatic and hydraulic systems
Lecture 19 mathematical modeling of pneumatic and hydraulic systems
 
Lecture 23 control valves
Lecture 23   control valvesLecture 23   control valves
Lecture 23 control valves
 

En vedette

Estimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel Kuntz
Estimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel KuntzEstimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel Kuntz
Estimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel KuntzDaniel K
 
ARINDAM PAL_RESUME_MCA_2015
ARINDAM PAL_RESUME_MCA_2015ARINDAM PAL_RESUME_MCA_2015
ARINDAM PAL_RESUME_MCA_2015Arindam Pal
 
Individualized-Data-Report_Sample
Individualized-Data-Report_SampleIndividualized-Data-Report_Sample
Individualized-Data-Report_SampleLisa Martinez
 
Temas para los exámenes de recuperación del nivel secundario
Temas para los exámenes de recuperación del nivel secundarioTemas para los exámenes de recuperación del nivel secundario
Temas para los exámenes de recuperación del nivel secundariomary gonza
 
Shivamogga kannada STF workshop 2nd Day report
Shivamogga kannada STF workshop 2nd Day reportShivamogga kannada STF workshop 2nd Day report
Shivamogga kannada STF workshop 2nd Day reportKarnatakaOER
 
Plan Curricular Anual de octavo grado de Lengua y Literatura
Plan Curricular Anual de octavo grado de Lengua y LiteraturaPlan Curricular Anual de octavo grado de Lengua y Literatura
Plan Curricular Anual de octavo grado de Lengua y LiteraturaWalter Chamba
 
La familia en el tratamiento del paciente consumidor
La familia en el tratamiento del paciente consumidorLa familia en el tratamiento del paciente consumidor
La familia en el tratamiento del paciente consumidorClaudia Tejeda
 
Introduccion a la exploracion de hidrocarburos
Introduccion a la exploracion de hidrocarburosIntroduccion a la exploracion de hidrocarburos
Introduccion a la exploracion de hidrocarburosJavier M. Blázquez
 
Ficha de avalia+º+úo janeiro
Ficha de avalia+º+úo   janeiroFicha de avalia+º+úo   janeiro
Ficha de avalia+º+úo janeiroLuis Martins
 
20 karangan 10 ayat tema keluarga
20 karangan 10 ayat tema keluarga20 karangan 10 ayat tema keluarga
20 karangan 10 ayat tema keluargaNarol Idris
 

En vedette (18)

Shot list
Shot listShot list
Shot list
 
Agenda Diálogo Cio 2
Agenda Diálogo Cio 2Agenda Diálogo Cio 2
Agenda Diálogo Cio 2
 
Estimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel Kuntz
Estimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel KuntzEstimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel Kuntz
Estimation of Crop Acreage From Satellite Imagery -- EENG 510 -- Daniel Kuntz
 
ARINDAM PAL_RESUME_MCA_2015
ARINDAM PAL_RESUME_MCA_2015ARINDAM PAL_RESUME_MCA_2015
ARINDAM PAL_RESUME_MCA_2015
 
Teori Penulisan
Teori PenulisanTeori Penulisan
Teori Penulisan
 
Buah-buahan / Fruits
Buah-buahan / FruitsBuah-buahan / Fruits
Buah-buahan / Fruits
 
O que é a poesia
O que é a poesiaO que é a poesia
O que é a poesia
 
Individualized-Data-Report_Sample
Individualized-Data-Report_SampleIndividualized-Data-Report_Sample
Individualized-Data-Report_Sample
 
Temas para los exámenes de recuperación del nivel secundario
Temas para los exámenes de recuperación del nivel secundarioTemas para los exámenes de recuperación del nivel secundario
Temas para los exámenes de recuperación del nivel secundario
 
Shivamogga kannada STF workshop 2nd Day report
Shivamogga kannada STF workshop 2nd Day reportShivamogga kannada STF workshop 2nd Day report
Shivamogga kannada STF workshop 2nd Day report
 
Folhas caidas
Folhas caidasFolhas caidas
Folhas caidas
 
Bomba koomey cgba-slide share
Bomba koomey cgba-slide shareBomba koomey cgba-slide share
Bomba koomey cgba-slide share
 
Plan Curricular Anual de octavo grado de Lengua y Literatura
Plan Curricular Anual de octavo grado de Lengua y LiteraturaPlan Curricular Anual de octavo grado de Lengua y Literatura
Plan Curricular Anual de octavo grado de Lengua y Literatura
 
La familia en el tratamiento del paciente consumidor
La familia en el tratamiento del paciente consumidorLa familia en el tratamiento del paciente consumidor
La familia en el tratamiento del paciente consumidor
 
Introduccion a la exploracion de hidrocarburos
Introduccion a la exploracion de hidrocarburosIntroduccion a la exploracion de hidrocarburos
Introduccion a la exploracion de hidrocarburos
 
Quase de Verdade
Quase de VerdadeQuase de Verdade
Quase de Verdade
 
Ficha de avalia+º+úo janeiro
Ficha de avalia+º+úo   janeiroFicha de avalia+º+úo   janeiro
Ficha de avalia+º+úo janeiro
 
20 karangan 10 ayat tema keluarga
20 karangan 10 ayat tema keluarga20 karangan 10 ayat tema keluarga
20 karangan 10 ayat tema keluarga
 

Similaire à Presentation

Fyp poster
Fyp posterFyp poster
Fyp posterSonof2
 
Design and implementation of antenna control servo system for satellite grou
Design and implementation of antenna control servo system for satellite grouDesign and implementation of antenna control servo system for satellite grou
Design and implementation of antenna control servo system for satellite grouIAEME Publication
 
IWEC2016_IWEC2016P74T10001_FullPaperSubmission
IWEC2016_IWEC2016P74T10001_FullPaperSubmissionIWEC2016_IWEC2016P74T10001_FullPaperSubmission
IWEC2016_IWEC2016P74T10001_FullPaperSubmissionGholamreza Noshirvani
 
Addressing climate change uncertainty with a monte carloversion of TIMES
Addressing climate change uncertainty with a monte carloversion of TIMESAddressing climate change uncertainty with a monte carloversion of TIMES
Addressing climate change uncertainty with a monte carloversion of TIMESIEA-ETSAP
 
Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...
Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...
Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...IAES-IJPEDS
 
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...Luigi Vanfretti
 
Power Performance Optimization using LiDAR technology : India Pilot Project R...
Power Performance Optimization using LiDAR technology : India Pilot Project R...Power Performance Optimization using LiDAR technology : India Pilot Project R...
Power Performance Optimization using LiDAR technology : India Pilot Project R...Karim Fahssis 卡卡
 
Monte carlo presentation for analysis of business growth
Monte carlo presentation for analysis of business growthMonte carlo presentation for analysis of business growth
Monte carlo presentation for analysis of business growthAsif Anik
 
MLPE performance modeling
MLPE performance modelingMLPE performance modeling
MLPE performance modelingchaudharichetan
 
2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens
2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens
2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemensSirris
 
ECMFA 2015 - Energy Consumption Analysis and Design with Foundational UML
ECMFA 2015 - Energy Consumption Analysis and Design with Foundational UMLECMFA 2015 - Energy Consumption Analysis and Design with Foundational UML
ECMFA 2015 - Energy Consumption Analysis and Design with Foundational UMLLuca Berardinelli
 
IRJET- Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...
IRJET-  	  Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...IRJET-  	  Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...
IRJET- Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...IRJET Journal
 
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...silveroak engineering collage
 
Level control of Conical Tank Process using ANFIS based Model Reference Adapt...
Level control of Conical Tank Process using ANFIS based Model Reference Adapt...Level control of Conical Tank Process using ANFIS based Model Reference Adapt...
Level control of Conical Tank Process using ANFIS based Model Reference Adapt...IRJET Journal
 

Similaire à Presentation (20)

Fyp poster
Fyp posterFyp poster
Fyp poster
 
Sun dog stcu...(circ)
Sun dog stcu...(circ)Sun dog stcu...(circ)
Sun dog stcu...(circ)
 
Design and implementation of antenna control servo system for satellite grou
Design and implementation of antenna control servo system for satellite grouDesign and implementation of antenna control servo system for satellite grou
Design and implementation of antenna control servo system for satellite grou
 
IWEC2016_IWEC2016P74T10001_FullPaperSubmission
IWEC2016_IWEC2016P74T10001_FullPaperSubmissionIWEC2016_IWEC2016P74T10001_FullPaperSubmission
IWEC2016_IWEC2016P74T10001_FullPaperSubmission
 
Metrology
MetrologyMetrology
Metrology
 
Addressing climate change uncertainty with a monte carloversion of TIMES
Addressing climate change uncertainty with a monte carloversion of TIMESAddressing climate change uncertainty with a monte carloversion of TIMES
Addressing climate change uncertainty with a monte carloversion of TIMES
 
Comparators
Comparators Comparators
Comparators
 
Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...
Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...
Comparison of Estimated Torques Using Low Pass Filter and Extended Kalman Fil...
 
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
The RaPId Toolbox for Parameter Identification and Model Validation: How Mode...
 
Power Performance Optimization using LiDAR technology : India Pilot Project R...
Power Performance Optimization using LiDAR technology : India Pilot Project R...Power Performance Optimization using LiDAR technology : India Pilot Project R...
Power Performance Optimization using LiDAR technology : India Pilot Project R...
 
2014 PV Performance Modeling Workshop: Toward Reliable Module Temperature Mea...
2014 PV Performance Modeling Workshop: Toward Reliable Module Temperature Mea...2014 PV Performance Modeling Workshop: Toward Reliable Module Temperature Mea...
2014 PV Performance Modeling Workshop: Toward Reliable Module Temperature Mea...
 
Monte carlo presentation for analysis of business growth
Monte carlo presentation for analysis of business growthMonte carlo presentation for analysis of business growth
Monte carlo presentation for analysis of business growth
 
F05613947
F05613947F05613947
F05613947
 
MLPE performance modeling
MLPE performance modelingMLPE performance modeling
MLPE performance modeling
 
2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens
2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens
2015 12-02-optiwind-offshore-wind-turbine-modelling-lms-samsef-siemens
 
ECMFA 2015 - Energy Consumption Analysis and Design with Foundational UML
ECMFA 2015 - Energy Consumption Analysis and Design with Foundational UMLECMFA 2015 - Energy Consumption Analysis and Design with Foundational UML
ECMFA 2015 - Energy Consumption Analysis and Design with Foundational UML
 
IRJET- Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...
IRJET-  	  Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...IRJET-  	  Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...
IRJET- Self-Tuning PID Controller with Genetic Algorithm Based Sliding Mo...
 
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
TECHNICAL IMPROVEMENT IN PICK & PLACE ROBOT ARM MACHINE BY GIVING ALTERNATE T...
 
Level control of Conical Tank Process using ANFIS based Model Reference Adapt...
Level control of Conical Tank Process using ANFIS based Model Reference Adapt...Level control of Conical Tank Process using ANFIS based Model Reference Adapt...
Level control of Conical Tank Process using ANFIS based Model Reference Adapt...
 
65 sutterlueti using_advanced_pv_and_bo_s_modelling_and_algorithms_to_optimiz...
65 sutterlueti using_advanced_pv_and_bo_s_modelling_and_algorithms_to_optimiz...65 sutterlueti using_advanced_pv_and_bo_s_modelling_and_algorithms_to_optimiz...
65 sutterlueti using_advanced_pv_and_bo_s_modelling_and_algorithms_to_optimiz...
 

Presentation

  • 1. Roll Angle Estimation using Thermopile Sensors ANDRE LUIZ ALCANTARA OSTRUFKA MARCUS PEREIRA PROFESSOR: DR. JONATHAN ROGERS ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 2. MOTIVATION AND GOALS MOTIVATION •Use low cost sensors and filtering techniques for attitude estimation in order to reduce the cost of UAVs •These low cost sensors can also be used to perform redundant measurements to increase robustness. •These sensors can be easily replaced and purchased in bulk. GOAL •To estimate the roll angle state of a test platform using data from thermopile sensors and compare the estimates with ”truth” data from an IMU (Inertial Measurement Unit) ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 3. TOPICS •THERMOPILE / IMU •ELECTRIC CIRCUIT •SOFTWARE •SYSTEM MODELING •EXTENDED KALMAN-FILTER(EKF) •IMPLEMENTING THE HYBRID EKF ALGORITHM •DATA PROCESSING •PLOTS AND RESULTS •FUTURE DIRECTIONS ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 4. THERMOPILE / IMU •Thermopile sensors are electric devices that convert thermal energy into electric energy •They are composed of several thermocouples connected usually in series •Thermopiles detect the temperature of an object by absorbing the infrared (IR) radiation that emits from the object’s surface ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016) From left to right: sensor mount, Heimann HMS J11F5.5 thermopile sensor, and signal conditioning circuit board.
  • 5. THERMOPILE / IMU •The ground and the sky have different IR emissivity as seen in the plot. •The output voltage of a thermopile sensor can be approximated by a sine function, when the roll angle is varied from 0 to 360 degrees. •Data from two thermopile sensors in opposite directions can be used for Horizon Seeking. ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 6. THERMOPILE / IMU •Thermopile sensor: Heimann HMS J11F5.5 ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016) •9 Degrees of Freedom - Razor IMU •It has an ITG-3200 (MEMS triple-axis gyro), ADXL345 (triple-axis accelerometer), and HMC5883 (Triple-axis magnetometer). However, we use just the gyro data for roll angle measurement of the platform.
  • 7. ELECTRIC CIRCUIT ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 8. ELECTRIC CIRCUIT ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 9. SOFTWARE ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016) •Timer A: Interrupts every 20ms (approximately equal to the IMU sampling time) • GPIO: Pins P5.5 and P5.4 are configured to tertiary function (ADC module). P5.5 corresponds to ADC module A0 and P5.4 corresponds to ADC module A1 •ADC is configured to operate in multi-sequence mode, so that the data from both sensors can be acquired simultaneously. •The memory location MEM0 was set to store the data from module A0 and MEM1 from module A1. •Output from Pin P2.4 to the gate of a BJT transistor is used to turn on the transmission of IMU data onto the Serial Monitor of the Adruino IDE. The IMU firmware code was modified to ouput roll angle data only at a frequency of 50 Hz (or 20 ms sampling time). •Pin P1.4 (Button S2) is used to start the data acquisition process from Thermopile sensors and the IMU at the same time.
  • 10. ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 11. SYSTEM MODELING ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 12. EXTERNDED KALMAN-FILTER (EKF) •Kalman filtering is an algorithm that uses a series of measurements observed over time, and produces estimates of unknown variables (in our case roll angle) that tend to be more precise than those based on a single measurement alone. •The Extended Kalman filter (EKF) is the nonlinear version of the Kalman filter which linearizes about an estimate of the current mean and covariance of the unknown state variable. •In our case we need to use the Extended Kalman Filter because the measurement model is a non-linear function of the state variable (sinusoidal function the roll angle), although the system’s dynamics model is linear. ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 13. ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016) IMPLEMENTING THE HYBRID EKF ALGORITHM
  • 14. DATA PROCESSING Steps: 1. Process calibration data:- To be obtained by rotating the test platform 360 degrees 3-4 times before flight tests. This is required to determine the scale factor (amplitude of approximated sine wave function) for the measurement model of the Hybrid EKF. (Plot shown in subsequent slides) 2. Implement Moving Average (MA) Filters:- Thermopile data – 4th order MA filter IMU data – 45th order MA filter 3. Implement the Hybrid EKF Algorithm to Estimate Roll Angle . 4. Compare with IMU roll angle data to determine Estimation Error and calculate the Average RMS estimation error. ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 15. RESULTS / ANALYSIS ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016) 1. Calibration: Using fit() in MATLAB General model Sin1: f(x) = a1*sin(b1*x+c1) Coefficients (with 95% confidence bounds): a1 = 0.2974 (0.2948, 0.3) b1 = 0.002717 (0.002711, 0.002723) c1 = -0.6589 (-0.674, -0.6439)
  • 16. EKF Estimated roll angle vs. “True” roll angle from IMU ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 17. EKF Estimation error compared to IMU data ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016) Average RMS error = 5.7075 degrees
  • 18. FUTURE DIRECTIONS 1. Replicate a similar system for pitch angle estimation and use Sequential Kalman Filtering. 2. Implement this attitude estimation system for feedback control of a quadcopter. 3. Implement the above controller in real time using a Raspberry Pi. 4. Use the quaternion version of Extended Kalman Filter as an alternative (MEKF – Multiplicative Extended Kalman Filter). 5. Proper modelling for measurement equation (using compressed sine wave function to remove estimation error near peaks). 6. Better calibration methods (estimation is very sensitive to scale factor from calibration). ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)
  • 19. QUESTIONS? ME 4405 - FUNDAMENTALS OF MECHATRONICS (SPRING 2016)