Giter Site home page Giter Site logo

htp-camera-extension-firmware's Introduction

DOI

Hack The Planet Camera Trap extension module firmware

This firmware runs on the extension board placed inside existing camera traps (Bushnells)

Requirements:

  • Modified Arduino Core for STM32L0
  • vscode or similar compile tool (Arduino IDE may break things)
  • this repository
  • TheThingsNetwork or other similar LoraWAN network server solution

Secrets

The device LoraWAN comissioning/provisioning is done with a secrets.h file. Put the LoRa keys in secrets.h file and they will automatically be picked up.

#define RELAY_NETWORKKEY "..."
#define RELAY_APPKEY "..."
#define RELAY_DEVICEADDRESS "..."

Pulse counting mode

The pulse counting and reporting mode is built to enable interfacing an external piece of electronics, for example a camera trap and detec actions as well as to control an ouput.

Pulse input does the following:

  • Increment the field in status packet pulse_count
  • When pulse_count is greater then pulse_threshold, send status packet and reset the field. Set to 1 to send data on every pulse or set to 0 to disable.
  • The device trigger sending at most often on pulse_min_interval in seconds, maximum value 65535.

Pulse output does the following:

  • Replicate the input pulse to the output
  • When the sending conditions are met, the output pulse pin is turned on for pulse_on_timeout seconds.

Configuration variables controlling this:

  • pulse_threshold - how many pulses must be received to send a status packet
  • pulse_on_timeout - how long is the pulse output on after threshold reached
  • pulse_min_interval - how often at maximum can a device send a packet on pulse event

The use-case of above implementation is somewhat universal, however tailored at monitoring SD card activity in camera traps and similar devices and turning on these SD cards if they have WiFi capability.

Power consumption

System functions 0x00 - all disabled - sleep only with WDT running

Measured consumption 2uA on average, excludes sending Lora messages.

System functions 0x01 - GPS periodic enabled

Measured consumption 15uA on average, excludes sending Lora messages

htp-camera-extension-firmware's People

Contributors

tsuijten avatar rcwhytock avatar

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.