4
International Journal of Computer Science and Application (IJCSA) Volume 3 Issue 1, February 2014 www.ijcsa.org DOI: 10.14355/ijcsa.2014.0301.13 55 Modern CAD Technique to Design Gyrocompass for UAVs and Robot, Ships, Aircrafts Navigation Systems M. S. Zaghloul Arab Academy for Science, Technology, and Maritime Transport, Electronic, Communication Department 2 , P.O.1029, Alex, Egypt [email protected] Abstract This paper concerns the practical design and implementation of gyrocompass required for operation of all installed navigation equipments on robot, aircrafts, ships, also for UAVs. Most navigation systems today use some type of compass to determine heading direction. Using the Earth Õs magnetic field, electronic compasses based on magnetoresistive (MR) sensors can electrically resolve better than 0.1 degree rotation and accuracy from 1 to 2 degree. Most of installed equipment on aircrafts, ships, and spaceship are form of computerbased navigation information system that complies with International regulations. These equipments can be Global position System (GPS), Radar, speed, direction, electronic chart display, height finder for aircrafts and spaceship, echo sounder for ships etc. In our design, Compass Module was utilized with Honeywellʹs HMC5883L 3Axis Magnetometer, I 2 C, 2.76.5V, TTLUSB and microcontroller 16F877. For programming of the microcontroller, software PIC Basic pro was used, a window based Software. We are trying to use a cheap and good resolution within a small size Using Anisotropic Magneto resistive (AMR) technology that provides advantages over other magnetic sensor technologies. These anisotropic, directional sensors feature precision inaxis sensitivity and linearity. These sensors’ solidstate construction with very low crossaxis sensitivity is designed to measure both the direction and the magnitude of Earth’s magnetic fields, from milligauss to 8 gauss. The complete designed system has three outputs, the first one is USB port friendly user interface, the other two outputs are control logic state outputs. We used the designed gyro output to interface with Radar display so the targets direction can be measured in true mode instead of relative mode; as well, our designed module was employed in car protection in driver safety. Keywords Microprocessor; CAD; Ship Control, Radar; Signal Processing; Sensors Introduction From very long time, the magnetic compass has been used in navigation. It appears that Mediterranean seamen of the 12th century were the first to use a magnetic compass at sea Today, the balanced needle compass is only a slight variation of this early discovery. In our design, we make use of advances in technology that have led to the solid state electronic compass based on MR magnetic sensors and acceleration based tilt sensors. In our design, he Honeywell HMC5883L is implemented which is a surfacemount, multichip module designed for lowfield magnetic sensing with a digital interface for applications that enables 1° to 2° compass heading accuracy. Plus a friendly user interface USB which can be used with any equipment fitted with USB port; moreover, we use the micro controller 16 F877. The I 2 C serial buses for the gyro allows for easy interface. The gyro sensor converts any magnetic field into a differential voltage output on three axes. This voltage shift is the raw digital output value, which then can be used to calculate headings or sense magnetic fields coming from different directions. Output of the gyro compass is fed to the microcontroller that is programmed using Basic pro which allows accepting the data from the gyro module, then we have three outputs from the microcontroller, one output to the TTLUSB, and the other two outputs are fed to two transistors which will give control using two relays. Compasses are commonly used with accelerometers, where the data from both the compass and accelerometer can provide extended information to compensate for any tilt of the compass because the reading is affected if the compass is not level. The Memsic 2125 Dualaxis Accelerometer and MMA7455 3Axis Accelerometer Module are available companion accelerometers for the 3Axis Compass module. Newer solid state accelerometer tilts sensors that measure the earth Õs gravitational field by means of an electromechanical circuit.

Modern CAD technique to design Gyrocompass for UAVs and robot, ships, Aircrafts navigation systems

Embed Size (px)

DESCRIPTION

http://www.ij-csa.org/paperInfo.aspx?ID=14339 This paper concerns the practical design and implementation of gyrocompass required for operation of all installed navigation equipments on robot, aircrafts, ships, also for UAVs. Most navigation systems today use some type of compass to determine heading direction. Using the Earth Õs magnetic field, electronic compasses based on magneto-resistive (MR) sensors can electrically resolve better than 0.1 degree rotation and accuracy from 1 to 2 degree. Most of installed equipment on aircrafts, ships, and spaceship are form of computer-based navigation information system that complies with International regulations. These equipments can be Global position System (GPS), Radar, speed, direction, electronic chart display, height finder for aircrafts and spaceship, echo sounder for ships etc. In our design, Compass Module was utilized with Honeywell's HMC5883L 3-Axis Magnetometer, I2C, 2.7-6.5V, TTL-USB and microcontroller 16F877. For program

