Oct 072007
 

sensors.gif

A-Bog’s got a writeup of code he grabbed from the sparkfun forums to get the arduino to talk to their compass. – Link

Sparkfun’s compass is cute, but a tad spendy. – Link

Hoeken had mentioned a $15 dollar digital compass and I found the link to get the compass, I bought one! – Link

Here’s a little circuit to play with it. – Link

  2 Responses to “Arduino + Compass = I know which way is North!”

Comments (1) Trackbacks (1)
  1. I like it! Cheap is good.

    Here’s the module I used on the poor man’s GPS:

    http://www.parallax.com/detail.asp?product_id=29123
    At $30, it’s a bit more expensive, but the trade off is in having a serial interface, and ridiculously high precision.

    The downside is that you need an arctangent-like function to make the serial data usable. It spits out two readings that need to be combined:: eg:
    angle = x ATN -y ‘ Convert x and y to brads

    angle = angle */ 360

    For some micros, this is easy, others you can probably fake it out with a lookup table.

    Hope this is somewhat useful,

    Bill

Leave a Reply to Bill McIntyre Cancel reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)