The HM55B Compass Module is a dual axis field sensor that works by reading the earth’s magnetic field and determine the direction.
This dual-axis magnetic field sensor is built around the Hitachi HM55B IC. Parallax has made this compass IC accessible by providing Hitachi’s surface mount sensor chip with a 3 V onboard voltage regulator and resistor protection, all in a 0.3” wide 6-pin DIP module.
The Hitachi HM55B Compass Module is compatible with the BASIC Stamp microcontroller’s 5 V supply and signal levels. Acquiring measurements from the module is made easy with a synchronous serial interface, and even easier with the BASIC Stamp 2 commands SHIFTIN and SHIFTOUT.