Top Banner
1 Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Chapter 4: Hitachi HM55B Compass Module Presented by: Presented by: Andy Lindsay Andy Lindsay Parallax, Inc. Parallax, Inc. [email protected] [email protected] om om
12

1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

Dec 24, 2015

Download

Documents

Wendy Palmer
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

1

Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass ModuleChapter 4: Hitachi HM55B Compass Module

Presented by: Presented by: Andy LindsayAndy LindsayParallax, Inc.Parallax, [email protected]@parallax.comom

Page 2: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

2

Copyrights and Trademarks

This documentation is copyright 2006 by Parallax Inc. By downloading or obtaining a printed copy of this documentation or software you agree that it is to be used exclusively with Parallax products. Any other uses are not permitted and may represent a violation of Parallax copyrights, legally punishable according to Federal copyright or intellectual property laws. Any duplication of this documentation for commercial uses is expressly prohibited by Parallax Inc. Duplication for educational use is permitted, subject to the following conditions: the text, or any portion thereof, may not be duplicated for commercial use; it may be duplicated only for educational purposes when used solely in conjunction with Parallax products, and the user may recover from the student only the cost of duplication.

BASIC Stamp, Stamps in Class, Board of Education, Boe-Bot SumoBot, SX-Key and Toddler are registered trademarks of Parallax, Inc. HomeWork Board, Propeller, Ping))) Parallax, and the Parallax logo are trademarks of Parallax Inc. If you decide to use trademarks of Parallax Inc. on our web page or in printed material, you must state that "(trademark) is a (registered) trademark of Parallax Inc.” upon the first appearance of the trademark name in each printed document or web page. Other brand and product names are trademarks or registered trademarks of their respective holders.

Page 3: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

3 Chapter 4, Pages 119 - 120

The Hitachi HM55B The Hitachi HM55B Compass ModuleCompass Module

Page 4: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

4 Chapter 4, Activity #1, Pages 120 - 121

Circuit: Figure 4-4, p. 121Circuit: Figure 4-4, p. 121

Program: TestCompass.bs2, p. Program: TestCompass.bs2, p. 121121

√ √ Follow the checkmarks on page Follow the checkmarks on page 122.122.

Page 5: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

5 Chapter 4, Activity #1, Page 126

Experiments with Magnetic Experiments with Magnetic FieldsFields

√ √ Follow the checkmark Follow the checkmark instructions on page 124 – 127.instructions on page 124 – 127.

Page 6: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

6 Chapter 4, Activity #2, Page 129

Calibration SetupCalibration Setup

√ √ Follow the Follow the checkmark checkmark instructions on pages instructions on pages 128 – 130.128 – 130.

Page 7: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

7 Chapter 4, Activity #2, Pages 130 - 132

Calibration ProcedureCalibration Procedure

Program: CalibrateCompass.bs2, page 132Program: CalibrateCompass.bs2, page 132

√ √ Follow the checkmark instructions on pages 128 – 130 and Follow the checkmark instructions on pages 128 – 130 and page137.page137.

Page 8: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

8 Chapter 4, Activity #3, Page 138

Program: Program: TestCalibratedCompass.bTestCalibratedCompass.bs2 on page 139s2 on page 139

√ √ Follow checkmark Follow checkmark instructions on page 139.instructions on page 139.

Page 9: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

9 Chapter 4, Activity #4, Pages 144 - 146

Step 1: Add two Step 1: Add two CONCON directives.directives.

Step 2: Add four Step 2: Add four variables.variables.

Step 3: Modify the Step 3: Modify the Compass_Get_AxesCompass_Get_Axes subroutine as shown.subroutine as shown.

√ √ Follow checkmark Follow checkmark instructions on page instructions on page 146.146.

Program: Start with Program: Start with TestCompass.bs2, p. TestCompass.bs2, p. 122.122.

Page 10: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

10 Chapter 1, Activity #4, Page 145

Page 11: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

11 Chapter 4, Activity #5, Pages 148 - 151

Circuit: Figure 4-12 to 4-14, pages 149 – 151Circuit: Figure 4-12 to 4-14, pages 149 – 151

√ √ Follow checkmark instructions on pages 150 – 151.Follow checkmark instructions on pages 150 – 151.

Page 12: 1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.

12 Chapter 4, Activity #5, Pages 154 - 156

Program: LcdTestCompass.bs2 on page 156Program: LcdTestCompass.bs2 on page 156

√ √ Install the optional LCD Mounting Bracket if Install the optional LCD Mounting Bracket if desired, following checkmarks on page 154.desired, following checkmarks on page 154.

√ √ Follow the checkmark on page 156.Follow the checkmark on page 156.