Citation preview

Page 1: Modern CAD technique to design Gyrocompass for UAVs and robot, ships, Aircrafts navigation systems

International Journal of Computer Science and Application (IJCSA) Volume 3 Issue 1, February 2014                      www.ij‐csa.org 

DOI: 10.14355/ijcsa.2014.0301.13 

55 

Modern CAD Technique to Design 

Gyrocompass for UAVs and Robot, Ships, 

Aircrafts Navigation Systems M. S. Zaghloul 

Arab Academy for Science, Technology, and Maritime Transport, Electronic, Communication Department2, 

P.O.1029, Alex, Egypt 

[email protected] 

 

Abstract 

This paper concerns the practical design and implementation 

of  gyrocompass  required  for  operation  of  all  installed 

navigation  equipments  on  robot,  aircrafts,  ships,  also  for 

UAVs.  Most  navigation  systems  today  use  some  type  of 

compass to determine heading direction. Using the Earth Õs 

magnetic  field,  electronic  compasses  based  on  magneto‐

resistive (MR) sensors can electrically resolve better than 0.1 

degree  rotation  and  accuracy  from  1  to  2  degree. Most  of 

installed  equipment  on  aircrafts,  ships,  and  spaceship  are 

form of computer‐based navigation  information system that 

complies with  International  regulations.  These  equipments 

can be Global position System (GPS), Radar, speed, direction, 

electronic  chart  display,  height  finder  for  aircrafts  and 

spaceship,  echo  sounder  for  ships  etc.  In  our  design, 

Compass Module was utilized with Honeywellʹs HMC5883L 

3‐Axis  Magnetometer,  I2C,  2.7‐6.5V,  TTL‐USB  and 

microcontroller  16F877.  For  programming  of  the 

microcontroller, software PIC Basic pro was used, a window 

based  Software. We  are  trying  to  use  a  cheap  and      good 

resolution within  a  small  size  Using  Anisotropic Magneto 

resistive  (AMR)  technology  that  provides  advantages  over 

other  magnetic  sensor  technologies.  These  anisotropic, 

directional  sensors  feature  precision  in‐axis  sensitivity  and 

linearity.  These  sensors’  solid‐state  construction with  very 

low  cross‐axis  sensitivity  is  designed  to measure  both  the 

direction and the magnitude of Earth’s magnetic fields, from 

milli‐gauss  to  8  gauss.  The  complete  designed  system  has 

three outputs, the first one is USB port friendly user interface, 

the  other  two  outputs  are  control  logic  state  outputs. We 

used  the  designed  gyro  output  to  interface  with  Radar 

display  so  the  targets  direction  can  be  measured  in  true 

mode instead of relative mode; as well, our designed module 

was employed in car protection in driver safety. 

Keywords 

Microprocessor;  CAD;  Ship  Control,  Radar;  Signal  Processing; 

Sensors 

Introduction

From very  long  time,  the magnetic compass has been 

used  in  navigation.  It  appears  that  Mediterranean 

seamen  of  the  12th  century  were  the  first  to  use  a 

magnetic compass at sea  

Today,  the  balanced  needle  compass  is  only  a  slight 

variation  of  this  early  discovery.  In  our  design,  we 

make use of advances  in  technology  that   have  led  to 

the  solid  state  electronic  compass  based  on  MR 

magnetic sensors and acceleration based tilt sensors. In 

our design, he Honeywell HMC5883L is implemented 

which is a surface‐mount, multi‐chip module designed 

for  low‐field magnetic sensing with a digital  interface 

for applications that enables 1° to 2° compass heading 

accuracy. Plus a friendly user interface USB which can 

be  used  with  any  equipment  fitted  with  USB  port; 

moreover, we use the micro controller 16 F877. The I2C 

serial buses for the gyro allows for easy interface. The 

gyro  sensor  converts  any  magnetic  field  into  a 

differential voltage output on  three axes. This voltage 

shift is the raw digital output value, which then can be 

used  to  calculate  headings  or  sense  magnetic  fields 

coming  from different directions. Output  of  the  gyro 

compass  is  fed  to  the  microcontroller  that  is 

programmed using Basic pro which  allows  accepting 

the  data  from  the  gyro module,  then we  have  three 

outputs  from  the microcontroller,  one  output  to  the 

TTL‐USB,  and  the  other  two  outputs  are  fed  to  two 

transistors which will  give  control  using  two  relays. 

Compasses  are  commonly  used with  accelerometers, 

where  the  data  from  both  the  compass  and 

accelerometer  can  provide  extended  information  to 

compensate  for  any  tilt  of  the  compass  because  the 

reading  is  affected  if  the  compass  is  not  level.  The 

Memsic 2125 Dual‐axis Accelerometer and MMA7455 

3‐Axis Accelerometer Module are available companion 

accelerometers for the 3‐Axis Compass module. Newer 

solid state accelerometer tilts sensors that measure the 

earth  Õs  gravitational  field  by  means  of  an 

electromechanical circuit. 

Page 2: Modern CAD technique to design Gyrocompass for UAVs and robot, ships, Aircrafts navigation systems

ww

56 

Th

Th

3‐a

HM

int

ma

pro

ma

an

ma

me

lab

mo

ma

the

as 

sen

dis

det

acc

com

aff

Du

Ac

acc

Int

ser

fie

Th

Th

ww.ij‐csa.org  

he Compas

FIG.1 COM

his is a breako

axis  digital 

MC5883L  is 

terface.  Thi

agnetic field 

oviding  ind

ay be used se

d  measures

agnetic  sou

easures mag

belled  X,  Y, 

odule can be

agnetic  north

e relative stre

those  cause

nsor detects 

stance  and 

termined. 

celerometer 

mpass.  As 

fected  if  the 

ual‐axis  Ac

ccelerometer 

celerometers

ternational G

ries  of math

ld and its tim

FIG. 2 G

he System

he designed s

                    Int

ss Module w

PASS MODULE

out board fo

compass. 

simple  and

s  model  c

in three axe

ividual  read

eparately or 

s  raw  stren

urce.  The 

gnetic  fields 

and  Z.  In 

e used as a b

h.  The  comp

ength of a ne

ed  by magne

magnetism i

direction 

One  appl

is  to  comp

with  most 

compass  is 

ccelerometer 

Module 

s  for  the  3‐A

Geomagnetic

hematical mo

me variation 

GYRO COMPLE

Design

system is 3‐a

ternational Jou

with 3 –Ax

E WITH 3 –AXI

r Honeywell

Communica

d  all  done 

can  measur

s, with 1–2 d

dings  for  ea

together for 

ngth  (gauss

3‐Axis  Com

in  three  dir

its  most  si

basic compas

pass module

earby magne

ets  or  electri

in three dim

to  these  s

lication  of

pensate  for 

compasses, 

not  level.  T

and  MM

are  goo

Axis  Compa

c Reference F

odels  describ

 

ETE CIRCUIT D

axis digital c

urnal of Comp

is HMC588

IS HMC5883L 

lʹs HMC5883

ation  with 

through  an 

res  the  ear

degree accur

ach  axis,  wh

3D calculati

s)  of  a  nea

mpass  mod

rections–or  a

mple  form, 

ss to find ear

e  can  also  se

etic source, s

ic  fields. As 

ensions, rela

ources  can 

f  adding 

any  tilt  of 

the  reading

The Mimic  2

MA7455  3‐A

od  compan

ss module. 

Field (IGRF) 

bing  the  ear

DIAGRAM  

compass. We

puter Science 

83L

3L, a 

the 

I2C 

rth’s 

racy, 

hich 

ons, 

arby 

dule 

axes, 

the 

rth’s 

ense 

such 

the 

ative 

be 

an 

the 

g  is 

2125 

Axis 

nion 

The 

is a 

rthʹs 

 

e are 

tryi

sma

(AM

ma

dire

and

wit

me

Ear

To 

so a

dat

Chi

har

inte

req

is c

Mic

sup

4 d

We

& S

gyr

wh

com

y, a

z fo

and

cha

wh

The

We

or u

rea

wo

and Applicati

ing  to  use  a

all  size.  The

MR)  technol

gnetic  sens

ectional sens

d  linearity.  T

th  very  low

asure  both 

rth’s magneti

get the data 

a micro contr

ta.  The  desi

ip  ʺPic16F87

rdware.  We 

errupt  pin  t

quired to read

connected  to

crocontroller

pply the Mod

diodes  forwa

e made an ex

SDA. The I2C

ro complete 

hich  is  from

mputer or dis

and z where 

or beach; wh

d  used  to  be

ange  status, 

hich can be us

FIG. 3

e HOST Com

e used a V Ba

under  reque

d  the  data  f

rd) which  a

ion (IJCSA) Vo

a  cheap  and

e  Used  Ani

logy  provid

sor  technol

sors feature 

These  senso

w  cross‐axis 

the  directio

ic fields, from

from the mo

roller chip 16

gn  includes

77ʺ micro con

get  the  I2C

o  D0  to  ind

d the data on

o TTL‐USB co

r. Then a  sm

dule with 3.3

ard  to  have 

xternal pull u

C software is 

circuit, we g

m  the  USB 

splay system

x indicates t

hile the secon

e  fed  to  ano

in  addition,

sed for any o

3 FINISHED DE

mputer Softw

asic program

est  from  the 

from modul

are  x,  y,  z  a

olume 3 Issue 

d      good  res

isotropic  Ma

des  advantag

ogies.  Thes

precision  in‐

ors’  solid‐sta

sensitivity 

on  and  the 

m milli‐gaus

odule, we ne

6F877 is appl

s  a  small  PC

ntroller and 

C  data  to 

dicate  data  r

n a PC. The 

onverter  to r

mall 5 v pow

3 volts, we ap

the  required

up resistor (4

listed as S/W

get  two outp

and  this  ca

m to give the 

the direction

nd output  is

other  circuit 

, we  have  sp

other applica

ESIGNED MOD

ware 

m as shown i

author whi

e,  6  data  by

angles.  The 

1, February 2

solution with

agneto‐resist

ges  over  ot

se  anisotrop

‐axis sensitiv

ate  construct

is  designed

magnitude 

s to 8 gauss.

eed I2C interf

lied to read t

CB  with  Mi

the support

C2,  C3  and

eady.  Still  i

microcontro

read Data  fr

wer  is made. 

pplied the 5 v

d  voltage  dr

4.7K) to the S

W 2_6, From t

puts,  the first

an  be  fed  i

three readin

n, y for roll, a

s taken from

to  control  a

pare  output 

ation. 

DULE 

in appendix 

ch  is mainly

