Project Shaheen Supervisors Mr Imran Raza Dr Tauseef - - PowerPoint PPT Presentation

project shaheen
SMART_READER_LITE
LIVE PREVIEW

Project Shaheen Supervisors Mr Imran Raza Dr Tauseef - - PowerPoint PPT Presentation

SHAHEEN Vehicle (Quadrotor) Towards the Development and Implementa3on of Unmanned Aerial Project Shaheen Supervisors Mr Imran Raza Dr Tauseef Gulrez Group


slide-1
SLIDE 1

SHAHEEN ¡

Towards ¡the ¡Development ¡and ¡Implementa3on ¡of ¡Unmanned ¡Aerial ¡ Vehicle ¡(Quadrotor)

slide-2
SLIDE 2

Supervisors ¡ ¡Mr ¡Imran ¡Raza ¡ ¡Dr ¡Tauseef ¡Gulrez ¡ ¡ Group ¡Members ¡ ¡Sarmad ¡Makhdoom ¡(CIIT/SP08-­‑BCS-­‑048/LHR) ¡ ¡Fa3ma ¡Zahid ¡(CIIT/SP08-­‑BCS-­‑017/LHR) ¡ ¡Waqar ¡ul ¡Haq ¡(CIIT/SP08-­‑BCS-­‑063/LHR) ¡ ¡

Project ¡Shaheen ¡

slide-3
SLIDE 3

Agenda ¡Items ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

3

Architecture ¡of ¡System ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

4

Indoor ¡LocalizaAon ¡(SLAM) ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

7

Simulator ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

5

Path ¡Planning ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

6

Outdoor ¡LocalizaAon ¡(GPS) ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

2

Physical ¡Design ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

8

Interfacing ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

1

Problem ¡Statement ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

9

Conclusion ¡

slide-4
SLIDE 4

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

1

Problem ¡Statement ¡

Problem ¡and ¡its ¡proposed ¡soluAon ¡

slide-5
SLIDE 5

This ¡ project ¡ aims ¡ to ¡ develop ¡ and ¡ implement ¡ an ¡ autonomous ¡ flying ¡ robot ¡ (Quadrotor) ¡with ¡dynamic ¡path ¡planning ¡and ¡adap3ve ¡control ¡system ¡(LQR, ¡ LQG, ¡ PID). ¡ The ¡ flying ¡ robot ¡ will ¡ be ¡ capable ¡ of ¡ flying ¡ on ¡ the ¡ designated ¡ coordinates ¡ indoor ¡ and ¡ outdoor ¡ environments. ¡ Moreover, ¡ the ¡ control ¡ strategy ¡will ¡enable ¡the ¡flying ¡robot ¡to ¡stabilize ¡itself ¡while ¡maneuvering ¡the ¡

  • environment. ¡

Problem ¡Statement ¡

slide-6
SLIDE 6

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

Physical ¡Design ¡

Components ¡and ¡Assembly ¡

2

slide-7
SLIDE 7

Physical ¡Design ¡of ¡Quadrotor ¡

Fig1.1: ¡Quadrotor ¡

slide-8
SLIDE 8

Design ¡of ¡Quadrotor ¡

» Aluminum ¡Arms ¡ » Motors ¡ » Propellers ¡ » RC ¡Controller ¡(6 ¡Channels) ¡ » Gyroscope ¡(Fei ¡Yu ¡FY-­‑90Q) ¡ » Lipo ¡Ba\ery ¡(2100mAh) ¡

slide-9
SLIDE 9

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

3

Architecture ¡of ¡System ¡

slide-10
SLIDE 10

Indoor ¡SLAM ¡ Outdoor ¡GPS ¡ Simulator ¡ Path ¡Planning ¡ Expert ¡System ¡ Interfacing ¡ Fig ¡2.1: ¡Architecture ¡of ¡System ¡

slide-11
SLIDE 11

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

4

Indoor ¡Localiza3on ¡(SLAM) ¡

Simultaneous ¡LocalizaAon ¡and ¡Mapping ¡

slide-12
SLIDE 12

» Understanding ¡of ¡Laser ¡Sensor ¡ » Integra3on ¡with ¡Matlab ¡ » Literature ¡Review ¡ » Transform ¡Spherical ¡Coordinates ¡ ¡to ¡Cartesian ¡ » Localiza3on ¡Problems ¡ » New ¡Algorithms ¡of ¡SLAM ¡

Indoor ¡LocalizaAon ¡(SLAM) ¡

slide-13
SLIDE 13

Block ¡Diagram ¡

START ¡ Laser ¡Scan ¡ Cartesian ¡ Conversion ¡ Make ¡Objects ¡

IdenAfy ¡ Landmarks ¡

Calculate ¡Distance ¡ from ¡Landmarks ¡

