Giter VIP home page Giter VIP logo

scriptbuzz / aws-iot-raspi-sensors Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 130 KB

Using AWS IoT, ingest environmental and motion sensors data from a Raspberry Pi SenseHAT, then using AWS IoT Rules, store in DynamoDB, execute Lambda to test sensor values, and send notifications via SNS.

License: MIT License

Python 100.00%
aws-iot aws-lambda aws-dynamodb aws-apigateway python raspberrypi

aws-iot-raspi-sensors's Introduction

aws-iot-raspi-sensors

In this project I use the AWS IoT Core service to monitor and control a Raspberry Pi, over the internet, based on readings of environmental and motion sensors built into the Sense HAT. The Raspberry Pi has built-in support for WiFi which allows it to be connected over the internet to AWS services. The Sense HAT has an array of sensors including: gyroscope, accelerometer, magnetometer, temperature, barometric pressure, and humidity. Additional sensors can be attached to the Raspberry Pi.

The values of sensor readings are passed from the Raspberry Pi it via an MQTT topic subscribed to by the AWS IoT Core service. An IoT Rule routes the MQTT topic values to SNS, DynamoDB, and Lambda. Lambda then sends back control commands to the MQTT topic when a sensor value goes above or below a certain threshold, set by the developer.

The payload containes the following data items:

  • SENSOR_TYPE = sensor type
  • VALUE = sensor reading
  • NOW: datetime stamp
  • NODE_ID: unique IoT device identifier/serial number

project video demo

aws architecture

  • Refer to the AWS architecture diagram at the end of this page.

project components:

aws account setup

raspberry pi setup

aws-iot-raspi-sensors's People

Contributors

scriptbuzz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

josekurian

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.