Go to Post "Recycle Rush? What's that, some sort of charity marathon?" - Chak [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-06-2008, 07:41
westaust55 westaust55 is offline
Registered User
no team
 
Join Date: Jun 2008
Location: Perth WA
Posts: 2
westaust55 is an unknown quantity at this point
Question Calibrating CMPS03 compass module

Hi all,

I have a Devantech CMPS03 compass module.
Initially was accurate without calibration but then lost calibration without any known reason.

I can read data (firmware revison, heading in 1-byte and 2-byte mode) without problems. I am using a Rev.Ed. PICAXE 40X1 PIC based microcontroller.

To calibrate one must write the value 255 ($FF) to register 4 times.
Each time it is cleared and then you move to next cardinal point and write 255 again into register.
Pin 5 is normally high but goes low during the calibration period until all 4 cardinal points have been logged by the calibration then pin 5 returns high.

If I modify my calibration program and read register 15 initially it is 0. Then when I write the value 255 to register 15, if I read back I see 255 but it is never cleared and pin 5 never goes low.

I have finally tried calibration by the manual method with a switch on pin 6 and that has worked.

So my question is:
has anyone here managed to calibrate a CMPS03 using software and the i2c bus?

If so would appreciate a copy of your i2c based calibration code.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibrating Devantech cmps03 eagleslg Electrical 6 23-06-2008 21:39
Devantech CMPS03 compass sensor eagleslg Programming 1 24-05-2008 22:00
Deventeh Digatal - CMPS03 - Robot Compass Module kE7JLM Programming 5 08-11-2007 19:08
Programming a Devantech Magnetic Compass - CMPS03 kE7JLM Programming 7 28-09-2007 08:23
calibrating a cmucam2 muy dificil Programming 2 19-09-2005 12:46


All times are GMT -5. The time now is 00:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi