Hardware Reference
In-Depth Information
MADE
IN I TALY
DIGITAL (PWM ~ )
- +
L
1
5
10
15
20
25
30
UNO
A
B
C
D
E
TX
RX
ON
ARDUINO
RESET
ICSP
F
G
H
I
J
1
5
10
15
20
25
30
POWER
ANALOG IN
Figure 8-12
ST Microelectronics LSM303DLH compass connected to an
Arduino.
NOTE: To calibrate the compass, rotate it slowly through 360
degrees on a flat, level surface while in calibration mode (see
code). When calibrating the compass, you need to know the
cardinal directions precisely. Get a magnetic needle compass
and check properly. You should calibrate away from lots of
electronic equipment and sources of magnetic energy (except
the earth). For example, in my office, needle compasses tend to
point west-southwest, so I calibrate outside, powering the whole
Arduino circuit from a battery. To calibrate the accelerometer,
rotate the module through every possible axis.
AREF
GND
D13
D12
D11/PWM
D10/PWM
D9/PWM
D8
Reset
+3.3V
+5V
Gnd
Gnd
Vin
Arduino
Module
INT2
INT1
DRDY
SDA
SCL
GND
VIN
3V
1V8
D7
D6/PWM
D5/PWM
D4
D3/PWM
D2
Digital1/TX
Digital0/RX
220 Ω
+5V
Analog0
A1
A2
A3
A4
A5
LSM303DLH
Compass
Module
10k Ω
Search WWH ::




Custom Search