Project tutorial

Arduino Cloud Sensor Tower © GPL3+

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

  • 29,684 views
  • 5 comments
  • 110 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

Arduino Bluetooth Basic Tutorial

by Mayoogh Girish

  • 454,629 views
  • 42 comments
  • 236 respects

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 285,502 views
  • 95 comments
  • 671 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 229,318 views
  • 38 comments
  • 236 respects

OpenCat

Project in progress by Team Petoi

  • 195,895 views
  • 154 comments
  • 1,361 respects
Add projectSign up / Login