Page 30
Page 31
30
29
28
27
34
33
46
36
35
42
43
44
45
37
50
48
49
32
38
39
40
41
47
31
26
9
11
12
4
3
24
23
18
17
16
15
14
13
5
6
7
8
10
1
2
22
21
20
19
25
78
77
79
80
76
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
10
0
58
57
56
55
54
53
52
72
69
68
67
66
65
64
63
62
61
60
59
71
51
70
75
74
73
C32
100nF
C33
100nF
VCC-3.3
R12
10K
R13
10K
VCC-3.3
1
2
3
J1
ACC ADDRESS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VCC
GND
Res
GND
GND
VCC
C
S
INT1
INT2
NC
Res
ADD
SDA
SC
L
U9
ADXL345
VCC-3.3
VCC-3.3
VCC-3.3
VCC-3.3
VREF-1.8
SCL2-RA2
SDA2-RA3
C30
22pF
C31
22pF
X3
32.768KHz
C2
22pF
C1
22pF
X1
8MHz
E9
10uF
CLKO
CLKI
SOSCO
SOSCI
SDA2-RA3
SCL2-RA2
PIC24EP512GU810
R
B1
1
R
B1
0
R
B
9
R
B8
R
B
13
R
B1
2
RE7
RC1
RC2
RC3
ASDA1/RA15
D+/RG2
R
B1
5
R
B1
4
RF8
Vbus
Vusb
D-/RG3
G
N
D
VC
C
R
A
6
R
G
0
R
G
1
R
E0
R
F1
R
F0
R
D
7
R
D
6
RE6
RE5
R
E2
R
G
13
R
G
12
R
G
14
R
E1
R
A
7
RG8/SDO2
R
A
9/
Vr
ef
-
RB1
RB2
RB3
RB4
RB5
RE9
RD9
RD8
RF2
USBID/RF3
GND
RG7/SDI2
RG6/SCK2
R
A
1
R
E3
R
E4
RG15
VDD
R
B7
/P
G
ED
1
R
B6
/P
G
EC
1
RB0
R
F4
R
F5
ASCL1/RA14
RA5
R
D
14
R
D
15
ASCL2/RA2
R
F1
3
VC
C
ASDA2/RA3
VCC
EN
VR
EG
RE8
RA0
VCC
G
N
D
R
F1
2
RA4
GND
VC
A
P
A
G
N
D
A
VC
C
R
A
10
/V
re
f+
MCLR
RC4
CLKI/RC12
CLKO/RC15
RD10
R
D
3
R
D
1
SOSCI/RC13
SOSCO/RC14
GND
R
D
2
R
D
12
R
D
13
R
D
4
R
D
5
RG9
RD11
RD0
U1
C5
100nF
C6
100nF
C7
100nF
E8
10uF
VCC-3.3 VCC-3.3 VCC-3.3
VCC-3.3
C8
100nF
VCC-3.3
C34
100nF
VCC-3.3
decoupling capacitors
10. Accelerometer
On board
ADXL345
accelerometer is used to
measure acceleration in three axis: x, y and z. The
accelerometer function is defined by the user in the
program loaded into the microcontroller. Communication
between the accelerometer and the microcontroller is performed
via the
I2C
interface.
You can set the accelerometer
address to 0 or 1 by re-soldering the
SMD jumper (zero-ohm resistor) to the
appropriate position. Jumper is placed
in address 1 position by default.
Figure 10-2:
Accelerometer
connection
schematic
Figure 10-1:
Accelerometer
module
- datasheet search engine