TH01 ETC2

Document overview

  • Manufacturer or author: Provided By www.digicamel.com(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 7

Technical content

Features

Humidity Range: 20% - 99% .Temperature Measure Range:-50℃- 70℃. .Module Operations Temperature Range: -40℃- 85℃ . Similar I2C Serial Interface . Voltage Provide Range: 2.6V~5.0V

Applications

.Consumer Products .Weather Stations . Humidifiers . Temperature controller . Store Block Diagram App1 Temperature -20℃~70℃ App2 Temperature -50℃~70℃

Temperature and Humidity Module 2012-7-2 Version: 1.4 2 Tel: +86‐755‐86096587 Fax: +86‐755‐86096602 E‐mail: sales@hoperf.com http://www.hoperf.com Recommended Operating Conditions Typical Application Circuit Diagram: Pin Function Descriptions .

Temperature and Humidity Module 2012-7-2 Version: 1.4 3 Tel: +86‐755‐86096587 Fax: +86‐755‐86096602 E‐mail: sales@hoperf.com http://www.hoperf.com Pin Name Pin T ype Function GND 1 G Power Ground SCK 2 I I2C clock input SDA 3 I/O I²C data in put and output VCC 4P power VCC NOTE: 1. The TH01 App temperature under 0℃,the humidity data will keep the last temperature >0℃ data, The humidity sensor will stop work. 2. The TH01 App temperature less than -20℃, The temperature sensor need change to the out induce, The humidity function will cancel, Because the TH01 32.768khz only working >-20 ℃ .Working <-20 the error will too large. A MODE Data Format byte1 byte2 byte3 byte4 tempH tempL humi* crc Byte1 to Byte4 are Hex format Temperature data scale 10 then original data. Negative temperature is complement code TH01 module can option without humidity, at this Case this byte will fix 0x00 B MODE VDD master TH01 SCK SDA SDA SCK TH01 SCK(MODE) SDA(DATA) ASK/OOK RF Module

Temperature and Humidity Module 2012-7-2 Version: 1.4 4 Tel: +86‐755‐86096587 Fax: +86‐755‐86096602 E‐mail: sales@hoperf.com http://www.hoperf.com SCK pin is pull up with internal pull-up resistor. SYN+CODE(data format) RF CODE H/L(US) 0 488/488±20 1 488/1952±50 SYN 488/6958±50 TH01 with two mode A or B mode Option TH01 power on after 1 second start to detect the SCK PIN level PIN level is high; it will work in B mode. SCK pin level must be set high after set mode, At least 3seonds the user can be read data, When in mode A it should be at least 2 seconds interval between two reads. In mode B, each time SCK pin level changed, TX cycle will reset and TX after 60s.After power up and set mode, A mode will directly enter sleep, B mode will enter low power consumption mode after once TX. A mode Communication Step 1. Master output the falling edge signal keep this low level for 500ms to 5 seconds on SCK PIN. 2. Master output one dummy clock which high level pulse width will over 1ms. 3. Master output the clock in its fix rate to get each bit data. 4. When SCK at high, the SDA data is stable. The clock rate is from 5k to 100kbps. 5. Data is 4 bytes, 3 bytes data, and 1 byte CRC checksum. 6. Each byte is the MSB first out. A mode Timing Dummy high Sleep mode >1ms END SCK 500ms<T<5S get data Set_SCK //Before enter sleep mode

Temperature and Humidity Module 2012-7-2 Version: 1.4 5 Tel: +86‐755‐86096587 Fax: +86‐755‐86096602 E‐mail: sales@hoperf.com http://www.hoperf.com sleep(); //sleep Clr_SCK(); //falling edge to wakeup TH01 delay_ms(500); //Low level k eep between 500ms and 5 seconds Set_SCK(); //send_dummy_clock delay_ms(1); //dummy high keep >1ms start_rec_data //After dummy star t the get out data by each clock B mode Function 1. Simple Transmitter ASK or OOK. 2. SCK PIN=high, TH01 will auto transmit data by 60 seconds period. 3. Each RF time it will transmit five bytes preamble code followed by five same frames data. Each frame data format is "SYN + A mode data format”. So each RF time is 168ms~403ms. 4. Any time SCK PIN=high will repeat step2. RF transmit circle rf_cycle rf_time rf_time Five same frames 168ms<rf _time<403ms rf_cycle=60s B mode bit format SYN 488us 6958us B i t 1 488us 1952us

Temperature and Humidity Module 2012-7-2 Version: 1.4 6 Tel: +86‐755‐86096587 Fax: +86‐755‐86096602 E‐mail: sales@hoperf.com http://www.hoperf.com B i t 0 488us 488us 8bit crc algorithm byte crc_algorithm(void) byte i,j,crc_checksum = 0xff; byte data_buf[3]={TEMP_DATA _H,TEMP_DATA_L,HUMI_DATA}; for (i = 0 ;i < 3 ; i++) crc_checksum ^= data_buf[i]; for(j = 0 ; j < 8 ; j++) if (crc_checksum & 0x01) crc_checksum >>= 1; crc_checksum ^= 0x8c; e l s e crc_checksum >>= 1; return(crc_checksum);

Temperature and Humidity Module 2012-7-2 Version: 1.4 7 Tel: +86‐755‐86096587 Fax: +86‐755‐86096602 E‐mail: sales@hoperf.com http://www.hoperf.com TH01 Mechanical Dimension . ( Top View ) (Bottom View) (DIP Type) ( SMD Type ) ( Thickness) Importance Note: HopeRF will change the datasheet without any user permission, but we will update the newest datasheet into our web size, so please keep the checking. http://www.hoperf.com