AM2322-Datasheet
AM2322-Datasheet
Product reviews
AM2322 digital temperature and humidity sensor is a contain Super small volume, low power consumption, signal transmission
calibration digital composite signal output of the temperature distance of 20 meters, making it a all kinds of application of the best
and humidity sensor. Using special technology of collecting choice for even the most demanding applications. I2C communication
the data of temperature and humidity, ensure that the mode with a standard communication sequence, the user can be directly
product has a very high reliability and excellent long-term hung on I2C communication bus, no additional wiring, simple to use.
stability. Includes a capacitive moisture sensor element and Tw o kinds of communication mode is used directly output after
a high precision integrated temperature measuring element, temperature compensation, humidity, temperature and calibration of
And connected to a high performance microprocessor. The CRC and other digital information, users need to secondary calculation
product has excellent quality, super fast response, strong of digital output, No need to compensate the temperature humidity,
anti-interference ability, extremely high performance-price accurate temperature and humidity information can be got. Tw o kinds of
ratio. AM2322 communication mode using single bus communication mode are free to switch, users can choose, easy to use,
and standard I2C , two kinds of communication mode. wide application field. Product is 4 wire, convenient connection, special
Standard single bus interface, make the system integration packaging format can be provided according to user requirements.
becomes simple and fast.
Applied range
Hvac, dehumidi fier, testing and inspection equipment, consumer goods, automobile, automatic control,
data recorder, meteorology station, home appliance, humidity control,medical treatment and other related
temperature and humidity detection control.
4.0±0.5
9.0±1
0.40±0.05
Sensor capability
Temperature
Relative humidity
parameter condition min typical max unit
parameter condition min typical max unit
resolution typical 0.01 ℃
resolution typical 0.024 %RH
Accuracy typical ±0.3 ℃
typical ±2 %RH error 1
Accuracy
max See Figure 3 ℃
error 1 max See Figure 2 %RH
repeatable ±0.1 ℃
repeatable ±0.1 %RH
hysteresis ±0.1 ℃
hysteresis ±1 %RH
nonlinear ℃
nonlinear <0.1 %RH
Response time t 63% 5 30 S
Response time t 63% 8 S 3
Scope of work extended
3
-40 80 ℃
Scope of work extended 0 100 %RH
Prolonged Drift normal <0.1 ℃/yr
Prolonged Drift normal <1 %RH/yr
△RH(%RH) △ T℃
± 10
±6 ±1 .5
±4 ±1 .0
±2 ± 0.5
±0 ± 0.0
0 10 20 30 40 50 60 70 80 90 100 -40 -
20 0 20 40 60 80
Relative humidity (%RH) Temperature (°C)
Figure 2 Maximum error in relative humidity at 25°C Figure 3 Typical and maximum temperature errors
Electrical specification
Parameter Condition Unit
The power supply voltage 3.1 5 5.5
Sleep mode 2 15
5
Power dissipation Measure 1200
Average 600
6
Low level output voltage 0 300
High level output voltage 90% 100%
Low level input voltage Decline 30%
High level input voltage Rise 70% 100%
1 Work scope: 0-80% RH, beyond this range, sensor readings will have deviation (H
7 humidity 90% after 200 hours, drift < 3% RH ). The scope of work further limit
1 5.1 100
in - 40-80 ℃.
Open 8 2 The accuracy of factory inspection, sensors in 25 ℃ under the condition of the
The output current
power supply voltage of 5 v test precision .This value does not include the
Tristate(close) 10 10
hysteresis and nonlinear and applies only to the cooling conditions.
Sampling period 2 3 25 ℃ and 1 m/s air conditions, 63% of first order responsetime.
4 If the sensor is surrounded by volatile solvent , with a pungent odor tape,
adhesives and packaging materials, reading may be on the high side.Details
please refer to the relevant documents.
Table 2 Electrical characteristics 5 Minimum and maximum values are based on the power consumption of
VDD = 5 v and T < 60 ℃ condition. In the average of every two seconds, the value
of ameasurement.
6 Low-level output current.
7 Denotes the pull-up resistance.
8 The response time depends on the thermal conductivity of the sensorsubstrate.
80
without ESD package). For those sensors that have
60 been removed from their original packaging , we
normal range
40 recommends to ring them in an ESD bag made of
PET/AL/CPE metal inside. The anti-static
20 bag. During production and transport, the sensor
0 should be protected from high concentrations of
-40 -20 0 20 40 60 80 chemical solvents and prolonged exposure to the
temperature(℃)
elements. Avoid contact with volatile glues, tapes,
Figure4: Working conditions
stickers or volatile packaging materials such as
1.2 RH accuracy at different temperatures blister packs, foams, etc. The production area should
The RH accuracy at 25℃ is defined in Figure 2 and be well ventilated.
shown in Figure 5 maximum humidity error in other 2.2 Restoration processing
temperature segments.
As mentioned above, readings can drift if the sensor
1 00
±6 ±5
±5
±4 ±5 ±7 ±8 is exposed to extreme operating conditions or
90
relative humidity (%RH)
high level of SCL clock line and data line SDA logic
level to low level said current transmission "0"; highest bit of data (MSB bit 7) is transferred first,
During the high level of the clock line SCL The and the lowest bit (LSB, bit 0) is transferred last.
data line SDA for high level according to the In addition each byte must befollowed by a response
current transmission logic level "1". Logic "0" (low) bit (ACK). The I2C transfer data is shown in Figure 10.
and "1"(high) level, is determined by the relevant
level of VDD (see table 2 AM2322 electric
property table ) . At the same time for every Acknowledgement
Signal from slave
acknowledgement
signal from receiver
transmission data bits produces a clock pulse. Byte complete. Interrupt within
salve
Table 5: Definitions of I2C bus terms Clock line hold low while interrupt are
serviced
Term Describe
TRansmitter A device that sends data to a bus STOP or
START or
repeated START repeated START
Receiver condition condition
A device that receives data from a bus
Initialization sending the clock signal and
Host terminate the sending device
Figure 10: Data transfer on the I2C bus
Slave A device addressed by the host ◎ I2C bus response
Multiple host More than one host simultaneously attempts to
control the bus without destroying the message
During data transmission on the I2C bus, each byte is
A process in which multiple hosts attempt to control the followed by a reply status bit. The receiver can receive
Arbitrament bus at the same time but allow only one of them to control
the bus and keep messages from being corrupted data via the reply bit Tell the sender. Response a
Synchronous
A process in which multiple hosts attempt to control the
bus at the same time but allow only one of them to control clock pulse is generated by the host,while answering a
the bus and keep messages from being corrupted
state of the data to follow the principle of "whoever
◎ Validity of data receives", which is always generated by the receiver
Data line SDA data must remain stable in the high response, in response to the receiver during the clock
level of the clock cycle. Cable high or low level pulse of the SDA line must be lower, making it the clock
state of the SDA only during the clock line SCL is pulse remained stable during the period of the high level
in low level are allowed to change. But at the of low level (see figure 11), of course must be taken into
beginning and end of the I2C bus exception account to build and maintain time (details please
(details see the start and stop condition). Some other refer to table 7). When the host sends data to theslave,
serial bus can specify data in the edge of the clock the reply bit is generated by the slave. When the host
signal (along the rising or falling) effectively, it is I2C receives data from the slave, the reply bit is generated by
bus level effectively. Specific sequence diagram as the host.
shown in figure 8.
◎ Slave address
I2C bus does not need additional address
decoder and select signal. Multiple has I2C bus
interface device can be connected to the same (Read)
To read the data
N bytes+ACK
article I2C bus, cattle by device address to Host sends data
(Con firm)
distinguish between them. I2C bus addressing (Disconfirmation )
Host receives data
process is usually the first byte after starting
conditions which determine the host selection Figure 14: I2C bus host from the basic format of receiving data from the
from the machine, namely the seven addressing machine
address (the other is a 10 addressing address, is
different, the sensor adopts seven addressing 5.4 AM2322 sensor I2C communication protocol
address). The first byte of a definition as shown AM2322 serial interface for I2C bus, completely according
in figure 12, the first byte of the first seven formed to I2C standard protocol addressing, can be directly hung
from the machine address, the least significant bit
on the I2C bus On.AM2322 sensor I2C ADDRESS
(LSB) is the eighth. It determines the direction of
the message, the first byte of the least significant bit (SLAVE ADDRESS) to 0xb8, based on the agreement of
(LSB) is "0", said the main chance to write the I2C standard bus and based on the ModBus protocol,
information to the chosen from the machine; "1", made the unique communication association Discussion
said the opportunity to read information from and reduce the transmission error rate. Micro control unit
machine.
to read AM2322 sensing, please in strict accordance with
the I2C_modbus AM2322 sensors communication protocol
in time sequence.
Slave address
5.4.1 I2C interface description
Figure 12: the first byte after starting conditions
AM2322 digital temperature and humidity sensor as slave,
and the communication mode between the host (user
Send an address, each device in the system after
the starting conditions, head seven if compared microprocessor) adopts the standard I2C bus mode. In
with its own address, device will think it is the order to accurately measure the environmental humidity
host address, as for the receiver or transmitter and reduce the influence of temperature on humidity,
from the machine from machine are determined The AM2322 sensor will automatically turn into a dormant
by the R/W bit. Host is the master device, it does
not require the device device address, and other state during non-working period to reduce the work
devices belong to from the machine, to have the consumption and reduce the influence of the sensor's own
device address.Must ensure that the same article heating on the ambient humidity value. The working mode
I2C on the bus all the address from the Of AM2322 adopts the passive type, that is, after the
machine is the only sure, there can be repeated, or host awakens the sensor through instructions, it sends
I2C bus will not work properly.
corresponding instructions and reads the corresponding
◎ Basic data transmission formats temperature and humidity values. After the
Figure 13 and Figure 14 show the basic formats of communication,the sensor triggers the sub-temperature
I2C's sending and receiving data, respectively. It and humidity collection; Therefore, if the sensor has not
should be noted that, unlike Figure 17, in Figure
been read for along time, please read the sensor twice
13,when the host sends the last byte of data to
the slave,the slave may or may not reply, but consecutively (the minimum interval of two reads is 2S),
either way the host can generate a stop condition. If and take the second value as the latest measured value;
the host detects that the slave is not answering After the acquisition,the sensor will automatically turn to
when sending data to the slave (even including
sleep state. The next time the host needs to read the
the slave address) , the Transmission should be
stopped promptly. sensor again, the sensor should be reawakened. It should
be noted that the maximum time for host communication is
3S from start to finish. If the communication is not
completed within 3S, the sensor will automatically end
(Write)
To send data
N bytes+ACK
the communication and automatically turn to sleep state.
Host sends data (Confirm)
If the host wants to read the sensor again, it needs to send
Host receives data (Disconfirmation ) the wake instruction again.
Figure 13: I2C bus host from machine to send data to the basic format 5.4.2 I2C interface characteristics
This section introduces the AM2322 I2C interface
characteristic of sensor, with sensors to obtain the best
effect of communication, the design, please strictly follow
the design of figure 15 and the conditions of table 6.
www.aosong.com Guangzhou Aosong Electronics Co.,Ltd. Tel:400-630-5378 Version:V1.0 6/16
AM2322 Product Manual
High humidity Equipment model and high position User register 1 high Reserve
and the related request read information; And then give
Low humidity Equipment model and low position User register 1 low Reserve
the execution results(data) to return to the host. Return High temperature Version number User register 2 high Reserve
sensors, sensor the starting signal has been received and Reserve State register Reserve Reserve
with I2C address itself will host response at the same time.
Function code Read the register Preserve data 1 Save data (Address: 10)
The starting address The register start address is 0x00 Preserve data 2 Save data (Address: 11)
Register number Read the register number The host calculated CRC code and the low byte
CRC code in the front (I2C address is not included in the
CRC calculation)
Sensor response returned message formats:
The response from The number
the machine of bytes
Message sent Note Format of message returned by sensor response:
Function code Read the register
The response from The number Message sent
the machine of bytes Note
Returns the Return four register a total of four bytes
number of bytes Function code Write multiplexer registers
Register 1 Contents of address 0x00 (humidity high bytes)
The starting address Save the starting address
Register 2 Contents of address 0x01 (humidity low bytes)
Save the data length The length of data saved by the sensor
Register 4 Contents of address 0x02 (temperature high bytes)
CRC code The sensor computes the returned CRC code,
Register 5 Contents of address 0x03 (temperature low bytes) with the low byte before
8. The resulting CRC register content is: CRC code. Sensor transmission
DATA1:The host sends read/write instructions and data
◎ CRC code of C language calculation code Figure 16: I2C read-write sensor complete example figure
Description: this program before * PTR calculated length
len bytes of CRC code ◎ I2C read-write time sequence decomposition
To read or write sensor, it is necessary, according to
these three steps will not be able to communicate
or won't be able to read the correct number:
Step one: wake sensor Step three: reading data returned or acknowledgments
In order to reduce the humidity error caused by the
heat of the sensor itself, the sensor is in a non- working Send a read/write command, the host needs to wait
state and is in a dormant state. Therefore, to at least 1.5ms, and then send to readsequence,
read the sensor, it must first wake up the sensor before read the data returned sample as shown in figure
sending read and write instructions, otherwise 19. Is important to note that when You read the
the sensor will not respond.It should be noted that data, after sending the I2C address, need to wait at
when the sensor is awakened, the sensor will not least more than 30us again send next serial clock ,
respond to the ACK if the I2C address is sent, but the read data, or communication will appear error.
host must send the clock to confirm whether the ACK
is returned, that is, the ninth SCL clock signal. The
operation to wake up the sensor is as follows:After the
host sends the starting signal plus the starting address,
it waits for a period of time (the waiting time
is at least 800 us, and the maximum is 3ms; If the host
is hardware I2C, there is no need to wait, and hardware Figure19: Example of reading temperature and humidity values
I 2C will automatically wait), and then send
a stop signal. That is: start signal + 0XB8 + wait Host read back the data as follows:
(800us-3ms) + stop 0x03 ( function code ) + 0x04 ( data Length )
+ 0x03 ( high humidity) + 0x39 ( low humidity )
shown in figure 17. 0x39 ( low humidity )+ 0x01 ( high Temperature )
0x15 ( low temperature ) + 0xe1 (CRC check
Code low byte) + 0xFE (CRC check Code high byte);
No
Send confirmation
ACK
Is there an ACK?
Yes
No
Is the data received
Send read and write
complete?
instructions
Yes
No
Is there an ACK? CRC check
No
6.2 Single bus communication protocol
Fixed collection time to?
Release the
Bus
Start signal
trigger an information acquisition, acquisition
end sensor automatically into sleep mode, until
the next communication.
Figure 22: AM2322 single bus communication protocol
After receiving the host start signal, sensor at once from the data The host signal The sensor signal
Data format bus (SDA) string out 40 bits of data, high out first.
Figure 23: AM2322 single bus communication sequence
High humidity resolution is 16 bit, in the former; Value of humidity
Humidity
sensor series was 10 times higher than the actual humidity value.
Note: the temperature and humidity of the host from AM2322 read data is always the
lastmeasurements, such as measuring two intervals of time is very long, please read
The temperature resolution is 16 bit, high in the former; Series of two consecutive times for the second time to obtain the value of the real-time temperature
temperature sensor was 10 times higher than the actual and humidity value, at the same time, the minimum time interval between
temperature value, the temperature is highest (Bit15) is equal to 1 two reads 2S.
Temperature for negative temperature, highest temperature (Bit15) is equal to 0
means positive temperature;In addition to the highest temperature Table 10: Single-bus signal characteristics
(Bit14Bito) temperature.
Parity bit
Parity bit = humidity high + humidity low + temperature high + Symbol Parameter Min Typ Max Unit
temperature low
Tbe Host initial signal pull down time 0.8 1 20 ms
mS
Table 9: AM2322 communication format specification Tgo Host releases bus time 1
20 30 200 us
μS
The format signal of "0" bit and "1" bit is shown Read the deviceRead
40 data continuously
in Figure 25:
Bit data “0” signal Bit data "1" signal
Check the error
Data validation
Waiting (fixed
acquisition cycle)
No
AM2322 data bus SDA output after 40 data, keep the Figure 26: single bus read flow charts
output low level 50 microseconds to input state, because
the pull-up resistance to high level. AM2322 internal
heavy environmental temperature and humidity
measurement data at the same time, and record the data,
the end of the test records, single chip
microcomputer automatic enter a dormant state. MCU
only after receiving the host start signal, to awaken the
sensors, into the working state.
Note: SLA=I2C address:0xB8. In the table, CRC is the check bit, CRC is 16 bits, low byte
before, high byte after.
Return error code: 0x80: function code is not supported 0x81: Reads the illegal address
0x82: Out of write data range 0x83: CRC check error 0x84: write prohibited.
7 Environmental stability
There are labels on the PVC packing pipes,
If the sensor is used in equipment or machinery, as shown in Figure 29.
make sure that the sensor used for measurement
senses the same conditions of temperature and Temperature and humidity sensor
humidity as the sensor used for reference. The Model No. :AM2322 Quantity: 50PCS
AM2322 sensor is tested in accordance with the
Ozon corporate standard for temperature and Figure29: AM2322 packing label on the tube
humidity sensors . The performance of the sensor
Under other test conditions is not guaranteed and
cannot be considered as part of the sensor's
performance. In particular, no promises are made
with respect to the specific conditions required by
the user.
8 packaging
8.1 Tracking information
All the AM2322 sensors have laser markings on
Their surfaces, as shown in Figure 27.
AM2322
SN:xxxxxxxxx-x
Version information
Date Version Page Modify
2021/01 V1.0 1-16 The first version
Attention
Do not apply this product to safety protection Our company provides 12-month (1-year) quality
devices or emergency stop equipment, as well as assurance for buyers of its products (calculated
any other applications that may cause personal from the date of delivery) based on the technical
injury due to the failure of the product. This product specifications in the data manual of the product
cannot be used unless there is a special purpose published by Aosong . If the product is found to be
or with an authorization to use it. Please refer to defective under warranty. our company will provide
the product data sheet and Application guide free maintenance or replacement. Users need to
before installing processing, using or maintaining satisfy the following conditions :
the product. Failure to comply with this • Notify our company in writing within 14 days after
recommendation may result in death and serious the defect is found.
bodily injury. • The defect of this product will help to find out the
deficiency in design, material and technology of our
If the Buyer intends to purchase or use the Aosong product.
products without any application license and • The product should be sent back to our company at
authorization , the buyer shall bear all the buyer's expense.
compensation for personal injury and death • The product should be within the warranty period.
resulting therefrom, and shall not claim for Our company is only responsible for the defective
compensation including various costs, products which are used in the occasions that meet
compensation fees, lawyers, etc. Expenses and so the technical requirements of the product . Our
on with the managers and employees of Aosong company makes no warranties or written
Company, as well as subsidiaries , agents , representations regarding the use of its products in
distributors, etc. special application occasions at the same time, the
company does not make any commitment to the
reliability of the products applied to products or
Due to the inherent component design , it is
circuits.
sensitive to static electricity. In order to prevent the
damage and the reduction of the product's Copyright ©2021, ASAIR. ®
performance caused by static electricity, the
necessary anti-static measures should be taken
when applying this product.