element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Hydration Tracking Project Idea (Help?)
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 389 subscribers
  • Views 550 views
  • Users 0 members are here
Related

Hydration Tracking Project Idea (Help?)

zealee
zealee over 5 years ago

Hello there! Hope you are all staying safe.

 

I have an idea for a project, I happen to have a few components that a friend gave to me to tinker with during this time and I had an idea for a small project. My coding abilities are lacking but I am looking forward to learning through this project.

 

The idea is for a Hydration tracking button that is connected through wifi.

 

I have a WeMos D1 Mini ESP8266 Development board that may be suited well for this. Along with an RGB Led and a simple push button.

 

Ideally I would like to track the amount of water (say a set amount from a 700ml bottle) that drink in a day. I would set the LED to change color at a specific time as to when you need to drink water again and then change when you press the button.

Perhaps a double press would remove an entry in case it was entered by accident.

 

This project may be a little to complicated for me, but I am curious as to where this community would get me started!

 

Looking forward to any help! take care!

  • Sign in to reply
  • Cancel

Top Replies

  • beacon_dave
    beacon_dave over 5 years ago +2
    What are you planning on doing with the Wi-Fi side of it if anything ? To get started you may want to think of breaking this down into a number of simpler steps e.g.: - reading the state of a switch as…
  • fmilburn
    fmilburn over 5 years ago in reply to zealee +2
    There are a number of options for storing and displaying data. For example, Adafruit IO is an easy to use and free but limited service that I have used: https://io.adafruit.com/
  • zealee
    zealee over 5 years ago in reply to beacon_dave +1
    Thank you for the post, and the great resources! For the Wi-Fi I think it would be a great option to interface with some sort of back end that can track the input and plot it out - perhaps like a spreadsheet…
Parents
  • beacon_dave
    beacon_dave over 5 years ago

    What are you planning on doing with the Wi-Fi side of it if anything ?

     

    To get started you may want to think of breaking this down into a number of simpler steps e.g.:

    - reading the state of a switch as an input

    - controlling LEDs as outputs

    - using a timer to keep track of the time interval

    - communicating over Wi-Fi

     

    Jeremy Blum did a tutorial series here on Arduino which may be of some help to get you started

    Jeremy Blum Arduino Tutorials

     

    He's since published a book covering similar ground, which was recently revised.

    https://www.wiley.com/en-us/Exploring+Arduino%3A+Tools+and+Techniques+for+Engineering+Wizardry%2C+2nd+Edition-p-97811194…

     

    There is a resource site here with the videos for the book:

    https://www.exploringarduino.com/content2/

     

    Later on, if you want to start using the Wi-Fi aspect you may want to get yourself a copy of Tom Igoe's 'Making Things Talk'.

    http://shop.oreilly.com/product/0636920031369.do

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • zealee
    zealee over 5 years ago in reply to beacon_dave

    Thank you for the post, and the great resources!

     

    For the Wi-Fi I think it would be a great option to interface with some sort of back end that can track the input and plot it out - perhaps like a spreadsheet.

     

    Is there a way to store this data? I was looking at Blynk as well and that looked interesting!

     

    Thanks!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • zealee
    zealee over 5 years ago in reply to beacon_dave

    Thank you for the post, and the great resources!

     

    For the Wi-Fi I think it would be a great option to interface with some sort of back end that can track the input and plot it out - perhaps like a spreadsheet.

     

    Is there a way to store this data? I was looking at Blynk as well and that looked interesting!

     

    Thanks!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • milosrasic98
    milosrasic98 over 5 years ago in reply to zealee

    For the Wi-Fi side of things If you want to use something pretty straight forward I would recommend ThingSpeak (https://thingspeak.com/ ), I've used it in the past with multiple platforms, from Raspberry to standalone ESP8266-07 and it has worked great for me, there are a lot of tutorials you can find online, you can check in one of my blogs ( S.H.E.L.F. V2 ) if you want to see how I did it with the ESP module, here is how the stored data looks online:

    image

    If I'm correct, you can also download that data and do with it what you want, but it's limited to something like last 8000 entries, there is also an app for Android on the Google Play store which can show you the data on your phone. There is one alternative I also know of, but haven't used yet, so I really can't say how good it is, and that is http://dweet.io/  . You've also mentioned Blynk which can certainly easily be used for this with your board, they have amazing documentation on their website, and it's really easy to get started, if all you're looking at is to show the data on an app.

     

    Milos

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • fmilburn
    fmilburn over 5 years ago in reply to zealee

    There are a number of options for storing and displaying data.  For example, Adafruit IO is an easy to use and free but limited service that I have used: https://io.adafruit.com/

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • beacon_dave
    beacon_dave over 5 years ago in reply to zealee

    There are a number of ways potentially to store the data.

     

    Usually you will find some EEPROM storage on the microcontroller device that you are using however this can be quite small so not suited to large quantities of data but in some cases may be ok for what you need.

     

    If you want more storage for data logging, then you may want to add a SD memory card onto your device. I recall one tutorial in the Jeremy Blum series (linked above) uses this approach to log location data from a GPS satellite receiver in a .csv format file which can then be opened in a spreadsheet application.

     

    You can consider wireless methods but this tends to require you to be within range of an appropriate  network in order to be able to transfer the data somewhere else, or at least store locally until you come back in range then upload. In some cases you may want to pair your device using the likes of Bluetooth to a mobile phone which can use the mobile phone data network to then transfer it somewhere else. There is also the likes of LoRaWAN radio networks which can permit relatively small amounts of data to be transmitted quite long distances...

     

    You could use a cloud based IoT service to store the data or you could send it to a second dev board located at home or in an office.

     

    May also be of interest, 'The Official ESP32 Book' by Dogan Ibrahim has an example of using a ESP32 dev board to send the data from a humidity + temperature sensor to the ThingSpeak cloud service.

    https://www.elektor.com/the-official-esp32-book

    The ESP32 is a slightly enhanced version of the ESP8266 device you currently have.  

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube