10. Accelerometer
ADXL345
On board
accelerometer is used to
measure acceleration in three axis: x, y and z. The
acceleromer's function is defined by the user in the
program loaded into the microcontroller. Communication
between the accelerometer and the microcontroller is
I 2 C
performed via the
interface.
C41
2.2uF
R65
100K
51
PB12
52
PB13
53
PB14
54
PB15
55
PD8
56
PD9
57
PD10
58
PD11
59
PD12
60
PD13
61
PD14
62
STM32F207VGT6
PD15
63
PC6
64
STM32F407VGT6
PC7
65
PC8
66
PC9
67
PA8
68
PA9
69
PA10
70
PA11
71
PA12
72
PA13
73
VCAP
74
GND
75
VDD
C42
2.2uF
VCC-3.3
Figure 10-2: Accelerometer
AVCC
connection schematics
U1
25
VREF-1.8
PA2
24
PA1
23
PA0-WKUP
VCC-3.3
22
VDDA
21
VREF+
VCC-3.3
20
GNDA
19
J3
VDD
18
E8
PC3
17
PC2
16
J2
10uF
PC1
15
PC0
14
NRST
13
OSC_OUT
12
OSC_IN
11
VDD
10
GND
9
PC15/OSC32_OUT
8
PC14/OSC32_IN
7
PC13/TAMPER_RTC
6
VBAT
5
PE6
4
PE5
3
PE4
2
PE3
1
PE2
VCC-3.3
1
2
3
4
5
R66 100K
6
VCC-3.3 VCC-3.3 VCC-3.3 VCC-3.3
VCC-3.3
C5
C6
C7
C8
C31
100nF
100nF
100nF
100nF
100nF
decoupling
capacitors
VCC-3.3
VCC-3.3
C33
R12
R13
100nF
10K
10K
SCL1-PB6
U9
13
SDA1-PB7
VCC
SDA
12
ACC ADDRESS
GND
ADD
11
VCC-3.3
Res
Res
10
GND
NC
9
VCC-3.3
GND
INT2
J1
8
1
VCC
INT1
2
3
C32
ADXL345
100nF
Page 32
Figure 10-1:
Accelerometer
module
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.
Need help?
Do you have a question about the mikromedia for STM32 and is the answer not in the manual?
Questions and answers