ytes  (2  for  e

program  ha

014  

h  a 

tive 

ther 

pic, 

vity 

tion 

d  to 

  of 

face 

this 

icro 

ting 

an 

t  is 

oller 

rom 

To 

v to 

rop. 

SCL 

this 

t of 

into 

ng x, 

and 

m D3 

and 

D2 

 

(A) 

y  to 

ach 

as  a 

Page 3: Modern CAD technique to design Gyrocompass for UAVs and robot, ships, Aircrafts navigation systems

International Journal of Computer Science and Application (IJCSA) Volume 3 Issue 1, February 2014                      www.ij‐csa.org 

57 

given name COMVB and the given three outing angles 

in  three  boxes.  The  rate  of  reading  the  angles  by 

computer  is every 2 seconds with width of 1‐2 degree 

accuracy,  and  the  real  reading  of  the  computer  is 

shown in figure 5. Moreover, figure 6 represents Radar 

display  with  the  use  of  our  gyrocompass  input  via 

USB. 

FIG. 4 READING OF 3 ANGLES X, Y AND Z ON COMPUTER 

DISPLAY 

FIG. 5 RADAR DISPLAY USE GYROCOMPASS INPUT FROM USB  

Our design was  implemented  in  two  application,  the 

first of which  is  in design of open architecture system 

to  reduce  the  likelihood of a vehicle getting  stolen or 

carjacking  and  driver  safety    in which  e  the  gyro  is 

employed to detect the sleep of the driver, the second 

application  is  in Radar display which will  be  shown 

and explained  in next part of  the paper. By applying 

the  gyro  output  from  the  USB  port,  all  the  target 

direction  can  be  read with  respect  to  the  true  north 

(north up), and when the this input is stopped, all our 

reading  for  the  tracks direction will  be  in  relative  to 

ships  heading  (ships  head  up),  and  the  target 

directions will be  from 00  to 1800 right  (green) or  left 

(red). 

Practical Implementation of the Gyrocompass Output 

to a Ship Navigation Radar. 

We used to have a view of a relative motion display i.e. 

the  ships  heading  is  the  zero  angle  for  display  as 

shown in Fig. 6. 

 FIG. 6 RADAR DISPLAYNOT USE GYROCOMPASS INPUT  

When gyro is implemented after 40 mints of operation 

as a hard ware and soft ware in the display program, a 

true motion display can be obtained in which North is 

taken as the zero angles for the display, which is more 

realistic  and  easier  to  identify  true  target  angle  and 

locations  regardless  of  our  ship  heading.  This  is 

indicated in Fig. 7, and it is noticed that all targets and 

graphics are  rotated by  the gyro heading angle being 

90 degrees, which is the gyro reading at that time. 

FIG. 7 RADAR DISPLAY WHEN GYROCOMPASS INPUT 

IMPLEMENTED  

Conclusions

The  designed  system  is  friendly  user with  TTL USB 

interface, most  sensitive,  reliable  low‐field  sensors  in 

the  industry,  and  low  cost gyro having  a one degree 

accuracy  requirement  due  to  the  choice  for  the 

HMC5883L  utilizing  Honeywell’s  Anisotropic 

Magneto‐resistive  (AMR)  technology  that  provides 

advantages over other magnetic sensor technologies. It 

is  available  to  have  directional  sensors  feature 

precision  in‐axis  sensitivity  and  linearity.  These 

sensors’  solid‐state  construction with  very  low  cross‐

axis  sensitivity  is  designed  to  measure  both  the 

direction and the magnitude of Earth’s magnetic fields, 

from milli‐gauss to 8 gauss. We can electrically resolve 

better than 0.1 degree rotation and accuracy from 1 to 

Page 4: Modern CAD technique to design Gyrocompass for UAVs and robot, ships, Aircrafts navigation systems

www.ij‐csa.org                      International Journal of Computer Science and Application (IJCSA) Volume 3 Issue 1, February 2014  

58 

2  degree.  Adding  to  that  for  tilt  compensation,  an 

accelerometer needs to be used along with this module. 

A low cost compass has been discussed here having a 

one degree accuracy  requirement. At  the heart of  the 

compass  is  a  three‐axis  MR  magnetic  sensor.  If  a 

compass  system  has  a  requirement  higher  than  one 

degree of accuracy, then it is important to break down 

the  error  caused  by  the  tilt  sensor  and  the magnetic 

sensor  and  it  is  determined  that  the  level  of  signal 

processing  is  required.  [3] The designed compass can 

be  used  in  car  protection  for  driver  safety  and with 

Radar  display  where  relative  motion  picture  of  the 

displayed tracks is obtained. 

REFERENCES

A  Dual  Axis  Tilt  Sensor  Based  on  Micro  machined 

Accelerometers, Mike Horton,  Charles  Kitchin,  Sensors 

Magazine, April, 1996. 

Applications  of  Magneto  resistive  Sensors  in  Navigation 

Systems Michael J. Caruso, Honeywell Inc. 

Applications  of Magnetic  Sensors  for  Low  Cost  Compass 

Systems Michael J. Caruso Honeywell, SSEC. 

National  Geomagnetic  Information  Centre,  website  URL 

http://geomag.usgs.gov/. 

National Geophysical Data Centre, website URL http://www. 

ngdc.noaa.gov/. 

Sensor Products Data Sheet, ʺ1 and 2 Axis Magneto‐resistive 

Microcircuitsʺ,  Honeywell  SSEC,  5/99,  <www. 

magneticsensors.com>. 

The Ship’s Compass Grant, George A, and Klinkert,  John.  , 

2d ed. (1970). 

1st  international  conference  on  computer  science  and 

application (ICOCSA 2014). January 10 to 11, Indianapolis, 

Indiana, USA, 2014, M. S. Zaghloul .