Git Product home page Git Product logo

blub-o-meter's Introduction

Blub-o-Meter

The objective of the blub-o-meter is to measure fermentation intensity on a fermentation lock by counting the number of bubbles. Reads from a LSM6DS3 accelerometer and converts it to bubbles/time and finally sends this imformation to a server.

Hardware used

  • Raspberry Pi 3 (any version is fine)
  • LSM 6DS3 accelerometer

Installation

Prepare Raspberry Pi

  • configure i2c interface see instructions by adafruit
    • sudo apt-get install -y python3-smbus i2c-tools
    • sudo raspi-config then Advanced Options->I2C->Yes
    • test I2C using sudo i2cdetect -y 1(or sudo i2cdetect -y 0 on a 256MB Raspberry Pi Model B)

Dependencies

  • Adafruit Python GPIO Library see instructions on github -sudo apt-get update -sudo apt-get install build-essential python3-pip python3-dev python3-smbus git -cd externals -git clone https://github.com/adafruit/Adafruit_Python_GPIO.git -cd Adafruit_Python_GPIO -sudo python3 setup.py install

Raw File Format (Version 0)

The values are saved as unsigned little endian values, except for the acceleration values, which are signed.

  • Header:
    • Magic number 0xb100bb100b (5 bytes)
    • Format version (currently 0x000000, 3 bytes)
    • Start timestamp (Unix timestamp in ms, 8 bytes)
  • Any number of entries, each of the following format:
    • Timestamp (# ms since start timestamp, 4 bytes, may overflow)
    • Raw x, y and z acceleration values (2 bytes each)

blub-o-meter's People

Contributors

nick11 avatar

Watchers

Gian avatar James Cloos avatar  avatar

blub-o-meter'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.