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
IoT: In the Cloud
  • Challenges & Projects
  • Project14
  • IoT: In the Cloud
  • More
  • Cancel
IoT: In the Cloud
Blog The Windchillator - Arduino IoT Cloud and visualization
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join IoT: In the Cloud to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bernhardmayer
  • Date Created: 25 May 2019 1:49 PM Date Created
  • Views 928 views
  • Likes 3 likes
  • Comments 0 comments
  • visualization
  • arduino iot cloud
  • p14 mkr 1010
  • iotcloudch
  • windchillator
  • google sheets
  • arduino mkr wifi 1010
Related
Recommended

The Windchillator - Arduino IoT Cloud and visualization

bernhardmayer
bernhardmayer
25 May 2019

Arduino IoT cloud

 

Connecting a Arduino to the Arduino IoT Cloud is very simple and straight forward. As long as you have the right Arduino board. At the moment there are only Arduino MKR 1000, Arduino MKR WIFI 1010 and Arduino MKR GSM 1400 supported. I have an Arduino MKR WIFI 1010 so I am fine. To connect it with the Arduino IoT Cloud you just have to follow the following tutorial:

 

https://create.arduino.cc/projecthub/133030/iot-cloud-getting-started-c93255?f=1

 

This tutorial shows you how to connect your Arduino to the cloud, how to send data from the cloud to the Arduino (turn LED on and off) and how to read data from the Arduino to the cloud (position of potentiometer). For the Windchillator we only need the second part: read data from the arduino and send them to the cloud.

 

Based on the code of the tutorial I made the code for the windchillator

 

https://create.arduino.cc/editor/generationmake/5c127be0-b54c-4e18-8dbf-07686ba31f65/preview

 

This project synchronizes two variables with the cloud: temp and battery.

The float temp stores the temperature in degrees celcius. The temperature is measured by a DS18B20 one wire sensor. The sensor is connected to digital pin 2 of the arduino. I use the OneWire and DallasTemperature libraries to read out the sensor.

The float battery is the second variable and stores the battery voltage in volts. On the arduino board the battery voltage is connected via a resistor devider to an analog_in pin of the microcontroller and you can simply read it out with the command analogRead(ADC_BATTERY).

The code reads the variables and pushes them to the cloud. Then it waits 10 seconds and starts all over again. For my setup this is not optimal and not very energy efficient but it works at the moment. I will improve this in my next blog post.

 

Visualization

 

Now the data of my sensors appears in the Arduino IoT cloud. Unfortunatelly the cloud shows only the last transferred value. For my project I want some data logging as I am very interested in how the temperature and wind speed changes during the day or over several weeks.

Lucky me, Arduino allows to install web hooks which can forward the data to other web services. I decided to use Google Sheets and generate some nice diagrams. There exists also a tutorial which describes that:

 

https://create.arduino.cc/projecthub/Arduino_Genuino/arduino-iot-cloud-google-sheets-integration-71b6bc?f=1

 

Unfortunatelly the google code didn't work right out of the box. I had to do some modifications as described in this forum post:

 

https://forum.arduino.cc/index.php?topic=607020.0

 

With this modification the script worked fine. At the moment, my variables in the Arduino IoT cloud are set that they update every 30 seconds.

image

 

This generates the following diagram in Google Sheets

 

https://docs.google.com/spreadsheets/d/e/2PACX-1vSOGzCT7BEk8IgMpG9ud4x3UumjCM7edkwCKBHhP8UqPW17A4hIjuDyoV82jdNPti6VgoObs…

 

What's next

At the moment I am a little bit unhappy with the power consumption of the arduino board because I want to run it off a battery for weeks and months without charging. I will show you in my next blog post, what you can do about this.

  • Sign in to reply
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