GithubHelp home page GithubHelp logo

pyladieshamburg / getting-started-raspberry-pi Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 14.0 14.24 MB

Collecting data with sensors, storing the data with iota and predicting some stuff

Vim Script 0.01% Python 1.64% Jupyter Notebook 98.35%

getting-started-raspberry-pi's Introduction

getting-started-raspberry-pi

This tutorial will have several parts. As and end result we want to have a web site which show different information from inside our flats: temperature, humidity, dust, light... and which also predict the values.

There are several things that are involved in this project: setting up a raspberry pi, setting up sensors and collecting sensor readings, storing the readings. On the consumer side we will have to read the data, analyse it, display it, train some models, write a website and deploy it.

This will all be done with Python.

Things you will need:

  • Raspberry PI 3 or higher
  • Charger: mini-usb phone charger should work
  • Micro SD card: at least 8G
  • Bread board
  • Sensors, can be the DHT11, or equivalent
  • One LED... just for fun
  • Connecting cables

Setting up your brand new Raspberry Pi

In this part we will just set things up. Follow the instructions in raspberry-pi-setup.

Connecting a sensor to your Raspberry Pi

Using a breadboard and three cables, we'll connect the Raspberry Pi to a DHT11 temperature and humidity sensor. See reading-sensor-data-from-pi for instructions on how to do the wiring. You'll also find a Python script that shows an example of how to get readings from the sensor using the Adafruit_DHT library.

Plotting your sensor readings with matplotlib

Head over to plotting-readings-from-pi if you want to plot the sensor data you collect as a time series graph with matplotlib.

Serving readings from your Pi with flask

In serving-readings-from-pi you find inspiration about how to use Python's web framework flask to deploy a super simple web app that runs locally on your Raspberry Pi and serves the current temperature and humidity.

Storing data from your Pi in IOTA

IOTA is a distributed ledger that allows you to store data as part of zero-value transactions. Store your first transaction by following the instructions in tangle.

Find more details about sending sensor data readings to the ledger in pitangle.

Making predictions with temperature data

The sensor data we collected measures how temperature and humidity change over time. Many important applications rely on modeling time series data like ours, so that predictions and planning can be made for the future.

Learn more about performing analysis and making prediction with your time series data, in analysis.

getting-started-raspberry-pi's People

Contributors

chalendony avatar joweiss avatar marianoju avatar neinkeinkaffee avatar terezaif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.