If you are using the Hitachi HM55B Compass Module, check out Smart Sensors and Applications, Chapter 4. The chapter contains in depth information on how the module works along with sample code, and page 121 has a pictorial wiring diagram.
Hope this helps!
Jessica
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jessica Uelmen
Education Department
Parallax, Inc.
I have it. I finished hooking it up now I need it to connect with the bluetooth module. I want my compass to work wirelessly but I'm not sure how program wise
Usually people get one function to work at a time using the existing sample code as a framework. First, you want to make sure the compass module works the way you expect using the existing sample code, then you want to make sure the Bluetooth module works the way you expect using the existing sample code. Finally, you combine the two functions. You'll have to decide how you want the data to be transmitted, specifically what format is needed. First you modify the compass sample code to produce the data format you'll want. You'll add initialization and control information needed by the Bluetooth module (and debug this using DEBUG and DEBUGIN statements and your PC). Then it's mostly a matter of substituting output statements for the Bluetooth module rather than the DEBUG and DEBUGIN statements.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
If you are using the Hitachi HM55B Compass Module, check out Smart Sensors and Applications, Chapter 4. The chapter contains in depth information on how the module works along with sample code, and page 121 has a pictorial wiring diagram.
Hope this helps!
Jessica
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jessica Uelmen
Education Department
Parallax, Inc.