Coder Social home page Coder Social logo

sqmah / hydropal-arduino Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 3.0 2.38 MB

The Arduino aspect for the Hydropal intelligent water bottle.

Home Page: http://hydropal.rchk.edu.hk

License: MIT License

Arduino 100.00%
water arduino bottle bluetooth water-bottle flow-rate-sensor

hydropal-arduino's Introduction

Hydropal: Arduino Branch

Description

This is the repository Arduino code for the Hydropal smart water bottle JA company. The code will primarily allow the Arduino Pro Mini board to read the ml/sec of liquids going though the nozzle of the bottle in order to measure the millitres of water that a person drinks throughout the day. It also syncs that data to a mobile device.

Code for the water bottle itself is in the 'Hydropal' folder!

Usage

Detailed instructions can be found here: https://github.com/Hydropal/Hydropal-Arduino/wiki

Current Functionality

  • Checks sensor reading every second to find ml/sec passing through sensor
  • Adds sensor reading to total ml of liquid consumed throughout the day
  • Reset total counter midnight every day
  • Update correct date and time over Bluetooth
  • Update user preferences over Bluetooth
  • Send multiple day data over Bluetooth
  • Pulsing LED to remind user to sync
  • Blinking LED to remind user to drink
  • Proper sleep wake to control LED
  • Adjusts internal data to reflect time changes and disreprencies (should work in different timezones)
  • Checks if sync data is valid

Deprecated Functionality

  • LED indicators for total volume consumed, for 5 LEDs (present in Alpha 2.0)

To-do

  • Flow rate calibration

Changelog

Release 1.0

  • Checks if time from device mismatches internal clock and shifts volume array backwards and forwards as necessary
  • Checks if data sent from device is corrupted over transmission and should help prevent errors that require a hard reset
  • Change baud rate to 38400 instead of 112000 to lower chances of data corruption during transmission

Alpha 6.0

  • Arduino checks for the largest value and sends it back to the device
  • LED pulses when need sync
  • LED blinks when need drink

Alpha 5.0

  • Groundwork for sleep wake times
  • Groundwork for pulsing LED
  • Multiple day data is sent and reset

Alpha 4.0

  • Data is sent to mobile device over Bluetooth
  • Data from mobile device is parsed: things such as time and user preferences are updated

Alpha 3.0

  • Water consumed is now reset every midnight

Alpha 2.0

  • LEDs can indicate how much has been consumed, one for each 1 L
  • LEDs in progress of being filled up blink

Alpha 1.0

  • Initial release
  • Measures flowrate in ml/sec and adds up to total water consumed

hydropal-arduino's People

Contributors

sqmah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.