Paul Kanz
Published © CC BY-NC-ND

Wireless Temperature and Humidity Sensor with Encryption

Arduino based wireless temperature and humidity sensor, can run for 1 year on single 14505 battery, and data transmission is encrypted.

IntermediateWork in progress1 hour3,870
Wireless Temperature and Humidity Sensor with Encryption

Things used in this project

Hardware components

Moteino
×1
moteino
×1
HopeRF TH02 Humidity Module
×1
Single AA battery holder
×1
3.6V 2.4Ah Li-SOCl2 battery
×1
Custom Moteino Shield from OSH Park
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Indoor Sensor Lite

Eagle Schematic of Indoor Sensor Lite

Code

Untitled file

Arduino
Sample of power savings for MCU
  //  sample of how I'm shutting down the MCU for power-savings
  //
  void setup() {
  //
    //  power on TH02
    pinMode(si7005Vcc, OUTPUT);
    digitalWrite(si7005Vcc, HIGH);
    //
    //  disable heater and enable fast measurement (less time spent sampling)
    Si.disableHeater();
    Si.enableFastMeasurements();
  }
  //
  void loop() {
  //  Turn serial back on
    Serial.begin(SERIAL_BAUD);
    //
    //  turn TH02 back on
    digitalWrite(si7005Vcc, HIGH);
    //
    .....
    //
    //  shutdown devices and idle for ~60 seconds
    Serial.flush();
    Serial.end();
    radio.sleep();
    digitalWrite(si7005Vcc, LOW);
    //
    for (int count = 0; count < 7; count++) {
      LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
    }
  }

Credits

Paul Kanz

Paul Kanz

4 projects • 10 followers

Comments