Motion sensor is a 6-axis module consisting of 3-axis magnetic sensor and 3-axis
accelerometer. It allows highly accurate motion detection with geomagnetic direction and tilting
data. AMS0805WAH is a world’s smallest class of motion sensor module with embedded uCom.
Moreover, our exclusive embedded calibration algorithm, iRAC, eliminates the need for initial
manual calibrations. It also enables users to access to reliable motion data virtually anywhere.
Therefore, motion sensor is suitable for deployment in hand-held devices, where diverse
movements are constantly expected, in order to acquire accurate positioning and direction data.
Features
● a 3-axis accelerometer, a 3-axis magnetic sensor
● an internal micro-processor
● Built-in software (for auto-calibration)
● Serial interface: IIC, SPI
● Size: 7 X 9 X 1.2 (mm)
● iRAC (Intelligent Real time Automatic Calibration)
- Automatic offset compensation
- Automatic temperature compensation
- Automatic sensitivity calibration
- Automatic calibration for magnetic field disturbance
● Maximum sampling rate : 30Hz
● Low power: less than 9 mA in active
less than 20 uA in all power down mode
Applications
● Personal Navigation in mobile phone
● Calorie counter
● Constellation seeking device
● Robot motion control
● 3-D presenter
● Game controller
2
Functional Block Diagram
Absolute Maximum Ratings
Item Symbol Min. Max. Unit Description
DC Supply Voltage
(DVDD,DVDDIO,AVDD)
Storage Temperature
Range
Mechanical Shock - - + 4,600 g
ESD - - + 2,000 V
- - 0.3 + 4 V
- - 55 + 125 ℃
AMS0805WAH
MOTION SENSOR
Recommended Operating Conditions
Item Symbol Min. Max. Unit Description
Operating DVDD Supply
Voltage Range
Operating AVDD Supply
Voltage Range
Operating DVDDIO
Supply Voltage Range
Operating Temperature
Range
- + 2.7 + 3.4 V
- + 2.7 + 3.4 V
- + 1.8 + 3.4 V
- - 20 + 85 ℃
3
Compass Specifications
Item Min. Typ. Max. Unit Description
Azimuth accuracy - 5 - + 5 degree
Azimuth range 0 - 359 degree
Azimuth resolution - 1 - degree
Flux density measurement
range
Maximum sampling rate - - 30 Hz
Power consumption - - 27 mW Power down : 60 uW(@ 3.0 V)
Roll/pitch compensation
range
Roll/pitch resolution - 1 - degree
Roll/pitch accuracy - 5 - + 5 degree
- 1,000 - + 1,000μT
- 89 - + 89 degree
DC characteristics
At. DVDD & DVDDIO = 2.7~3.4V Ta= -20 ~85℃℃
Item Symbol Min. Max. Unit Description
Input high voltage 1 VIH1 0.7 x DVDD DVDD + 0.6V All Digital I/O Port except RESET
Input high voltage 2 VIH2 0.9 x DVDD DVDD + 0.6V /RESET(Schmitt input)
Input low voltage 1 VIL1 -0.5 0.3 x DVDDV All Digital I/O Port except RESET
Input low voltage 2 VIL2 -0.5 0.3 x DVDDV /RESET(Schmitt input)
IIC characteristics
At. DVDDIO = 2.7~3.4V Ta= -20 ~85℃℃
Parameter Max. Units Description
Clock Frequency 400 kHz SCL
Sink Current 2 mA SDA, SCL
AMS0805WAH
MOTION SENSOR
SPI characteristics
At. DVDDIO = 2.7~3.4V Ta= -20 ~85℃℃
Parameter Max. Units Description
Clock Frequency 1 MHz SCK
4
A
A
A
A
A
A
A
Pin Descriptions
● Serial Interface
Pin name Pin No. Pin typeInitialFunction
NC / /SS 3 DI
NC / MOSI 2 DI
SDA / MISO 1 DIO / DO
SCL / SCK 4DI -Clock.
IIC / SPI 7DI -L : SPI, H : IIC
3-states
H
3-states
H
Z
H
● Power
Pin name Pin No. Pin typeFunction
DVDD 12,18 PWRDigital power supply
DVDDIO 13 PWRDigital I/O power supply (See page )
DVSS 5,14,22 PWRGND for digital.
VDD 8PWR
VSS 10 PWRGND for analog.
● NC for only Testing
Pin name Pin No.Function
NC 9,11,15,16For only test
● Etc
Pin name Pin No.Pin type InitialFunction
/RESET 6 DSI HReset pin, active "L", Schmitt input.
/WAKE_UP 17 DI HWake up signal : active "L"
X-
xis Accelerometer analog output.
AXOUT 19 AO -
AYOUT 21 AO -
AZOUT 20 AO -
External capacitor must be connected for stable signal
( 100nF )
xis Accelerometer analog output.
YExternal capacitor must be connected for stable signal
( 100nF )
xis Accelerometer analog output.
ZExternal capacitor must be connected for stable signal
( 100nF )
right thumb into the positive rotation axis and curl your fingers into the forward rotational direction.
right-hand rule
is used for determining the sign of a rotation: point your
7
AMS0805WAH
MOTION SENSOR
Typical Connection ( IIC default )
IIC Serial Peripheral Interface
IIC is suited for typical micro-controller. It is designed to easily connect any µcom to IIC
compliant slave. The 2 required lines on the slave side are the clock (SCL) signal and the data
(SDA) signal.
Typical Operating Circuit
● Typical Connection
VDD
Master Controller
(MCU)
IIC
Serial
I/F
SCL
SDA
8
SCL
Slave Device
SDA
AMS0805WAH
MOTION SENSOR
Protocol
● Transaction Rules
Each data transferred on the SDA is accompanied by a pulse on the clock signal. The
data on the SDA must be stable when the clock is high. The only exception is for generating start
and stop. The master initiates and terminates a data transmission.
Start condition
Stop condition
SDA
SCL
acknowledgement. It starts by a start condition and ends by a stop condition. The first byte is the
Slave Address, the second is the Register Address and the third is the Data Byte. The LSB of the
Slave Code byte is the R/W indicator.
MASTER Transmit & SLAVE Receive
SCL
SDA
SDA SLAVE
SDA MASTER
: To start reading/writing operation, it is necessary to generate a start condition by
switching the SDA input from high level to low level when the SCL input is high
level.
: To stop reading/writing operation, it is necessary to generate stop condition by
switching the SDA input from low level to high level when the SCL input is high
level. When the stop condition is generated, the operation is stopped, the data
is processed and the system enters in standby mode.
Start
Stop
● Single-Byte Write Sequence
The Single Byte Write Sequence is composed of 3 bytes of 9 bits, the 9
0
0S65
1
MSBLSBMSBLSBMSBLSB
10100XW0S6
00XWA
1
Slave address
765
AAA
3
4
Command
5
4321076
21
0A
7P
th
bit being the
3
4
21
Data
5
432107P
0A
9
● Single-Word Read Sequence
There is no Single-Byte Read Sequence, so that "DEV_ID" and "REVNUM" should be
read at word length if it would be read. In this case, upper byte of the word is "zero" and the valid
data is in lower byte. Only Word read sequence is provided as following:
MASTER Transmit & SLAVE Receive
SCL
SDA
SDA MASTER
MASTER Receive & SLAVE Transmit
SCL
SDA
SDA SLAVE
SDA MASTER
Here, Command means Register Address actually.
0
0S65
1
MSBLSBMSBLSB
1
1010 0XRA
0S6
MSBLSBMSBLSBMSBLSB
1010 0XR0SP
00XWA
1
Slave address
0
00XW0S65
1
Slave address
AMS0805WAH
MOTION SENSOR
7P
AASDA SLAVE
76
A
6
3
4
Write Data
3
4
5
43210A
Data H
5
4321076
0A
21
07P
21
5
7P
5
AA
TO MASTER Transmit
43210A
Data
432107
10
AMS0805WAH
MOTION SENSOR
●Slave & Register address
The 7bit field is slave code field. The last bit on the SDA is Read/Write bit.
The Serial Peripheral Interface (SPI) is a 4-wire Clock Synchronous Serial Interface. It
is designed to easily connect any CPU to SPI compliant slaves using only 3 lines plus one chip
select line per slave. Few slaves can be connected on the CPU SPI. The 4 required lines on the
slave side for the SPI are MISO, MOSI, SCK signal and /SS signal.
● Typical Operating Circuit
- Typical Connection with one Slave
Master Controller
(MCU)
SPI
Serial I/F
/CS
SCK
MOSI
MISO
12
/SS
SCK
Slave Device 1
MOSI
MISO
AMS0805WAH
MOTION SENSOR
- Typical Connection with two Slaves
/CS
Master Controller
(MCU)
SPI
Serial I/F
SCK
MOSI
MISO
/SS
SCK
Slave Device 1
MOSI
MISO
/SS
SCK
Slave Device 2
MOSI
MISO
Protocol
The data format is MSB in first and LSB in last.
● Single Byte Write Sequence
/SS
SCK
MOSI
MISO
76543
MSBLSBMSBLSB
Commend & Register Byte
21
0
76543
● Single Byte Read Sequence
/SS
SCK
MOSI
MISO765
76543
MSBLSB
Commend & Register Byte
21
0
MSBLSB
13
Data Byte
4
Data Byte
21
3
21
0
0
AMS0805WAH
MOTION SENSOR
● Multi Byte Read Sequence
/SS
SCK
MOSI
MISO
76543
MSBLSB
Commend & Register Byte
21
0
76543210
MSBLSB
Data Byte 1
(Adress)
76543210
MSBLSB
Data Byte 2
(Address + 1)
14
Register Table
Register Symbol R/W Explanation
01(h) DEV_ID R Device ID
02(h) REVNUM R Revision Number
03(h) MAG_STATUS R Big Magnetic Field Status Flag
14(h) POWER W Power Down Mode
20(h) AZIMUTH_H R MSB of AZIMUTH
21(h) AZIMUTH_L R LSB of AZIMUTH
22(h) MAG_XH R MSB of Magnetic Sensor X axis
23(h) MAG_XL R LSB of Magnetic Sensor X axis
24(h) MAG_YH R MSB of Magnetic Sensor Y axis
25(h) MAG_YL R LSB of Magnetic Sensor Y axis
26(h) MAG_ZH R MSB of Magnetic Sensor Z axis
27(h) MAG_ZL R LSB of Magnetic Sensor Z axis
28(h) CAL_XH R MSB of slope compensated X axis
29(h) CAL_XL R LSB of slope compensated X axis
2A(h) CAL_YH R MSB of slope compensated Y axis
2B(h) CAL_YL R LSB of slope compensated Y axis
2C(h) ACC_XH R MSB of Accelerometer X axis
2D(h) ACC_XL R LSB of Accelerometer X axis
2E(h) ACC_YH R MSB of Accelerometer Y axis
2F(h) ACC_YL R LSB of Accelerometer Y axis
30(h) ACC_ZH R MSB of Accelerometer Z axis
31(h) ACC_ZL R LSB of Accelerometer Z axis
32(h) PITCH_H R MSB of PITCH angle
33(h) PITCH_L R LSB of PITCH angle
34(h) ROLL_H R MSB of ROLL angle
35(h) ROLL_L R LSB of ROLL angle
AA(h) CAL_ACC W Accelerometer Offset Calibration Mode ( See page 22~26 )
AMS0805WAH
MOTION SENSOR
15
AMS0805WAH
MOTION SENSOR
Register Descriptions
01(h) "DEV_ID" Device ID Register
Device ID 04H
02(h) "REVNUM" Revision number Register
Revision number 20H
03(h) "MAG_ALARM" External Big Magnetic Field Status Flag
- No External Big Magnetic Field condition 00H
- External Big Magnetic Field condition 01H
z This register is operated over than 0.4gauss external magnetic field distortion.
(In this condition, the Azimuth of AMS0805WAH may be directed wrong,
The accelerometer’s offset can be changed a little value, because of big shock, very high
temperature by soldering etc. For the more precision azimuth and tilt, we need to calibrate
accelerometer’s offset. AMS0805WAH supports ACC offset calibration mode. It is that you can
calibrate accelerometer’s offset in this mode.
The calibration sequence is below.
- Put AMS0805WAH(or product) on a table.
Î Maintain stable condition before starting the CAL ACC offset mode.
- Start the Accelerometer Offset Calibration Mode
Î If host transmits ‘0xAA’ and ‘0x55’ continuously, AMS0805WAH is started the
Accelerometer Offset Calibration Mode.
- Completely and slowly rotate AMS0805WAH on the table.
Î Don’t shake and give any tilt when AMS0805WAH is in the Accelerometer Offset
Calibration Mode.
- Exit ACC offset mode
Î If host transmit ‘0xAA’ and ‘0x55’ continuously again, AMS0805WAH is saved offset
values and exit the Accelerometer Offset Calibration Mode,
AMS0805WAH
MOTION SENSOR
23
AMS0805WAH
MOTION SENSOR
Interval time
More than 50us
0x50SA0xAAA0x55A P
Interval time
More than 50us
START the ACC offset CAL mode
Interval time
More than 50us
... P
0x50SA0xAAA0x55A P...S
Completely & slowly
Rotates AMS0805WAH
on a table.
...S
Go back to Normal mode
within 50ms
Interval time
More than 50us
Save offset values & Exit the ACC offset CAL mode
ACC offset CAL mode
IIC communication protocol
From master to slave
From slave to master
A : acknowledge(SDA LOW)
Ā : not acknowledge(SDA HIGH)
S : start condition
P : stop condition
24
AMS0805WAH
MOTION SENSOR
Interval time
More than 50us
/SS
Completely & slowly
SCK
Rotates AMS0805WAH
on a table.
MOSI
0xAA0x55
START the ACC offset CAL mode
/SS
SCK
MOSI
Save offset values & Exit the ACC offset CAL mode
ACC offset CAL mode
SPI communication protocol
...
Go back to Normal mode
within 50ms
Interval time
More than 50us
0xAA0x55...
From master to slave
25
AMS0805WAH
MOTION SENSOR
AMS0805WAH
Table
AMS0805WAH
e
l
ab
T
θ
Although the table has some tilt, you can calibrate accelerometer’s offset.
Note : Don’t shake and give any tilt when AMS0805WAH is in the ACC offset CAL mode.
26
AMS0805WAH
MOTION SENSOR
Data format in the ACC offset CAL mode.
In the calibration-mode, registers are below
20(h) ~ 21(h) "ACC_X"
- X axis Acceleration value
- Data range: 0 ~ 4,095
22(h) ~ 23(h) "ACC_Y"
- Y axis Acceleration value
- Data range: 0 ~ 4,095
24(h) ~ 25(h) "ACC_Z"
- Z axis Acceleration value
- Data range: 0 ~ 4,095
26(h) ~ 27(h) "Maximum ACC_X"
- Maximum X axis Acceleration value in the calibration mode
- Data range: 0 ~ 4,095
28(h) ~ 29(h) "Minimum ACC_X"
- Minimum X axis Acceleration value in the calibration mode
- Data range: 0 ~ 4,095
2A(h) ~ 2B(h) "Maximum ACC_Y"
- Maximum Y axis Acceleration value in the calibration mode
- Data range: 0 ~ 4,095
2C(h) ~ 2D(h) "Minimum ACC_Y"
- Minimum Y axis Acceleration value in the calibration mode
- Data range: 0 ~ 4,095
2E(h) ~ 2F(h) "Maximum ACC_Z"
- Maximum Z axis Acceleration value in the calibration mode
- Data range: 0 ~ 4,095
30(h) ~ 31(h) "Minimum ACC_Z"
- Minimum Z axis Acceleration value in the calibration mode
- Data range: 0 ~ 4,095
27
AMS0805WAH
MOTION SENSOR
IMPORTANT NOTICE
*Specifications are subject to change without prior notification