Es3mate ¡Pos3on ¡ Update ¡Map ¡& ¡ Current ¡Posi3on ¡ Require ¡ Next ¡ Posi3on ¡ Finish ¡ Yes ¡ Yes ¡ No ¡ No ¡

slide-14
SLIDE 14

Algorithm ¡Dry ¡Run ¡

slide-15
SLIDE 15

PosiAon ¡Es3ma3on ¡

Y b X a c

(x1, y1) (x2, y2)

(x, y)

𝑐= ¡√⁠​(𝑦−𝑦1)↑2 +​(𝑧−𝑧1)↑2 ¡ 𝑑= ¡√⁠​(𝑦−𝑦2)↑2 +​(𝑧−𝑧2)↑2 ¡

slide-16
SLIDE 16

Simultaneous ¡EquaAons ¡Solu3on ¡

𝑐= ¡√⁠​(𝑦−𝑦1)↑2 +​(𝑧−𝑧1)↑2 … ¡Eq1 ¡ 𝑑= ¡√⁠​(𝑦−𝑦2)↑2 +​(𝑧−𝑧2)↑2 … ¡Eq2 ¡

¡

1⇒​𝑐↑2 =​𝑦↑2 +𝑦​1↑2 −2𝑦𝑦1+​𝑧↑2 +𝑧​1↑2 −2𝑧𝑧1 ¡ 2⇒​𝑑↑2 =​𝑦↑2 +𝑦​2↑2 −2𝑦𝑦2+​𝑧↑2 +𝑧​2↑2 −2𝑧𝑧2 ¡

¡ Subtrac3ng ¡Eq1 ¡from ¡Eq2 ¡

⇒ ¡(𝑦​1↑2 −𝑦​2↑2 )−2𝑦(𝑦1−𝑦2)+(𝑧​1↑2 −𝑧​ 2↑2 )−2𝑧(𝑧1−𝑧2)=​𝑐↑2 −​𝑑↑2 ¡ ⇒ ¡2𝑦(𝑦1−𝑦2)+2𝑧(𝑧1−𝑧2)=(𝑦​1↑2 −𝑦​2↑2 )+ (𝑧​1↑2 −𝑧​2↑2 )+(​𝑑↑2 −​𝑐↑2 )

slide-17
SLIDE 17

Simultaneous ¡EquaAons ¡Solu3on ¡

𝑦​1↑2 +​(​𝑑1−2𝑧𝑧3/2𝑦3 )↑2 −2𝑦1(​ 𝑑1−2𝑧𝑧3/2𝑦3 )+𝑧​1↑2 −2𝑧1𝑧=​𝑏↑2 ¡ ¡ ⇒𝑦​1↑2 +​𝑑​1↑2 /4𝑦​3↑2 −​4​𝑧↑2 𝑧​3↑2 /4𝑦​3↑2 −​ 𝑧𝑧3𝑑/𝑦​3↑2 −​2𝑦1𝑑1/2𝑦3 +​4𝑦1𝑧𝑧3/2𝑦3 +𝑧​ 1↑2 −2𝑧1𝑧=​𝑏↑2 ¡ ¡

¡ Assuming ¡​𝑏↑2 −𝑧​1↑2 −​2𝑦1𝑑1/2𝑦3 −​𝑑​1↑2 /4𝑦​3↑2

−𝑦​1↑2 =𝑑2, ¡we ¡have ¡ (1+​𝑧​3↑2 /𝑦​3↑2 )​𝑧↑2 +𝑧(​−𝑧3𝑑/𝑦​3↑2 +​ 4𝑦1𝑧3/2𝑦 −2𝑧1)=𝑑2 ¡ (1+​𝑧​3↑2 /𝑦​3↑2 )=𝑑3 ​−𝑧3𝑑/𝑦​3↑2 +​ 4𝑦1𝑧3/2𝑦 −2𝑧1=𝑑4

slide-18
SLIDE 18

SLAM ¡Demo ¡

slide-19
SLIDE 19

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

5

Path ¡Planning ¡

Path ¡Planning ¡in ¡SimulaAon ¡and ¡RealAme ¡

slide-20
SLIDE 20

» Path ¡Planning ¡Algorithm ¡(A*) ¡

Path ¡Planning ¡

Fig ¡5.1: ¡Path ¡Planning ¡with ¡A* ¡

slide-21
SLIDE 21

Path ¡Planning ¡in ¡Real3me ¡

Fig ¡5.2: ¡Path ¡Planning ¡with ¡Real ¡Data ¡

slide-22
SLIDE 22

Flight ¡Control ¡in ¡Simulator ¡

