Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:remotelab:ume:smartme [2019/10/29 11:17] salvatdien:iot-open:remotelab:ume:smartme [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== SmartMe Network Laboratory: Arduino Nodes 1-5 =====+====== SmartMe Network Laboratory: Arduino Nodes 1-5 ======
 The SmartMe lab is located at the Engineering building of the University of Messina, in Messina, Italy.  The SmartMe lab is located at the Engineering building of the University of Messina, in Messina, Italy. 
  
-==== Introduction  ====+===== Introduction  =====
 Its main goal is to provide a simple testbed of a smart city, mainly focusing on smart environment application scenarios. To this purpose, 6 nodes have been equipped and made available to students for practising in these contexts. These nodes can be framed into the MCU (Arduino) + MPU (Raspberry Pi) category: 5 out of 6 combine an Arduino Uno with a Raspberry Pi 3 b+, the last node is a combo board developed by a spinoff company (SmartMe.io), Arancino, which combines in the same board an Arduino-like MCU (based on an ARM Cortex M0+ @48MHz) and a Raspberry Pi 3 compute module. In this section, we will focus on the 5 pure Arduino nodes and their sensors and actuators. Its main goal is to provide a simple testbed of a smart city, mainly focusing on smart environment application scenarios. To this purpose, 6 nodes have been equipped and made available to students for practising in these contexts. These nodes can be framed into the MCU (Arduino) + MPU (Raspberry Pi) category: 5 out of 6 combine an Arduino Uno with a Raspberry Pi 3 b+, the last node is a combo board developed by a spinoff company (SmartMe.io), Arancino, which combines in the same board an Arduino-like MCU (based on an ARM Cortex M0+ @48MHz) and a Raspberry Pi 3 compute module. In this section, we will focus on the 5 pure Arduino nodes and their sensors and actuators.
  
-==== Prerequisites ====+===== Prerequisites =====
 To approach this laboratory, the student should grasp: To approach this laboratory, the student should grasp:
   * basic MQTT concepts like topics, broker, subscribing and publishing;   * basic MQTT concepts like topics, broker, subscribing and publishing;
Line 11: Line 11:
  
  
-==== Technical details ====+===== Technical details =====
 4 Arduino nodes are Internet-connected by a router through ETH, while the 5th is reachable only by the IoT gateway (RaspPi).  4 Arduino nodes are Internet-connected by a router through ETH, while the 5th is reachable only by the IoT gateway (RaspPi). 
 The Lab configuration is shown in the figure below  The Lab configuration is shown in the figure below 
  
-{{ :en:iot-open:remotelab:ume:umelab.png?500 |UME Distance Lab Nodes 1-5}}+{{ :en:iot-open:remotelab:ume:umelab.png?470 |UME Distance Lab Nodes 1-5}}
  
  
-=== Node schematic ===+==== Node schematic ====
 All Arduino nodes are configured as reported in the following schematic All Arduino nodes are configured as reported in the following schematic
-{{ :en:iot-open:remotelab:ume:nodo.png?850 | Nodes 1-5 schematic}} 
  
 +{{:en:iot-open:remotelab:ume:nodo_verticale.png?330 | Nodes 1-5 schematic}}
  
-=== Sensors ===+ 
 +===== Sensors =====
  
 Each node is equipped with either a DHT11 or DHT22 sensor and a PMS7003 sensor. Each node is equipped with either a DHT11 or DHT22 sensor and a PMS7003 sensor.
Line 57: Line 58:
 [5]https://kamami.com/voltage-level-converters/234535-logic-level-converter-bi-directional.html [5]https://kamami.com/voltage-level-converters/234535-logic-level-converter-bi-directional.html
  
-=== Actuators ===+===== Actuators =====
 There are no mechanical actuators in this laboratory.  There are no mechanical actuators in this laboratory. 
 Each node is equipped with a 2x16 LCD screen and with an RGB led, but it is possible to use only the green light component. Each node is equipped with a 2x16 LCD screen and with an RGB led, but it is possible to use only the green light component.
Line 70: Line 71:
  
  
-=== Software, libraries and externals ===+===== Software, libraries and externals =====
 The following libraries are required to run the example proposed below for the hands-on labs: The following libraries are required to run the example proposed below for the hands-on labs:
   * Liquid Crystal   * Liquid Crystal
Line 99: Line 100:
 </code> </code>
    
-  Then configure your DHT sensor:+  Configure your DHT sensor:
 <code c> <code c>
 #define DHTPIN 8 // Digital pin connected to the DHT sensor #define DHTPIN 8 // Digital pin connected to the DHT sensor
Line 141: Line 142:
 </code> </code>
    
-“platformio.ini” (Project Configuration File) +=== “platformio.ini” (Project Configuration File) ===
 The Project configuration file is named platformio.ini.  The Project configuration file is named platformio.ini. 
 <code> <code>
Line 166: Line 167:
  
  
-=== Communication ===+===== Communication =====
 The user can connect and program the controller of each node by using the Distancelab environment by booking it for the time he needs. The user can use the MQTT protocol. MQTT stands for Message Queuing Telemetry Transport. The user can connect and program the controller of each node by using the Distancelab environment by booking it for the time he needs. The user can use the MQTT protocol. MQTT stands for Message Queuing Telemetry Transport.
  
Line 176: Line 177:
   * receive messages subscribing to a specific topic.   * receive messages subscribing to a specific topic.
  
-{{ :en:iot-open:remotelab:ume:mqtt_-publish_and_subscribe_system_.png?500 |}}+{{ :en:iot-open:remotelab:ume:mqtt_-publish_and_subscribe_system_.png?400 |}}
  
  
-=== Limits ===+===== Limits =====
 At the same time, only one user can program the controller. But all users connected to the Distancelab MQTT broker can read the values if they are being transmitted over MQTT.  At the same time, only one user can program the controller. But all users connected to the Distancelab MQTT broker can read the values if they are being transmitted over MQTT. 
  
  
-==== Support ====+===== Support =====
 gmerlino@unime.it, rdipietro@unime.it  gmerlino@unime.it, rdipietro@unime.it 
en/iot-open/remotelab/ume/smartme.1572347843.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0