Compass module and I2C bus


Results 1 to 13 of 13

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Have a look at this one for Basic Stamp
    http://www.robot-electronics.co.uk/htm/cmps2bs2.shtml
    http://www.robot-electronics.co.uk/htm/cmpsatom.shtml

    I don't think your software is the main problem.. double check your hardware first

    And probably you need to calibrate it first...
    http://www.robot-electronics.co.uk/htm/cmps_cal.shtml

    EDIT: AHHHH F*** You used a Word sized Variable... it must be a BYTE sized variable for this specific register
    Last edited by mister_e; - 8th December 2006 at 14:45.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  2. Oscillator stops when touching with a wire
    By Wilbert Ingels in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 25th April 2008, 08:51
  3. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  4. I2C Comm with Digital Compass HMC6352
    By jihlein in forum Serial
    Replies: 10
    Last Post: - 9th April 2008, 22:25
  5. I2C compass - Philips KMZ51
    By barkerben in forum General
    Replies: 0
    Last Post: - 25th December 2005, 20:10

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts