GithubHelp home page GithubHelp logo

sorabhgandhi01 / smart-environment-monitor Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 614 KB

Designing and Implementing a "smart" environment monitoring device using the BeagleBone Green development board along with two offboard sensors

C 98.00% Makefile 2.00%
linux device-driver beaglebone-green-wireless i2c interprocess-communication message-queue synchronization mutex-lock unit-testing

smart-environment-monitor's Introduction

            **SMART ENVIRONMENT MONITORING DEVICE**

INTRODUCTION

A Multithreaded Application for BeagleBone Green (Linux) using two offboard sensors (Temperature sensor & Light sensor). The project consists of 5 threads in total. There is 1 parent thread which is the main task. The main task spawns 4 threads, namely Temperature Thread, Light Thread, Socket Thread and Logger Thread.

Main Thread: This thread/task is responsible to keep a check on all of its child threads(ALIVE/DEAD).If the main thread dies or is terminated, it gracefully closes all the threads and terminates the program. Temperature Thread: This thread/task is responsible for communicating with the TMP102 temperature sensor. Light Thread: This thread/task is responsible for communicating with the APDS9301 light sensor. Socket Thread: This thread/task is responsible for connecting with remote clients in order to provide them with Temperature & Lux data as and when requested by the client. Logger Thread: This thread/task is responsible for logging all the data/error messages/debug messages/information messages to a log file.

PROJECT FOLDER

|- doc
.....|- Project Architecture.jpg
.....|- Project1Report.docx
|- include
.....|- i2c_helper.h
.....|- led.h
.....|- light_sensor.h
.....|- light_task.h
.....|- logger_task.h
.....|- main_task.h
.....|- socket_task.h
.....|- temp_task.h
.....|- temperature_sensor.h
|- src
.....|- i2c_helper.c
.....|- led.c
.....|- light_sensor.c
.....|- light_task.c
.....|- logger_task.c
.....|- main_task.c
.....|- socket_task.c
.....|- temp_task.c
.....|- temperature_sensor.c
|- test
.....|- logger_task_test.c
.....|- light_sensor_test.c
.....|- temperature_sensor_test.c
|- Makefile
|- README.md

BUILD AND RUN STEPS

TBD

smart-environment-monitor's People

Contributors

omraheja avatar sorabhgandhi01 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.