04-06-2016, 11:39
Hi all
I've been building my boards slowly over the last couple of weeks (a few other things have been getting in the way). Tonight I gave everything a test run. The RX unit and WD unit appear to function fine at this early stage. The TX unit functions (TX led flashes every 5 or so seconds) but the temperature and humidity don't report correctly. The serial monitor gives me this output in debug mode:
DataPacket ID0: 161,0,-31272,-31272,0,0
Sensor 0 - Temp: -312.72 Hum: -312.72
Sensor 1 - Temp: 0.00 Hum: 0.00
The sensor is one of these:
http://www.ebay.com.au/itm/1PC-HTU21D-Te...SwGvhUEriX
I purchased 2. One is working just fine in the RX unit, the other is in the TX unit and gives the weird temperatures. If I swap them over, the RX unit still reports okay and the TX unit still reports incorrectly.
I have it configured as:
// --------------------------------------------------------------------------------------
// Define type of Temperature / Humidity sensor used as Sensor 0 and / or Sensor 1
// --------------------------------------------------------------------------------------
#define TH_Sensor0 1 // [SENSOR 0] - 0 for SHT2x sensor, 1 for HTU21 sensor, 9 for Not Used
#define TH_Sensor1 9 // [SENSOR 1] - 0 for SHT1x sensor, 1 for DHT22 sensor, 9 for Not Used
As the HTU21D has both SHT21 and HTU21 markings, I also tried
#define TH_Sensor0 0
but the unit seems to lock up. The TX led only gets through a couple of flashes (then no more) and nothing reports in Serial Monitor.
Any help would be appreciated.
I also hooked up the Davis anemometer. Wind direction seems to come through okay, but nothing comes up for wind speed.
Also, I understand that I have to adjust R6 to 10k. Where do I measure across for this reading?
Cheers
Graeme
I've been building my boards slowly over the last couple of weeks (a few other things have been getting in the way). Tonight I gave everything a test run. The RX unit and WD unit appear to function fine at this early stage. The TX unit functions (TX led flashes every 5 or so seconds) but the temperature and humidity don't report correctly. The serial monitor gives me this output in debug mode:
DataPacket ID0: 161,0,-31272,-31272,0,0
Sensor 0 - Temp: -312.72 Hum: -312.72
Sensor 1 - Temp: 0.00 Hum: 0.00
The sensor is one of these:
http://www.ebay.com.au/itm/1PC-HTU21D-Te...SwGvhUEriX
I purchased 2. One is working just fine in the RX unit, the other is in the TX unit and gives the weird temperatures. If I swap them over, the RX unit still reports okay and the TX unit still reports incorrectly.
I have it configured as:
// --------------------------------------------------------------------------------------
// Define type of Temperature / Humidity sensor used as Sensor 0 and / or Sensor 1
// --------------------------------------------------------------------------------------
#define TH_Sensor0 1 // [SENSOR 0] - 0 for SHT2x sensor, 1 for HTU21 sensor, 9 for Not Used
#define TH_Sensor1 9 // [SENSOR 1] - 0 for SHT1x sensor, 1 for DHT22 sensor, 9 for Not Used
As the HTU21D has both SHT21 and HTU21 markings, I also tried
#define TH_Sensor0 0
but the unit seems to lock up. The TX led only gets through a couple of flashes (then no more) and nothing reports in Serial Monitor.
Any help would be appreciated.
I also hooked up the Davis anemometer. Wind direction seems to come through okay, but nothing comes up for wind speed.
Also, I understand that I have to adjust R6 to 10k. Where do I measure across for this reading?
Cheers
Graeme


