Shop OBEX P1 Docs P2 Docs Learn Events
CMPS01 Compass Module — Parallax Forums

CMPS01 Compass Module

ArchiverArchiver Posts: 46,084
edited 2001-08-25 12:01 in General Discussion
Hi-de-hi Stampers !

Has anyone successfully interfaced a BS2-SX with a CMPS01 Compass Module ?
I have one of these modules and got it working on an OOPIC from a sample
circuit diagram and code but talking I2C.

My robot brain is a BS2-SX and I'm not ready to rework the entire machine to
run from the OOPIC just yet. The documentation tells me that there is a PWM
output available but also talks of decoupling the 5v supply due to a current
spike of up to 400mA during coil switching. This makes me wary of just
wiring it straight to the stamp !

Any information would be most gratefully received. If you'd like to look at
the docs for the compass, you can find them at
http://www.robot-electronics.co.uk/htm/cmps.shtml

Thanks in advance.

Regards,
Justin.

-- Live and learn - or else what's the point ?! --

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-08-25 12:01
    I've got it working in the 8 bit mode(0-255) with the BS2 using the I2C
    routines from www.high-techgarage.com . I haven't got to th 2 byte mode
    yet.
    I also got it going in both modes with the BX24 using Prof. Anderson's I2C
    routines.
    The chip on board is a PIC, the same as the BS2, so direct connect should
    not be a problem for i/o but you shouldn't run it off the BS?'s regulator.
    > Hi-de-hi Stampers !
    >
    > Has anyone successfully interfaced a BS2-SX with a CMPS01 Compass Module ? I
    > have one of these modules and got it working on an OOPIC from a sample
    circuit
    > diagram and code but talking I2C.
    >
    > My robot brain is a BS2-SX and I'm not ready to rework the entire machine to
    > run from the OOPIC just yet. The documentation tells me that there is a PWM
    > output available but also talks of decoupling the 5v supply due to a current
    > spike of up to 400mA during coil switching. This makes me wary of just wiring
    > it straight to the stamp !
    >
    > Any information would be most gratefully received. If you'd like to look at
    the
    > docs for the compass, you can find them at
    > http://www.robot-electronics.co.uk/htm/cmps.shtml
    >
    > Thanks in advance.
Sign In or Register to comment.