当前位置:网站首页>AMLOGIC gsensor debugging
AMLOGIC gsensor debugging
2022-07-04 09:03:00 【hmorey】
A lot of debugging has been done in the work gsensor, Here's a summary gsensor Write about the characteristics of , Can give you reference .
One 、 Model reference
model | measuring range | Output bits | Interface | encapsulation |
lis3dh | 2g/±4g/8g/16g | 16-bit data output | I2C/SPI digital output interface | LGA3X3 |
d218b | ±2g, ±4g, ±8g | 12 bit resolution | Digital I2C output interface | LGA-12 2x2 |
mc3253 | ±2g /± 4g /± 8g ranges | 10-bit or 14-bit resolution | I2C interface, up to 400 kHz | LGA3X3 |
qma7981 | ±2/±4/±8/ ±16/±32 | 14-Bit | I2C Interface | LGA-12 2x2 |
sc7a20 | ±2G/±4G/±8G/±16G | 12bit | i2c/spi | LGA-12 2x2 |
Two 、 To write gsensor Basic flow
The platform may be different , But combined with these sensors , The general compilation process is consistent .
2.1 Read WO_AM_I register
Every gsensor There will be WO_AM_I register , This register is used to determine the model of the product , This register is used before the initialization of the first version
2.2 Basic register configuration
* Sensor enable
* To configure ODR
* Configure register range FS
2.3 XYZ Reading of values
边栏推荐
- Implementation principle of redis string and sorted set
- LeetCode 74. Search 2D matrix
- GoLand environment variable configuration
- You can see the employment prospects of PMP project management
- 1211 or chicken and rabbit in the same cage
- awk从入门到入土(4)用户自定义变量
- What should I do if there is a problem with the graphics card screen on the computer
- Awk from entry to earth (14) awk output redirection
- Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
- 20220701 barbarat lemma proof
猜你喜欢
Codeforces Global Round 21(A-E)
Target detection -- intensive reading of yolov3 paper
Educational Codeforces Round 115 (Rated for Div. 2)
How can we make a monthly income of more than 10000? We media people with low income come and have a look
Codeforces Round #750 (Div. 2)(A,B,C,D,F1)
How to re enable local connection when the network of laptop is disabled
Markdown syntax
C language - Introduction - Foundation - syntax - [variable, constant light, scope] (V)
Démarrage des microservices: passerelle
Sequence model
随机推荐
awk从入门到入土(7)条件语句
awk从入门到入土(5)简单条件匹配
awk从入门到入土(15)awk执行外部命令
Codeforces Round #750 (Div. 2)(A,B,C,D,F1)
C language - Introduction - Foundation - syntax - [variable, constant light, scope] (V)
Ehrlich sieve + Euler sieve + interval sieve
09 softmax regression + loss function
什么是权限?什么是角色?什么是用户?
How do microservices aggregate API documents? This wave of show~
Use Alibaba cloud NPM image acceleration
HMS core helps baby bus show high-quality children's digital content to global developers
[C Advanced] file operation (2)
What should I do if there is a problem with the graphics card screen on the computer
Bishi blog (13) -- oral arithmetic test app
Trim leading or trailing characters from strings- Trim leading or trailing characters from a string?
C语言-入门-基础-语法-[主函数,头文件](二)
C language - Introduction - Foundation - syntax - [main function, header file] (II)
awk从入门到入土(18)gawk线上手册
随机事件的关系与运算
awk从入门到入土(14)awk输出重定向