Tags:
view all tags
---+ Accelerometers ---++ Introduction Accelerometers are used in many portable devices like smart phones, to detect if the device is held vertically or horizontally, in fitness watches as step counters or in some smart portable hard disks where free fall is detected and the device is secured before hitting the ground. Two diifferent devices are easily available for bread board use: * the MMA8452q from NXP Semiconductors * the LIS3-DH from ST Microelectronics Both are 12 bit accelerometers with similar functionality and both use the I2C bus for acquisition and control. | <img alt="lis3-dh.png" height="224" src="%ATTACHURL%/lis3-dh.png" title="lis3-dh.png" width="403" /> | <img alt="mma8452.png" height="251" src="%ATTACHURL%/mma8452.png" title="mma8452.png" width="327" /> | | lis3dh | mma8452 | Both devices are rather complex, have numerous functions and applications and have a large number of registers. They are therefore not easy to understand and program. However, both come with a data sheet and an application note explaining them in great detail. Here are the references: * [[https://www.nxp.com/files-static/sensors/doc/data_sheet/MMA8452Q.pdf][ mma8452 data sheet ]]and [[https://cache.freescale.com/files/sensors/doc/app_note/AN4076.pdf][AN4076 application note]] * [[https://www.st.com/resource/en/datasheet/lis3dh.pdf][lis3-dh data sheet ]]and [[https://www.st.com/content/ccc/resource/technical/document/application_note/77/ed/e7/e1/28/5a/45/d6/CD00290365.pdf/files/CD00290365.pdf/jcr:content/translations/en.CD00290365.pdf][AN3308 application note]] In addition to its use as accelerometer the lis3dh also implements a 12 bit ADC for general use and a temperature sensor, which however only measures relative temperature changes and must thus be cross calibrated with another device if absolute temperature values are desired. ---++ The access library In order to make it easier for the students to interact with the devices I wrote share libraries with a number of access functions which hides most of the complexity. All accesses to the chip registers pass through the library functions. The library is not really complete as many chip functions like free fall detection, access to the !FiFo or to the filter configuration registers are not implemented. In addition to the library itself test programs using the library are provided demonstrating its use. -- %USERSIG{UliRaich - 2018-11-27}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
lis3-dh.png
r1
manage
88.8 K
2018-11-27 - 10:24
UliRaich
png
mma8452.png
r1
manage
159.0 K
2018-11-27 - 10:24
UliRaich
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2018-11-27
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
Embedded_Systems Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback