Giter VIP home page Giter VIP logo

sensorboxes-bat-cave's Introduction

BatCave

Build Status

BatCave is a sattelite (low-power sensor) of the Nature 4.0 project. It is designed to monitor the temperature inside of tree holes in low frequencies (> 1min) over a long period of time without changing the Battery.

Components

The chosen components are listed here, each with it's important features named.

  • ESP32 Board
  • SD Card Breakout Board (Adafruit)
  • PCF8523 Real-Time-Clock (exact measurements without further infrastructure)
  • DS18B20 Temperature Sensors
    • no deviations with long cables (digital protocol)
    • OneWire protocol (simply scaleable)

TTGO LoRa Pinout

Connections

#define ONE_WIRE_BUS 15

#define SD_CS 23
#define SD_SCK 17
#define SD_MOSI 12
#define SD_MISO 13

#define SDA 21
#define SCL 22

The TTGO LoRa provides 3x GND, 2x 5V and 2x 3.3V. Most SD card breakouts, the RTC and the temperature sensors can run on 5V and can therefore be chosen freely. However I'd recommend to use 5V for the temperature sensors, especially when using longer (> 1m) cables.

Operation

The normal operation consists of:

  • initialize all the hardware
  • list and read all connected temperature sensors
  • log the readings to one CSV file per sensor
  • send the readings via WiFi to the next BaumBox
  • fall into deep sleep

If one step fails, this error needs to be logged, and the rest of the operation shall continue, for example:

  • If the SD is not available, the values shall still be send.
  • If the RTC is n/a, the values shall still be logged and send, since a less accurate timestamp can still be assigned at the receiver.

Implementation Details

The TTGO LoRa is kind of picky when using together with an SD breakout, the actual solution is to use multiple SPI busses, the rerouted Hardware-SPI for the SD and a Software-SPI for the SX1278. Details are explained here: http://github.com/jonashoechst/ttgo-lora-sd.

Known bugs

The deep sleep function of the ESP boards is very low power, which can lead to a shutdown of powerbanks (a function useful, when a charging smartphones is filled).

TTGO LoRa Power Consumption

The TTGO LoRa v1 has trouble with power consumption. As discussed in this forum, the CP2102 usb-serial chip is in an active state when turned on and only going to suspend after beeing disconnected from a USB host. Possible fixes are suggested here.

The board will draw ~3 mAh with disabled CP2102 in contrast to ~10 mAh with a suspended CP2102.

     ms, shunt_mV,    bus_V, current_mA,  power_mW,     state
  80305,   -0.290, 3.336000,  -3.100000, 10.000000, suspended
 121786,   -1.020, 3.328000, -10.200000, 36.000000,    active

Also, the SX1276 LoRa modem has a low power mode which ineffective when the TTGO is in deep sleep (resulting from a high pin in deep sleep).

Possible alternatives:

  • Heltec Wireless Stick (~25€)
  • TTGO T-Fox (~25€)

sensorboxes-bat-cave's People

Contributors

jonashoechst avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

markbirss

sensorboxes-bat-cave's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.