28029 Parallax Inc, 28029 Datasheet - Page 173

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Solutions
Q1. If N is the value reported by x when it is aligned with magnetic north, then for a
Q2. Din, Dout, /Enable, and CLK.
Q3. Clockwise from north.
Q4. Declination is the difference, in degrees, between magnetic north and true north.
Q5. The direction of the field will seem to be opposite of the N and S markings,
Q6. The mechanical compass contains a small magnet which can affect the compass
Q7. Keep a running sum of all twenty measurements, then divide the total sum by 20.
Q8. The running sum of both x and y must start at zero. Once a calculation is done,
Q9. The command is 255, followed by 8 bytes of character data.
Q10. First print spaces to overwrite (blank out) the previous value, then place the
E1. θ = 0° degrees from North, or due North.
E2. θ = 297.3° from North.
E3. 1.6 microtesla = 1.6 x 10
E4. Example routine:
E5. Example routine:
P1. Example solution:
given angle theta, x = Ncosθ.
because of the way the magnetic field wraps around.
module.
the sums will contain a large number. To do a second calculation, you must
reset the sum to zero.
SEROUT pinNumber, baudrate, [255, byte0…byte7]
cursor back at the starting point and print the new value.
Convert:
value
IF (value.BIT15 = 1) THEN
ELSE
ENDIF
Assuming an active-low pushbutton is connected to P10 and a piezospeaker is
connected to P11 (See What’s a Microcontroller?, Chapters 3 and 8),
LcdTestCompass.bs2 can then be modified as follows:
Add these pin directives to the I/O definitions section:
pushbutton
speaker
nanoT = 1000 * microT
RETURN
DEBUG "Negative", CR
DEBUG "Positive", CR
VAR
PIN
PIN
-6
Word
T = 1600 x 10
10
11
Chapter 4: Hitachi HM55B Compass Module · Page 161
-9
T = 1600 nanotesla

Related parts for 28029