Giter Site home page Giter Site logo

jscrane / tinysensors Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 5.0 376 KB

Environmental sensors with ATtiny84, nrf24l01+ and Raspberry Pi

Makefile 2.10% C++ 48.43% Shell 3.41% Python 4.44% Perl 16.59% HTML 9.45% Clojure 15.06% C 0.53%
attiny raspberry-pi sketches eagle arduino nrf24l01 rf24

tinysensors's Introduction

tinysensors's People

Contributors

jscrane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tinysensors's Issues

Tinysensor sketch improvements

  • remove pinMode for A1 (not needed)
  • remove setAutoAck (not needed)
  • constants for ports
  • pinMode(A1, INPUT_PULLUP)
  • fix sensortest sketch
  • setMaxRetries (to save batteries) --- use sensortest
  • use Interrupted instead of sleepy

lcd_weather updates

  • scroller for current description
  • rainfall omitted if none
  • min omitted if none
  • lcdproc server from command-line

improve rf24 bridge functionality

Network with just sensors and esp8266 bridge:

  • bridge web-config manages sensor id->name mapping
  • bridge sends sensor messages to external MQTT server
  • Pi provides MQTT server and manages external display

Sleep longer when humidity is high

Notice that battery life is significantly worse when humidity is high. Think this is down to 2.4GHz absorption by water molecules.

Test this by sleeping for longer, e.g., 20 mins instead of 5 when humidity is, e.g., > 75%

EEMEM

#include <avr/eeprom.h>

#if defined(NODE_ID)
uint8_t eeprom[] EEMEM = {NODE_ID};
#endif

Could maybe use this trick for retries too?

Clock ATtiny at 1MHz

This will require a new patched optiboot. The current patch assumes the frequency is 8MHz.

See optiboot/bootloaders/optiboot/Makefile.extras.

mqtt-tft graphing sketch

  • multiple graphs (current value, sprite)
  • switching between graphs
  • sensor labels name -> colours
  • current graph title
  • configuring individual graphs
  • 4-bit colour depth
  • graph config: min, max, refresh interval
  • const strings in flash

mux should be more robust

When one of its dependencies dies, mux dies too. This isn't so good because all of the other services depend on it.

It should be more robust, like lcd.

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.