This board is a version of our generic Battery-board which includes a TMP36 temperature sensor from Analog Devices. The TMP36 sensor is perfect for environmental measurements since it can measure either positive and negative temperatures (from -40°C to 150°C) providing a good precision (0.1°C) and a decent accuracy (±2°C over temperature) for most applications. Figure 1 : Battery-board with TMP36 temperature sensor for wireless applications If you are assembling this board by your own, remove R3, marked with the label "DHT 10K". Once assembled, you need to program a panStamp with our sample temphumpress application compiled with the TEMP definition enabled from sensor.h: /** * Type of sensor. Uncomment only one of these options: TEMP, TEMPHUM or * TEMPPRESS */ define TEMP 1 // Temperature sensor (TMP36) //#define TEMPHUM 1 // Temperature + Humidity sensor (DHT11 or DHT22) //#define TEMPPRESS 1 // Temperature + Pressure sensor = BMP085
By default, temphumpress takes Vcc as the actual battery voltage. However, all battery-boards have Analog 7 pin (panStamp 12th pin) directly connected to the battery. When using this application on a Battery-board, we advise enabling battery monitoring via the Analog 7 pin. From temphumpress.ino we have to uncomment the VOLT_SUPPLY_A7 definition: /** * Uncomment if you are reading Vcc from A7. All battery-boards do this */ #define VOLT_SUPPLY_A7 Figure 2: Battery-board-TMP36 with panStamp and AA battery Figure 3 : TMP36, connection with panStamp As you can see, the TMP36 is directly powered from the Arduino digital pin 15 (Analog 1). This lets the panStamp unpower the sensor whilst in sleep mode, reducing the current consumption to the maximum. For any other hardware reference please refer to our generic Battery-board product. Firmware-side, when programmed with our sample temphumpress application, the board periodically sends temperature readings according to the value programmed in the TX_INTERVAL register, saved in EEPROM. This interval is 255 (0xFF) by default in "fresh" panStamps so you will need to program your desired interval after programming the module for the first time. After transmitting the reading, the panStamp enters the sleep mode, disconnecting most peripherals until the next transmission and hence drastically reducing the current consumption. |
Products >