X ¡ Y ¡ 10 ¡ 100 ¡ 10 ¡ 90 ¡ 10 ¡ 80 ¡ 20 ¡ 70 ¡ 30 ¡ 60 ¡ 40 ¡ 70 ¡ 50 ¡ 60 ¡ 60 ¡ 50 ¡ 70 ¡ 40 ¡ 80 ¡ 30 ¡ 90 ¡ 20 ¡

Fig ¡5.3: ¡Flight ¡Control ¡module ¡in ¡Simulink ¡ Fig ¡5.4: ¡Obtained ¡Path ¡

slide-23
SLIDE 23

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

6

Outdoor ¡Localiza3on ¡

Outdoor ¡localizaAon ¡with ¡the ¡help ¡of ¡GPS ¡

slide-24
SLIDE 24

» Laser ¡Range ¡Problem ¡ » Availability ¡of ¡GPS ¡Device ¡ » iPhone ¡GPS ¡Precision ¡ » iPhone ¡GPS ¡Data ¡Retrieval ¡Problem ¡ » Shaheen ¡iPhone ¡App ¡ ¡ » Google ¡Maps ¡API ¡and ¡Tracking ¡

Outdoor ¡Localiza3on ¡

slide-25
SLIDE 25

Shaheen ¡iPhone ¡App ¡

Shaheen ¡ Fig ¡6.1: ¡Screen ¡1 ¡[Shaheen] ¡ Fig ¡6.2: ¡Screen ¡2 ¡[Shaheen] ¡

slide-26
SLIDE 26

Shaheen ¡Tracking ¡Demo ¡

slide-27
SLIDE 27

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

7

Quadrotor ¡Simulator ¡in ¡Matlab ¡

Simulator ¡of ¡Quadrotor ¡with ¡PID, ¡LQR ¡and ¡LQG ¡

slide-28
SLIDE 28

» Dynamics ¡of ¡Quadrotor ¡ » Different ¡Control ¡System ¡ ¡ » PID ¡ » LQR ¡ » LQG ¡ » Virtual ¡Reality ¡

Simulator ¡in ¡Matlab ¡

slide-29
SLIDE 29

Physics ¡Engine ¡of ¡Quadrotor ¡

Translation ¡Force

[█□​𝐺↓𝑦 @​𝐺↓𝑧 @​𝐺↓𝑨 ]= ¡ [█□𝑛&0&0@0&𝑛&0@0&0&𝑛 ][█□​𝑏↓𝑦 @​𝑏↓𝑧 @​𝑏↓𝑨 ]=𝑛​𝐽↓3×3 [█□​𝑏↓𝑦 @​𝑏↓𝑧 @​𝑏↓𝑨 ] ¡

Rota3onal ¡Force ¡

[█□​𝜐↓𝑦 @​𝜐↓𝑧 @​𝜐↓𝑨 ]= ¡[█□​𝐽↓𝑦𝑦 &​𝐽↓𝑦𝑧 &​𝐽↓𝑦𝑨 @​ 𝐽↓𝑦𝑧 &​𝐽↓𝑧𝑧 &​𝐽↓𝑧𝑨 @​𝐽↓𝑦𝑨 &​𝐽↓𝑧𝑨 &​𝐽↓𝑨𝑨 ][█□​𝑏↓𝑦 @​𝑏↓𝑧 @​𝑏↓𝑨 ] ¡

Basic ¡Dynamics ¡of ¡Quadrotor ¡

[█□​𝑛𝐽↓3×3 &​0↓3×3 @​0↓3×3 &​𝐽↓3×3 ][█□​𝑊↑𝐶 @​𝜕↑𝐶 ]+ ¡[█□​𝜕↑𝐶 ×(​𝑛𝑊↑𝐶 )@​𝜕↑𝐶 ×(​𝐽↓𝑦𝑧𝑨 ​ 𝜕↑𝐶 ) ]= ¡[█□​𝐺↑𝐶 @​𝜐↑𝐶 ]

slide-30
SLIDE 30

Physics ¡Engine ¡of ¡Quadrotor ¡

Thrust ¡Calcula3on ¡

