element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Remote Monitoring & Control
  • Challenges & Projects
  • Project14
  • Remote Monitoring & Control
  • More
  • Cancel
Remote Monitoring & Control
Blog Assaulting the cloud: uploading fitness data to IoT (part II)
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Remote Monitoring & Control requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: andyforeverest
  • Date Created: 11 Jul 2019 6:57 PM Date Created
  • Views 473 views
  • Likes 6 likes
  • Comments 2 comments
  • remotemonitoringcontrolch
  • remotemonitorcontrolch
Related
Recommended

Assaulting the cloud: uploading fitness data to IoT (part II)

andyforeverest
andyforeverest
11 Jul 2019
image

Remote Monitoring & Control

Enter Your Electronics & Design Project for a chance to win up to a $200 Shopping Cart of Product!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

Assaulting the cloud: uploading fitness data to IoT

 

The hardware is pretty straight forward:

 

a. power:

- 18650 battery

- a TP4056 battery-charger unit;

- a DC-DC boost convert to 5V.

 

b. controller:

- a ESP8266 D1 mini board.

 

c. display and user interaction:

- a regular 1602 LCD (HD44780 controlled);

- a PCF8574ATPCF8574AT I2C adapter.

- UPLOAD button;

- SELECT button - to select between displaying mode: either TIME, CALORIES, DISTANCE, RPM or ALL (this is not yet implemented). Currently ALL are displayed at once;

- UP and DOWN buttons - to increase/decrease number of minutes for workout - it is not yet implemented.

 

I have improvised a shield for D1 mini: all signals from buttons and LCD come to the shield via 10-pin flat ribbon cable. This way I can detach the parts of the console and open it quite easily. Also on the shield I have two connectors: one for the sensor and one for the POWER switch.

 

Routing the wires inside the console enclosure and fitting everything inside proved to be a more challenging than I originally thought. I see how easily (and more elegant) it would have been to 3D print an enclosure especially for this.

 

As far as software is concerned:

 

- the bike can measure the time for workout, distance traveled, RPM, average speed for the whole workout (meters/seconds);

- all the data is uploaded to Thingspeak once the UPLOAD button is pressed;

- since the ESP8266 is located in a place that is not easily accesible, OTA (Over The Air) updating is included in the software.

 

 

What needs to be added:

 

-  calories measurement;

-  use a bigger font to display one of the metrics;

-  different predefined workouts (selectable).

 

Pictures of the console (this is the back side of the console, the side that is not visible to the user): the ribbon coming from inside the console, the sensor wires and the power switch wires.

 

image

 

For charging the battery:

image

 

Data on Thingspeak:

 

image

  • Sign in to reply

Top Comments

  • dubbie
    dubbie over 3 years ago +1
    Looks interested. Am I right in thinking this is some sort of fitness/torture machine? I prefer the lying down in the sun approach to getting fit as I find it works relatively well if you don't mind putting…
  • andyforeverest
    andyforeverest over 3 years ago in reply to dubbie +1
    "Torture machine" (also known as "Satan's Tricycle")! Your approach sounds more fun!
  • andyforeverest
    andyforeverest over 3 years ago in reply to dubbie

    "Torture machine" (also known as "Satan's Tricycle")! Your approach sounds more fun!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 3 years ago

    Looks interested. Am I right in thinking this is some sort of fitness/torture machine? I prefer the lying down in the sun approach to getting fit as I find it works relatively well if you don't mind putting on a bit of weight. I especially prefer the five star hotel on a Barbados beach approach where they bring the drinks and ice-creams directly to you on the beach, unasked!

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube