Skip to content

Commit 070a231

Browse files
committed
Tutorial content update
1 parent 1e65e78 commit 070a231

File tree

1 file changed

+18
-1
lines changed
  • content/hardware/04.pro/boards/portenta-x8/tutorials/datalogging-iot

1 file changed

+18
-1
lines changed

content/hardware/04.pro/boards/portenta-x8/tutorials/datalogging-iot/content.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Data logging with MQTT, Node-RED, InfluxDB and Grafana'
2+
title: 'Data Logging with MQTT, Node-RED, InfluxDB and Grafana'
33
description: 'This tutorial will show you how to set up a local data logging application using an MQTT broker, Node-RED, InfluxDB, Grafana, and the Arduino® Portenta X8.'
44
difficulty: Intermediate
55
tags:
@@ -45,12 +45,29 @@ These four blocks will be running locally on the Portenta X8 board. We will use
4545
- Breadboard and jumper cables
4646
- Wi-Fi Access Point (AP) with Internet access
4747
- ADB or SSH
48+
- Command-line interface
4849
- [Arduino IDE 2.0](https://www.arduino.cc/en/software)
4950

5051
***If you are new to the Portenta X8 board, check out this [getting started tutorial](/tutorials/portenta-x8/out-of-the-box#controlling-portenta-x8-through-the-terminal) on how to control your board using a terminal or command-line interface.***
5152

5253
## IoT Architecture 101
5354

55+
IoT applications and devices are everywhere nowadays, even in places we don't think about there being a device or application connected to the Internet. Rather than a single technology, **IoT is a concept** that refers to the connection of everyday devices, just like your watch, to the Internet and how that Internet connection creates more and different ways to interact with your device and your environment. Interactions between humans and devices or applications create **data** (lots) that must be communicated and processed.
56+
57+
How can we plan, build and deploy IoT solutions? To answer that question, we must think about **IoT architecture**. Due to the different IoT devices and applications that exist and can exist, there is not just one unique architecture for IoT devices and applications. But, we can talk about a base architecture that can be considered as a starting point for every IoT project. This base architecture consists of **three essential layers**: **perception** (or devices), **network**, and **application**. Let's talk more about these layers:
58+
59+
- **Perception layer**: this is the sensor's layer, where data comes from. In this layer, data is gathered with one or more sensor nodes; actuators, that answer to data collected from sensor nodes, are also in this layer.
60+
- **Network layer**: this is the layer where data from sensor nodes is recollected and then transmitted to back-end services, such as databases.
61+
- **Application layer**: this layer is what the device or application user sees and interacts with, for example, a dashboard.
62+
63+
The three-layer IoT architecture can be a starting point for designing and implementing an IoT device or application. In this tutorial, we are going to take this base architecture and set up a data logging application, as shown in the image below:
64+
65+
![IoT application high-level architecture.](assets/x8-data-logging-img_01.png)
66+
67+
In the high-level architecture described in the image above, the perception layer consists of an MKR WiFi 1010 board; this board gathers information from a sensor. The network layer consists of the MQTT broker (Mosquitto), the data forwarder (Node-RED), and the database (InfluxDB). Finally, the application layer consists of a dashboard (Grafana) where information from the sensor node is shown.
68+
69+
Let's start by configuring the MQTT broker!
70+
5471
## Installing Mosquitto
5572

5673
### Testing Mosquitto

0 commit comments

Comments
 (0)