1300 Henley Court
Pullman, WA 99163
509.334.6306
www.digilent.com
Pmod HYGRO Reference Manual
Revised February 22, 2017
This manual applies to the Pmod HYGRO rev. A
Overview
The Digilent Pmod HYGRO (Revision A) is small relative humidity and temperature sensor. With the TI HDC1080,
you can determine the relative humidity of the environment with up to 14 bits of resolution.
Features:
Relative humidity accuracy ±2%
Temperature sensor accuracy 0.2 °C
Good stability at high humidity
14-bit measurement resolution
Internal resistive heating element
6-pin Pmod connector with I²C interface
Pass-through Pmod host port for daisy chaining
The Pmod HYGRO.
1
Functional Description
The Pmod HYGRO is designed to digitally report the relative humidity and ambient temperature upon request by
the host board. Up to 14-bits of resolution for each sensor may be collected by allowing for longer conversion
times. A resistive heating element can be enabled to drive off condensation that accumulates on the sensor after
being exposed at high humidity conditions.
2
Specifications
Parameter
Power Supply Voltage
Serial Clock Frequency
DOC#: 510-347
Min
2.7
10
Typical
3
Max
5.5
400
Units
V
kHz
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 1 of 6
Pmod HYGRO Reference Manual
Parameter
RH Accuracy
RH Repeatability
RH Hysteresis
RH Response Time
Temperature Accuracy
Sleep Mode Current Draw
3
Value
±2
±0.1
±1
15
±0.2
100
Units
%RH
%RH
%RH
sec
̊C
nA
Interfacing with the Pmod
The Pmod HYGRO communicates with the host board via the I²C protocol. By first sending the 7-bit I²C address of
1000000 (0x40) and then a read/write bit (high/low logic level, respectively), followed by the register address of
interest at a maximum clock frequency of 400 kHz, users can both configure and read from the Pmod
HYGRO. Header J2 on the Pmod HYGRO passes through all of the signals present on the main Header J1 to allow
for the daisy chaining of multiple I²C compatible modules.
3.1
Configuration Register
The Configuration register (address 0x02) allows users to control the resolution of the temperature and humidity
measurements, change the acquisition mode, enable the heater, and more. A table of the 16-bit register,
recreated from Table 4 in the HDC1080 datasheet, is provided below.
Bit Name
Bit Number
Bit Description
RST
[15]
Software reset bit
Reserved
[14]
Reserved
HEAT
[13]
Heater
Bit Values
01
1
0
01
1
0
MODE
[12]
Acquisition Mode
11
01
BTST
[11]
Battery Status
1
TRES
[10]
HRES
[9:8]
Reserved
[7:0]
Temperature
Measurement
Resolution
Functional Description
Normal Operation, this bit self clears
Software Reset
Reserved, must be 0
Heater Disabled
Heater Enabled
Temperature or Humidity is acquired
depending on which register you
choose to read
Temperature and Humidity are
acquired in sequence, with the
Temperature first
Battery voltage (Vdd) > 2.8V (read
only)
Battery voltage (Vdd) < 2.8V (read
only)
01
14 bit
1
11 bit
001
14 bit
01
11 bit
10
8 bit
Reserved
0
Reserved, must be 0
1
This is the default value on power-up or reset.
Humidity
Measurement
Resolution
Table 3. Configuration register description (Address 0x02).
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 2 of 6
Pmod HYGRO Reference Manual
3.2
Temperature and Humidity Registers
The temperature register (address 0x00) and the humidity register (address 0x01) are both 16-bit read only
registers with the 14 MSBs corresponding to the 14-bit maximum resolution for both sensors. The two LSBs (bits
D1 and D0) are always 0 for both registers. As the measurement resolution increases, the corresponding
conversion time for each sensor also increases. A table of typical conversion times from Section 7.5 (Electrical
Characteristics) of the HDC1080 datasheet, is provided below.
Relative Humidity Sensor
8-bit resolution
11-bit resolution
14-bit resolution
2.50 ms
3.85 ms
6.50 ms
Temperature sensor
11-bit resolution
14-bit resolution
3.65 ms
6.35 ms
Table 4. Typical conversion times.
Upon device power-up, the Pmod HYGRO requires at least 15 ms prior to being able to perform a measurement.
To perform a measurement, users need to configure (or accept) the measurement settings in the Configuration
Register, and then trigger the measurement(s) by sending an I²C write transaction along with the address pointer
set to the appropriate register. After waiting the appropriate conversion times listed in Table 4 above, users may
then perform a read transaction, taking advantage of the auto-incrementing pointer address for reading both the
temperature and humidity registers. After the data has been read, users need to wait at least one full second
before performing another read transaction to avoid internal heating of the sensor and the distortion of the
measured temperature and humidity levels.
Note that if a write transaction is performed on either the temperature (address 0x00) or humidity (address 0x01)
registers during a conversion, the current conversion will be aborted and a new one started. If a read is performed
during a conversion, the Pmod HYGRO will respond back with a NACK indicating the measurement result is not yet
available. The typical time that it takes the output of the humidity sensor to show 63% of a step change in humidity
is 15 seconds.
3.3
Quick Data Acquisition
Here is the series of commands to acquire relative humidity and temperature data from the Pmod HYGRO in
pseudo I²C code.
1.
2.
Power on the Pmod HYGRO and wait at least 15 ms.
Call the device ID with a write bit
I2CBegin(0x80); //device ID 0x40 with a write (0) bit
3.
4.
Wait to receive an ACK from the Slave Device
Write the device address that you want to talk to
I2CWrite(0x00); //address 0x00 corresponds to the Temperature Register, the
Humidity register will be auto-incremented to next
5.
6.
7.
Wait to receive an ACK from the Slave Device
Delay at least 12.85 ms (6.35 ms for the Temperature Sensor and 6.50 ms for the Humidity Sensor)
Read 4 bytes from the temperature and humidity registers (two 8 byte samples from each, MSB then LSB)
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 3 of 6
Pmod HYGRO Reference Manual
I2CReadMultiple(4); //read four bytes, sending an ACK to the slave after each
byte received and a NACK after the last byte
8.
Convert the readings into usable data. Note that the two LSBs (D1 and D0) will always be set to a value of
0. Only the upper 14-bits in each register contains the relevant data
𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑡𝑢𝑟𝑒 (℃) =
𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑡𝑢𝑟𝑒 [15: 00]
∗ 165℃ − 40℃
216
𝑅𝑒𝑙𝑎𝑡𝑖𝑣𝑒 𝐻𝑢𝑚𝑖𝑑𝑖𝑡𝑦 (%𝑅𝐻) =
9.
3.4
𝐻𝑢𝑚𝑖𝑑𝑖𝑡𝑦 𝑅𝑒𝑔𝑖𝑠𝑡𝑒𝑟 [15: 0]
∗ 100%𝑅𝐻
216
Wait at least one full second before initiating another reading to avoid internal heating of the humidity
sensor.
Pinout Table Diagram
Header J1
Pin Signal
Description
Header J2
Pin Signal
Description
Jumper Blocks
Jumper State
1
NC
Not
Connected
1
NC
Not
Connected
JP1
Both
Enabled
2
NC
Not
Connected
2
NC
Not
Connected
JP1
Both
Disabled
3
4
SCL
SDA
3
4
SCL
SDA
5
GND
5
GND
6
VCC
6
VCC
Serial Clock
Serial Data
Power Supply
Ground
Power Supply
(3.3V/5V)
Description
2.2 kΩ resistors
enabled on the SDA
and SCL lines
2.2 kΩ resistors
disabled on the
SDA and SCL lines
Serial Clock
Serial Data
Power Supply
Ground
Power Supply
(3.3V/5V)
The Pmod HYGRO is an ideal Pmod to use in long term humidity test application. As a very low power Pmod
between measurements, long term data to measure humidity changes in an environment can easily be collected.
Any external power applied to the Pmod HYGRO must be within 2.7V and 5.5V to ensure that the on-board chips
operate correctly; however, it is recommended that Pmod is operated at 3.3V.
3.5
Timing Diagram
A sample timing diagram for writing to and reading from the Pmod HYGRO taken from the HDC1080 datasheet are
provided below:
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 4 of 6
Pmod HYGRO Reference Manual
Figure 1. Example write to the Pmod HYGRO (from the HDC1080 datasheet).
Figure 2. Example reading from the Pmod HYGRO (from the HDC1080 datasheet).
4
Physical Dimensions
The pins on the pin header are spaced 100 mil apart. The PCB is 1.25 inches long on the sides parallel to the pins on
the pin header and 0.8 inches long on the sides perpendicular to the pin header.
5
Additional Information
The schematics of the Pmod HYGRO are available here. Additional information about the humidity sensor including
communication modes and specific timings of the chip can be found by checking out its datasheet here.
More specific information about how to use the Pmod HYGRO can be found by checking out the additional
resources on the Pmod HYGRO Resource Center.
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 5 of 6
Pmod HYGRO Reference Manual
If you have any questions or comments about the Pmod HYGRO, feel free to post them under the appropriate
section (“Add-on Boards”) of the Digilent Forum.
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 6 of 6
很抱歉,暂时无法提供与“410-347”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+130.499581+15.69976