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.
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.
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.
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.)
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.
Comments
The HMC6352 required calibration. As far as I can tell the HMC5883L does not require calibration.
Just a thought.
Regards,
TCIII
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.
-- Gordon