Project tutorial

Arduino Cloud Sensor Tower © GPL3+

Connect a basic sensor station to Arduino Cloud and visualize real time data.

  • 27,990 views
  • 5 comments
  • 97 respects

Components and supplies

About this project

Following this tutorial you will build a little tower with several sensors and connect it to Arduino Cloud to visualize Real time data.

Connect to Arduino Cloud

Create an account and login to Arduino Cloud.

If this is your first time on Arduino Cloud we suggest to follow the getting started flow to download the Arduino Cloud Library and create your first device.

Go ahead, create a new thing and name it "sensorTower"  without quotes.

Now you can create a property.

A property defines the kind of data you want to monitor from the Arduino Cloud dashboard.

Specify:

  • Property name
  • Property type: specify the measurement unit
  • Property policy: specify when you want the data to be sent to the dashboard, either when the property values changes or after certain intervals of time.
  • Update Frequency: If Update Regularly is selected: specify the duration of the intervals.

For this project we will need as many properties as data we want to monitor: Temperature, humidity, gas detection, motion detection and light intensity.

Once you created all the 5 properties, click on the Code button and visualize a pre-filled sketch.

As you can see, the generated code already contains the code necessary to create the ArduinoCloudThing Object ():

Creates the object

ArduinoCloudThing sensorTower; 

Initialize it with the device credentials

sensortower.begin(thingName, userName, thingId, thingPsw, sslClient); 

Enable the debugger (this is optional)

sensortower.enableDebug();

The generated sketch also contains the properties configuration.

  sensortower.addProperty("temperature", FLOAT, R);

In order to change the value of the property you can use

  sensortower.writeProperty("temperature", "val");

Test

Download the generated code and upload it to your board.

!!! Remember to fill in the data required to connect to the network!!!

/////// Wifi Settings ///////
char ssid[] = "";
char pass[] = "";

Switch back to the dashboard view. If everything is working correctly you should see some value changing on your screen. OH YEAH!!!

Connect the Sensors

Connect your sensor to the Arduino following their datasheet. 

To reproduce the exact same setup of this tutorial just look at the wiring on the image below.

The Code

Starting from the code you received in the Arduino Cloud dashboard, all you have to add is the declaration of the pins where the sensors are plugged, and the code necessary to read specific sensors.

Code

The code

Custom parts and enclosures

torretta.stl
torretta.3dm
torretta.3dm
torretta_bottom.stl

Schematics

Schematic
Sensortower bb

Comments

Similar projects you might like

CPU and RAM Usage Monitor (Windows & Linux)

Project showcase by thesahilsaluja

  • 4,881 views
  • 17 comments
  • 14 respects

TFT Graphing: Live History Graphs

Project tutorial by Andrei Florian

  • 942 views
  • 3 comments
  • 12 respects

AWS - Arduino Weather Station

Project tutorial by GilettaStefano

  • 7,339 views
  • 11 comments
  • 27 respects

Arduino Sunflower: An Electronic Sun-Dancer

Project tutorial by SURYATEJA

  • 3,831 views
  • 2 comments
  • 12 respects

Backpack Alarm

Project tutorial by Tomi Chen

  • 3,182 views
  • 12 comments
  • 31 respects

HUD Alarm Clock

Project in progress by Chukwuemeka Ike

  • 200 views
  • 0 comments
  • 1 respect
Add projectSign up / Login