​𝐺↓𝑢ℎ𝑠𝑣𝑡𝑢=𝑐(​𝜕1↑2 +​ 𝜕2↑2 +​𝜕3↑2 +​𝜕4↑2 ) ¡ ​𝜐↓𝑦 =𝑐​𝑚↓𝑞𝑠𝑝𝑞 (​−𝜕2↑2 +​𝜕4↑2 ) ¡ ​𝜐↓𝑧 =𝑐​𝑚↓𝑞𝑠𝑝𝑞 (​−𝜕1↑2 +​𝜕3↑2 ​𝜐↓𝑨 =𝑒(​−𝜕1↑2 +​𝜕2↑2

» b ¡is ¡ ¡Thrust ¡of ¡single ¡propeller ¡ » d ¡is ¡the ¡drag ¡of ¡propeller ¡ » l ¡is ¡length ¡b/w ¡prop ¡and ¡central ¡hub ¡

slide-31
SLIDE 31

Simulink ¡Model ¡

Fig ¡7.1: ¡Quadrotor ¡Dynamics ¡and ¡Transforma3on ¡

slide-32
SLIDE 32

PID ¡Controller ¡

Fig ¡7.2: ¡PID ¡Controller ¡Implementa3on ¡

slide-33
SLIDE 33

LQR ¡Controller ¡

Fig ¡7.3: ¡LQR ¡Controller ¡Implementa3on ¡

slide-34
SLIDE 34

LQG ¡Controller ¡

Fig ¡7.4: ¡LQG ¡Controller ¡Implementa3on ¡

slide-35
SLIDE 35

Virtual ¡Reality ¡

Fig ¡7.5: ¡Virtual ¡Reality ¡ Fig ¡7.6: ¡VR ¡Model ¡

slide-36
SLIDE 36

Complete ¡Simulink ¡Model ¡

Fig ¡7.7: ¡Complete ¡Simulink ¡Model ¡

slide-37
SLIDE 37

Stability ¡LQR ¡vs ¡PID ¡

Fig ¡7.8: ¡No ¡dynamic ¡changed ¡ Fig ¡7.9: ¡Changing ¡value ¡ ¡ dynamically ¡

slide-38
SLIDE 38

LQR ¡vs ¡LQG ¡

Fig ¡7.10: ¡With ¡and ¡without ¡Kalman ¡Filter ¡

slide-39
SLIDE 39

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

8

Interfacing ¡

Interfacing ¡of ¡RC ¡with ¡computer ¡

slide-40
SLIDE 40

Interfacing ¡

» Need ¡of ¡Interfacing ¡ » Previous ¡System ¡and ¡Problems ¡ » Understanding ¡of ¡RC ¡ » New ¡Approach ¡and ¡Problems ¡ » Circuit ¡Simula3on ¡and ¡Design ¡ » Implementa3on ¡

slide-41
SLIDE 41

Previous ¡System ¡

Fig ¡8.1: ¡Relay ¡Circuit ¡

slide-42
SLIDE 42

New ¡System ¡

» Microcontroller ¡ » Digital ¡to ¡Analog ¡Convertor ¡(DAC) ¡ » Serial ¡Port ¡Driver/Receiver ¡ » Miscellaneous ¡Components ¡ ¡ » Microcontroller ¡Programming ¡

slide-43
SLIDE 43

Circuit ¡Block ¡Diagram ¡

Human ¡ Interface ¡ Control ¡ Computer ¡ Serial ¡Port ¡ Circuit ¡Serial ¡ Port ¡ Microcontroller ¡ DAC1 ¡ DAC2 ¡ Quadrotor ¡Remote ¡ Serial ¡Port ¡ Driver/Receiver ¡

slide-44
SLIDE 44

Proteus ¡Simula3on ¡

RA7/OSC1/CLKIN 16 RB0/INT 6 RB1/RX/DT 7 RB2/TX/CK 8 RB3/CCP1 9 RB4 10 RB5 11 RB6/T1OSO/T1CKI 12 RB7/T1OSI 13 RA0/AN0 17 RA1/AN1 18 RA2/AN2/VREF 1 RA3/AN3/CMP1 2 RA4/T0CKI/CMP2 3 RA6/OSC2/CLKOUT 15 RA5/MCLR 4

U1

PIC16F628A SCK 4 CS 3 SDI 5 LDAC 8 VOUTA 14 VREFA 13 VOUTB 10 VREFB 11 SHDN 9

U2

MCP4922 +88.8 Volts +88.8 Volts

V1

5V

V2

5V SCK 4 CS 3 SDI 5 LDAC 8 VOUTA 14 VREFA 13 VOUTB 10 VREFB 11 SHDN 9

U3

MCP4922 +88.8 Volts +88.8 Volts

V3

5V

V4

5V RXD RTS TXD CTS +88.8 +88.8 +88.8 +88.8

Fig ¡8.2: ¡Simula3ng ¡Circuit ¡

slide-45
SLIDE 45

Interfacing ¡Circuit ¡

Fig ¡8.3: ¡Interfacing ¡Circuit ¡

slide-46
SLIDE 46

Matlab ¡GUI ¡

Fig ¡8.4: ¡Graphical ¡User ¡Interface ¡

slide-47
SLIDE 47

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

9

Conclusion ¡

slide-48
SLIDE 48

Conclusion ¡

» Quadrotor ¡Simulator ¡ » Virtual ¡Reality ¡ » New ¡Algorithm ¡of ¡SLAM ¡ » iPhone ¡App ¡and ¡Outdoor ¡Localiza3on ¡ » Path ¡Planning ¡ » Interfacing ¡

slide-49
SLIDE 49