Giter VIP home page Giter VIP logo

iot-dontdienowandrun's Introduction

DON'T DIE NOW AND RUN

This project was made as part of an IOT course at the ESGI school, during quarantine.

๐Ÿ Project and goals

We decided to create a connected bracelet to use during a sporting activity in order to control the heart rate.

The primary objective is security: unlike the various connected watches and bracelets that do many things, we put aside other features and design in order to be able to alert the user very visibly of a potential danger.

The bracelet has several LEDs changing color depending on the user's heartbeat: from green for a normal beat to red for an alarming beat. If the heartbeat sounds alarming based on the user's age, an alarm will sound. The user can press a button to stop the alarm.

A mobile application allows the user to create an account and enter its age. It also allows to view reports on the cardiac activity.

๐ŸŒˆ Design

3D Design

We have chosen two push buttons and indicative texts of fairly large sizes to facilitate use and optimize ergonomics. The LEDs are arranged over the entire surface of the bracelet in order to give a very visual account of cardiac activity.

๐Ÿ”ง Technical requirements

Hardware

IOT

Component Quantity Reference
Arduino 1 Nano
Bande 8 NeoPixels 2 WS2812 5050
Piezoelectric speaker 2 Murata 7BB-12-9
Push button 2
Bluetooth card 1 HC-05
Pulse sensor 1 XD-58C
Lipo 1800mAh battery 1

Smartphone

  • Android: minimum SDK version 16, target 28
  • Apple: iOS 8.0

Software

IOT

The IOT software was developed and tested in the TinkerCad editor. All the code is available in this repository, folder arduino-code.

Smartphone

The mobile application is available on Apple and IOS. It was developed with Flutter. All the code is available in this repository, folder app.

๐ŸŽจ TinkerCad modeling

The TinkerCad modeling can be accessed on this link. TinkerCad model

โ›ฝ How it works

Values and calculations

Color variation

The colors of the bracelet depend on the user's PPM. Here is the color range that we have set up:

Color range

Alarm

The alarm is triggered when the PPM are deemed dangerous for the user, depending on their age. We used the Haskell & Fox calculation (1970) : there is a little imprecision with this model but we also do not need a very precise result in our use case. In addition, the formula is not very complex and this facilitates implementation. A push button can be pressed to stop the alarm.

PPM chart

Arduino code explanation

The code is fully commented for better comprehension! Check it in the folder arduino-code of this repository.

๐Ÿ”ƒ Usage

  1. Setup the connected object according to the TinkerCad modeling
  2. Turn on the connected object by pressing the first push button (on/off)
  3. Register with an username, a password and your date of birth
  4. Sign in with the username and password previously filled
  5. Activate bluetooth on the smartphone
  6. Pair with the connected object
  7. You can now use your bracelet while doing sporting activities and view reports on your smartphone!

Mobile app

iot-dontdienowandrun's People

Contributors

csgrdcelia avatar bartholomelebruno avatar

Watchers

James Cloos avatar  avatar

Forkers

omyous

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.