Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

Components and supplies

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring
Arduino MKR1000
×1
Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring
DHT22 Temperature Sensor
×1
Seeed Grove PIR sensor
×1
Seeed Grove Gas Sensor (MQ3)
×1
Adafruit TSL2561 Digital Luminosity/Lux/Light Sensor Breakout
×1

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.

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

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.
Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

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.

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

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!!!

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

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.

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

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.3dm

Schematics

Build a Sensor Tower with Arduino Cloud: Temperature, Motion & Gas Monitoring

Manufacturing process

  1. K30 CO2 Sensor: Real‑Time Indoor Air Quality Monitoring
  2. Build a Digital Stadiometer: Track Your Height with Arduino and Laser Sensor
  3. Integrating a DFRobot Capacitive Fingerprint Sensor with Arduino or ESP8266
  4. Smart Motion-Activated Water Gun Built with Arduino Nano
  5. Compact Arduino Radar System with HC‑SR04 Ultrasonic Sensor & 1.8" Display
  6. Real‑Time IoT Pressure Monitoring with MKR GSM, Arduino Cloud, and Google Sheets
  7. Arduino Nano Fingerprint Sensor Project – Step‑by‑Step Tutorial
  8. Arduino-Based Indoor Air Quality & Comfort Sensor Kit
  9. Build an IR Sensor Project with Arduino UNO – Simple Guide
  10. SmartAgro: Advanced IoT Solutions for Precision Farming