High Resolution AMR Compass
description
Transcript of High Resolution AMR Compass
![Page 1: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/1.jpg)
High Resolution AMR Compass
Honeywell
Advisor Dr. Andy PeczalskiAdvisor Professor Beth StadlerPat AlbersmanJeff AymondDan BeckvallMarcus EllsonPatrick Hermans
![Page 2: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/2.jpg)
Abstract
Honeywell
This project’s purpose is to improve the accuracy of a digital compass by using multiple compass IC’s.
These will work together to collectively improve the accuracy of the overall
system.
![Page 3: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/3.jpg)
Project Motivation
• Magnetic ICs in High Demand• Navigation• HDD• Proximity sensing• Position sensing
• Increasing Accuracy is Required• Decreasing Size is also Beneficial
HoneywellImages from http://phermans.com/w/images/e/e2/HMC105X.pdf
![Page 4: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/4.jpg)
Current Technology
• Anisotropic Magnetoresistance
• Wheatstone bridge
HoneywellImages from http://phermans.com/w/images/9/9f/Appl_note_for_position_sensing.pdf
![Page 5: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/5.jpg)
Current Technology
• Analog– 1, 2 or 3 axes sensing– Direct access to bridge– Navigational accuracy depends on ability to read voltages
• Digital– 2 or 3 axes – Internal heading calculation– Accurate to 1 degree
Honeywell
![Page 6: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/6.jpg)
Future Technology
Honeywell
• What is the next step?
• Nanowires• AMR sensing abilities• Decreased size• Decreased sensitivity
Images from Prof. Beth Stadler
![Page 7: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/7.jpg)
Project Description
Honeywell
• Feasibility study for the use of nanowires• Not actually working with nanowires • Trying to increase accuracy by using multiple
bridges as would be required with nanowires• Providing Honeywell with a new use for
nanowires
![Page 8: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/8.jpg)
Project Description
Honeywell
One benchmark is to try to increase the accuracy of the system by the
number of sensors used.
Increased precision and repeatability is also desired.
![Page 9: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/9.jpg)
Project Description
Honeywell
Customized hardware is necessary to implement the multiple sensor system.
Customized software will be required to manage the implementation.
![Page 10: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/10.jpg)
Chosen IC: HMC 6352
Honeywell
• Digital 2-axis compass• On board ADC• Modifiable sensing range• Speaks I2C• Small package• Improvable accuracy• Barber pole bridges
Image from http://phermans.com/w/images/9/9d/HMC6352.pdf
![Page 11: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/11.jpg)
Software & Algorithms• Modeling & Simulations
• Matlab
• Firmware• MPLab & CCS Compiler
• User Interface• Visual Basic (VB)
Honeywell
![Page 12: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/12.jpg)
Sensor Modeling
• Goal: Parameters-> M-file -> Sensor Data
Honeywell
• Consists of Many Sub-functions• Noise, Bridge, OpAmp, A2D
• Needs to model real world situations
![Page 13: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/13.jpg)
MATLAB
Honeywell
• Successfully used to simulate single and multiple sensors before our hardware could be designed
• Provided a vehicle to test the performance of our heading calculation algorithms
• Totaled 1702 lines of MATLAB code
![Page 14: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/14.jpg)
Sensor Placement
• The placement of the sensors must create a system accurate across 360 degrees
• Each individual bridge of each sensor can be simulated independently in MATLAB
• Multiple arrangements can be simulated to determine the best implementation
Honeywell
![Page 15: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/15.jpg)
Orientation Simulations
• Single IC Senor Output Wave Form:
Honeywell
• Data Appears Evenly Spaced• ICs at: 0, 36, 72, 108, 144, 180, 216, 252, 288, 324 Degrees
0 50 100 150 200 250 300 350 400-600
-400
-200
0
200
400
600ICs Binary Outputs
B Field Angle
ICs
Bin
ary
Out
puts
0 50 100 150 200 250 300 350 400-600
-400
-200
0
200
400
600ICs Binary Outputs
B Field Angle
ICs
Bin
ary
Out
puts
![Page 16: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/16.jpg)
Orientation Simulations
• Single IC Senor Output Wave Form:
Honeywell
• Data Evenly Spaced• ICs at: 0, 9, 18, 27, 36, 45, 54, 63, 72, 81 Degrees
0 50 100 150 200 250 300 350 400-600
-400
-200
0
200
400
600ICs Binary Outputs
B Field Angle
ICs
Bin
ary
Out
puts
0 50 100 150 200 250 300 350 400-600
-400
-200
0
200
400
600ICs Binary Outputs
B Field Angle
ICs
Bin
ary
Out
puts
![Page 17: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/17.jpg)
MicroController C Code
• Written in MPLab – Version 8.0
• CCS complier– Version 4
• Run on PIC 18f4550• 1326 Lines of C
– 2532 Lines of Assembly
Honeywell
![Page 18: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/18.jpg)
Sensor Communication
• Sensor Commands– Heading
• Adjusted voltages• Raw voltages
– Calibrate– Re-address– Number of Summed measurements
Honeywell
![Page 19: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/19.jpg)
Serial Communication
• Allows Compass to display results • Very helpful in debugging• Allows for VB to control sensor• Easy to implement in CCS• 115200 Baud allowable from the 20Mhz
crystal
Honeywell
![Page 20: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/20.jpg)
Weighted Averaging
Honeywell
![Page 21: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/21.jpg)
-180 -135 -90 -45 0 45 90 135 180-180 -135 -90 -45 0 45 90 135 180-180 -135 -90 -45 0 45 90 135 180
Honeywell
![Page 22: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/22.jpg)
Visual Basic (VB) Interface
• Provides an end-user interface• Synchronizes the compass and the rotation
table used to accurately measure moves• Allows for automated data acquisition• Provides a repeatable test benching system• Requires a third board to handle adjusted
ground on PMC• Total of 4733 Lines of Code
Honeywell
![Page 23: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/23.jpg)
Honeywell
![Page 24: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/24.jpg)
Honeywell
Visual Basic (VB) Interface
Commands to perform repeatable data acquisition and benchmark tests.
![Page 25: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/25.jpg)
Honeywell
Personal Computer(VB)
PIC18F4520(C)
PMC Controller
Rot. Table
Sensors
Serial Serial
I2C
Parallel
![Page 26: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/26.jpg)
Hardware: Abstract
• One compass, two boards– Main Board
• Microcontroller
– Daughter Board• Sensors
Honeywell
![Page 27: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/27.jpg)
Hardware: Main Board
• Essentially a controller board– Microcontroller– RS-232 Communication– I2C Communication– Interfacing
• Daughter Board• Front Panel
Honeywell
![Page 28: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/28.jpg)
Initial Design: Daughter Board
• Three functional systems– Sensor array– Power MUX– Laser
• Constraint: One of the dimensions must be less than 3.5” – Opening of zero-gauss
chamber is 3.5” in diameter
Honeywell
3.492”
3.132”
![Page 29: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/29.jpg)
Honeywell
Daughter BoardI2C Bus
Data
Clock
![Page 30: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/30.jpg)
• Design challenge:– Need to assign unique address to each sensor– Each sensor is factory installed with address 0x42– In order to change addresses, a command must be
sent to a sensor on the bus– This command message contains:
– How to change address of individual sensor if every sensor is receiving the command?
Honeywell
Daughter BoardPower MUX
Start Address [Ack] Command [Ack] Stop
![Page 31: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/31.jpg)
• Solution: Need to isolate communication to individual sensor
• How?– Burn-in Socket
– Use a network of jumpers– Multiplex I2C to each sensor– Multiplex power to each sensor
Honeywell
Daughter BoardPower MUX
Photo taken from http://www.locknest.com/newsite/products/qfn/index.htm
![Page 32: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/32.jpg)
• We chose to multiplex power– Advantages
• Saves power• Simplifies troubleshooting
– Disadvantages• Signal loss through MUX• Other unknowns…
Honeywell
Daughter BoardPower MUX
![Page 33: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/33.jpg)
Problems with Initial Design• Problems
– Main Board• None
– Daughter Board• I2C bus
– When powered off, the sensors interfere with I2C bus– 5V data signal is pulled down to 2.5V– Therefore communication will not work
– Problems not related to design• Sensor 3 will not communicate• Will not hinder project; algorithm will still work• Slight loss of sensitivity at sensor 3’s axes of sensitivity (27° and 117 °)
Honeywell
![Page 34: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/34.jpg)
Changes to Initial Design
• I2C bus fix– Remove MUX and feed power to all sensors
– Cut I2C traces– Add jumpers to I2C vias and address them one by one– Connect all jumpers to I2C bus
Honeywell
![Page 35: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/35.jpg)
Changes to Initial Design
• Other changes– No laser mount
• Laser mounted directly to plexi-glass case• Saves cost ($25)
Honeywell
![Page 36: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/36.jpg)
Proposed Final Design
• Due to I2C bus issues, our current design does not work
• Two options1. Power all sensors and use burn-in or jumpers
socket to isolate sensors2. Multiplex I2C bus3. Add Physical Jumpers to the I2C bus to individual
connect one sensor at a time
Honeywell
![Page 37: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/37.jpg)
Testing
Honeywell
Prototype Final
![Page 38: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/38.jpg)
Test Setup
Honeywell
![Page 39: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/39.jpg)
Accuracy
Honeywell
Precision
RepeatabilityCompare
Compare
ß fieldCompare
![Page 40: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/40.jpg)
Prototype Testing
Honeywell
• Given one sensor
• CCS compiler
![Page 41: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/41.jpg)
Final Testing
Honeywell
Elements of Final testing
• Pretesting to determine zero gauss values
• Pretesting to determine IC positional offsets
• Testing to obtain compass specs• Accuracy, Precision, Repeatability
![Page 42: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/42.jpg)
Pre-testing (zero gauss)
1. Place sensors in the zero gauss chamber2. Rotate 360 deg. while taking readings3. Analyze data and get zero gauss values
This determines what value we should see when the IC is experiencing zero gauss, aka: parallel to the field direction.
Honeywell
![Page 43: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/43.jpg)
Pre-testing (offsets)
1. Place sensors in artificial magnetic field2. Run VB script that finds sensor locations
• Uses the zero gauss value of each chip• Works using relativity, sensor 1 = 0, sensor2 = ?
From 1• Bang bang control
3. Analyze data and find chip placements 4. Hardcode this to software
Honeywell
![Page 44: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/44.jpg)
Honeywell
![Page 45: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/45.jpg)
Honeywell
![Page 46: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/46.jpg)
Accuracy
Test Procedure1. Determine the B field
• Find the zero crossing on each axis• B field should be 90 degrees from zero crossing• Average the 20 axes results
2. Take measurement 3. Compare result to actual4. Rotate to different position5. Repeat steps 2-5
Honeywell
23 deg
113 deg
![Page 47: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/47.jpg)
Results
Honeywell
Results Comprise of:
• Determining Specs
• Comparison of Specs to Controls
• Ways to improve
• Future for Nanowires?
![Page 48: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/48.jpg)
Results: Control Comparisons
• First Control is the Sensor Heading output– We Don’t know how they compute this
• Second Control is performing arctan(x/y) on a single designated sensor
• These will be compared with our computation of arctan(x/y) of multiple sensors averaged
Honeywell
![Page 49: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/49.jpg)
Results: Specs - Repeatability
• Comprised of 5 readings taken at 0, 90, 180,270
• Our Product: Min = +- 0.015 Max = +-0.089
• Control: Min = +- 0.033 Max = +-0.051
• Honeywell: Min = +- 0.030 Max = +- 0.120
Honeywell
![Page 50: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/50.jpg)
Results: Specs - Precision
Honeywell
0 50 100 150 200 250 300 350 400
-10
-8
-6
-4
-2
0
2
4
6
8
10
Precision
Honey Precision
Ctrl Precision
Proc Precision
True Heading in Degrees (from PMC)
Prec
ision
: Dev
iatio
n of
Tru
e Am
ount
Mov
ed a
nd H
eadi
ng M
oved
in
Degr
ees
![Page 51: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/51.jpg)
Results: Specs - Accuracy
Honeywell
0 50 100 150 200 250 300 350 400
-40
-20
0
20
40
60
80
Accuracy
PMC-Honey Heading
PMC-Ctrl Heading
PMC-Proc Heading
True Heading in Degrees (from PMC)
Accu
racy
: Dev
iatio
n Fr
om T
rue
Head
ing
in D
egre
es
![Page 52: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/52.jpg)
How Can We Improve
• Currently using arcTan(x/y) to compute heading– This assumes we have X and Y which need to be
90 degrees apart– In practice this is not true, we found this is actually
only within +-8 degrees• Use different algorithms, better weighting• More Sensors
Honeywell
![Page 53: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/53.jpg)
Future For Nanowires?
• Nanowires are inherently less accurate• Means greater room for improvement• Small enough to use more than 10 bridges• Weighting should have more of an effect• Will have completely different obstacles • All in all, from the results of this feasibility test
they look very promising
Honeywell
![Page 54: High Resolution AMR Compass](https://reader035.fdocuments.net/reader035/viewer/2022062315/568163e8550346895dd5511f/html5/thumbnails/54.jpg)
Conclusion
Honeywell
• Questions/ Comments?
• Thanks for your Attention and Time!