Giter VIP home page Giter VIP logo

babycarriagemonitor's Introduction

BabyCarriageMonitor

Sensors on the baby carriage

This is actually the second version of this project. The previous build is completed and consists of a Rpi3 with three temp sensors and the SenseHAT.

This project is trying to move to a smaller Pi Zero-W with one external temp sensor (ds18b20),the EnviroPHAT and the Adafruit Ultimate GPS v3 (using an external active GPS antenna). Possibly also integrate with the LiPo board as well for better power supply.

The code will also livestream to an InitialState bucket instead of my own monitoring platform at home (which I'd guess not many 'normal' people have build in their home ...)

dashboard example

--> image: Dashboard example processing the data

device

--> image: The device itself, with the active antenna in the back and the ds18b20 temperature sensor on the right

The following sensor inputs are used:

Sensor cmd
temperature (pi)
temperature (enviro)
temperature (ds18b20 sensor headliner)
pressure
heading (enviro motion)
light (intensity, dark-bright)
latitude (gps)
longitude (gps)
speed (gps)
altitude (gps)
heading (gps, north east south west)
satellites (gps, #)
stance (enviro, accelerometer 3-axis)

In order to use the ds18b20, which connects to GPIO 4, the LEDs of the enviroPHAT are not connected (as they also use GPIO 4). So no illumination but we retain the light intensity sensor.

Power usage is 2 Watt (+/- 400 mA), Voltage is 5V, Runtime is 24 hours C = xT C = 0.4 * 24 C = 9.6 amp hours Required minimal 9600 mAh to run for 24h

Muiltple files for multiple goals:

  • stream to Initial State --> vegasmonitor-streamer.py-example
  • stream to Cayenne --> vegasmonitor-mqtt.py-example

The BabyCarriageMonitor currently has a 3G USB dongle attached. An OpenVPN tunnel is automagically started to my network at home essentially making the device a part of my home LAN. Easier remote management.

Currently working on a smaller, more dedicated hardware/code voor the next generation version 3 based on the PyCom platform. PyCom SiPy (bluetooth, WiFi, Sigfox networks), the PyTrack for motion/GPS sensors and the trusty db18b20 temp sensor. By using the Sigfox network , the range is increased to most of Europe but without the cost of 3G data. The platform itself is inherently more low-power.

babycarriagemonitor's People

Contributors

jinjirosan avatar

Watchers

 avatar  avatar

babycarriagemonitor's Issues

Encoding error through Systemd log

UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 16: ordinal not in range(128)

probably from GeoPy locations

Fix separate routine/exception handling to ensure that GeoPy does not crash the thing

Multiple times GeoPy errors (e.g. no address/location) resulted in total stop of dataflow. So fix exception handling to only affect the GeoPy data.

Error data

Aug 27 14:17:53 stokkezero python[1119]: location=geolocator.reverse(coordinates,timeout=10) ## reverse geocode coordinates
Aug 27 14:17:53 stokkezero python[1119]: File "/usr/local/lib/python2.7/dist-packages/geopy/geocoders/osm.py", line 248, in reverse
Aug 27 14:17:53 stokkezero python[1119]: self._call_geocoder(url, timeout=timeout), exactly_one
Aug 27 14:17:53 stokkezero python[1119]: File "/usr/local/lib/python2.7/dist-packages/geopy/geocoders/base.py", line 171, in ...eocoder
Aug 27 14:17:53 stokkezero python[1119]: raise GeocoderServiceError(message)
Aug 27 14:17:53 stokkezero python[1119]: geopy.exc.GeocoderServiceError: <urlopen error [Errno 97] Address family not support...otocol>

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.