Shop OBEX P1 Docs P2 Docs Learn Events
main improvement of Compass Module 3-Axis HMC5883L — Parallax Forums

main improvement of Compass Module 3-Axis HMC5883L

qiuqiuaaaqiuqiuaaa Posts: 37
edited 2012-02-16 07:08 in General Discussion
What is the improvement of HMC5883L compared to compass before? Is there improved accuracy?

Comments

  • Tom CTom C Posts: 461
    edited 2012-02-14 10:31
    qiuqiuaaa wrote: »
    What is the improvement of HMC5883L compared to compass before? Is there improved accuracy?
    qiuqiuaaa,
    The HMC6352 required calibration. As far as I can tell the HMC5883L does not require calibration.
    Just a thought.
    Regards,
    TCIII
  • Martin_HMartin_H Posts: 4,051
    edited 2012-02-14 10:45
    I believe the new one is I2C as well. They updated the samples to bit bang I2C for the BS2, so this is no big deal and could be a selling point as it expands pin usefulness.
  • graffixgraffix Posts: 389
    edited 2012-02-14 11:28
    I believe the previous one (hm55b)had an enable pin? Which made using it with a bs2 easier? Where they used it to plot out objects with ping. The HM55B you can't find or is scarce. Not sure if the new ones have that. I think I got one that didn't. It made doing the tutorial a pain for me and never completed.
  • Martin_HMartin_H Posts: 4,051
    edited 2012-02-14 12:55
    graffix wrote: »
    I believe the previous one (hm55b)had an enable pin? Which made using it with a bs2 easier?

    I own the previous version and yes it is synchronous serial (Ena, Din and Dout) and consumes three pins, but it slightly easier to use with a vanilla BS2. But the code on the quick start site has the I2C bit banging code, so it's mostly a cut and paste task to use this sensor. I would prefer the new one over the old one as the three axis coupled with I2C is pretty sweet.
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2012-02-14 14:25
    New versions of compass, accelerometer, and gyro all use I2C. Make a 9 DOF IMU with only two signal lines. Add an altimeter to your quadcopter or whatever; still use only two lines. Groovy goodness. (And, many of these also support SPI if that's your preference.)

    -- Gordon
  • Martin_HMartin_H Posts: 4,051
    edited 2012-02-16 07:08
    One other thing to consider about using the new I2C devices with a BS2. I tried bit banging last night with a BS2 and it is much slower than using built in I/O which is no surprise. However, this makes it a challenge to pulse the servos frequently enough to avoid jittery motion. A servo pal should make this problem much easier to deal with.
Sign In or Register to comment.