当前位置:网站首页>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
边栏推荐
- Turn: excellent managers focus not on mistakes, but on advantages
- Xcode 6 swift code completion does not work properly - Xcode 6 swift code completion not working
- GoLand environment variable configuration
- awk从入门到入土(7)条件语句
- Markdown syntax
- A subclass must use the super keyword to call the methods of its parent class
- 《网络是怎么样连接的》读书笔记 - Tcp/IP连接(二)
- 微服務入門:Gateway網關
- 上周热点回顾(6.27-7.3)
- How to write unit test cases
猜你喜欢
System disk expansion in virtual machine
User login function: simple but difficult
How to solve the problem of computer jam and slow down
微服务入门:Gateway网关
Démarrage des microservices: passerelle
How to choose solid state hard disk and mechanical hard disk in computer
The basic syntax of mermaid in typera
After unplugging the network cable, does the original TCP connection still exist?
C language - Introduction - Foundation - syntax - [operators, type conversion] (6)
How do microservices aggregate API documents? This wave of show~
随机推荐
Awk from entry to penetration (6) regular matching
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
Horizon sunrise X3 PI (I) first boot details
Langage C - démarrer - base - syntaxe - [opérateur, conversion de type] (vi)
awk从入门到入土(12)awk也可以写脚本,替代shell
Cancel ctrl+alt+delete when starting up
How to play dapr without kubernetes?
C语言-入门-基础-语法-[标识符,关键字,分号,空格,注释,输入和输出](三)
Developers really review CSDN question and answer function, and there are many improvements~
Flutter tips: various fancy nesting of listview and pageview
Webapi interview question summary 01
Leetcode topic [array] -136- numbers that appear only once
Basic operations of databases and tables ----- view data tables
Implementation principle of redis string and sorted set
HMS core helps baby bus show high-quality children's digital content to global developers
How does Xiaobai buy a suitable notebook
老掉牙的 synchronized 锁优化,一次给你讲清楚!
go-zero微服务实战系列(九、极致优化秒杀性能)
swatch
Codeforces Global Round 21(A-E)