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:u1 [2019/10/26 10:39] pczekalskien:iot-open:remotelab:ume:smartme:u1 [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== IU1: Showing temperature, humidity and dust values on the 2x16 LCD screen ======+==== IU1: Showing temperature, humidity and dust values on the 2x16 LCD screen ====
  
  
-===== Target group ===== +=== Target group ===
 This hands-on lab guide is intended for the Undergraduate but other target groups may benefit from it, treating it as basics for advanced projects. This hands-on lab guide is intended for the Undergraduate but other target groups may benefit from it, treating it as basics for advanced projects.
  
-===== Prerequisites =====+=== Prerequisites ===
  
-==== Liquid Crystal ==== +== Liquid Crystal == 
-For this library, you may refer to the [[en:iot-open:remotelab:ume:smartme:b1|IB1 exercise]]. +For this library, you may refer to the [[en:iot-open:remotelab:ume:smartme:b1|B1 exercise]]. 
  
-==== DHT ==== +== DHT == 
-For this library, you may refer to the [[en:iot-open:remotelab:ume:smartme:b2|IB2 exercise]]. +For this library, you may refer to the [[en:iot-open:remotelab:ume:smartme:b2|B2 exercise]]. 
  
  
-==== PMS7003 ====+== PMS7003 ==
 All the SmartME Network Laboratory Arduino nodes are equipped with a PMS7003 sensor.  All the SmartME Network Laboratory Arduino nodes are equipped with a PMS7003 sensor. 
-This sensor allows measuring the air quality by taking into account the PMx concentration. The working principle of such a sensor are based on producing scattering by using a laser to radiate suspending particles in the air, then collecting scattering light to a certain degree, and finally obtaining the curve of scattering light change with time. In the end, the equivalent particle diameter and the number of particles with different diameters per unit volume can be calculated [1]. +This sensor allows measuring the air quality by taking into account the PMx concentration. The working principle of such a sensor is based on producing scattering by using a laser to radiate suspending particles in the air, then collecting scattering light to a certain degree, and finally obtaining the curve of scattering light change with time. In the end, the equivalent particle diameter and the number of particles with different diameters per unit volume can be calculated [1]. 
 So, the values of PM1.0, PM2.5, and PM10, will be available for our scopes.  So, the values of PM1.0, PM2.5, and PM10, will be available for our scopes. 
  
Line 29: Line 28:
 [3]https://kamami.com/voltage-level-converters/234535-logic-level-converter-bi-directional.html [3]https://kamami.com/voltage-level-converters/234535-logic-level-converter-bi-directional.html
  
-==== Arduino Serial ====+== Arduino Serial ==
  
 This function is used for communication between the Arduino board and a computer or other devices. All Arduino boards have at least one serial port. On Uno pins 0 and 1 are used for communication with the computer. Serial communication on pins TX/RX uses TTL logic levels (5V or 3.3V depending on the board) [4]. This function is used for communication between the Arduino board and a computer or other devices. All Arduino boards have at least one serial port. On Uno pins 0 and 1 are used for communication with the computer. Serial communication on pins TX/RX uses TTL logic levels (5V or 3.3V depending on the board) [4].
Line 39: Line 38:
 [5] https://www.arduino.cc/en/Reference/softwareSerial [5] https://www.arduino.cc/en/Reference/softwareSerial
    
-===== Scenario =====+=== Scenario ===
 First, initialize LCD screen with the labels of temperature (“T”), relative humidity (“H”), and dust particles (“PM10”).  First, initialize LCD screen with the labels of temperature (“T”), relative humidity (“H”), and dust particles (“PM10”). 
 Then, after the sensor detection, next to the labels, the sensor values will be displayed, every 1 second.  Then, after the sensor detection, next to the labels, the sensor values will be displayed, every 1 second. 
Line 50: Line 49:
 [6]https://download.kamami.com/p564008-p564008-PMS7003%20series%20data%20manua_English_V2.5.pdf [6]https://download.kamami.com/p564008-p564008-PMS7003%20series%20data%20manua_English_V2.5.pdf
  
-===== Result =====+=== Result ===
 You should see the values of temperature, relative humidity and dust that are sampled and displayed every 1 second (1000 ms). You should see the values of temperature, relative humidity and dust that are sampled and displayed every 1 second (1000 ms).
  
-===== Start =====+=== Start ===
 There are no special steps to be performed. There are no special steps to be performed.
  
-===== Steps =====+=== Steps ===
  
-==== Step 1 ====+== Step 1 ==
 Include LCD driver library, DHT library and Software Serial library: Include LCD driver library, DHT library and Software Serial library:
    
Line 67: Line 66:
 </code> </code>
    
-==== Step 2 ====+== Step 2 ==
 Instantiate the software controller component for the LCD display. Then set up:  Instantiate the software controller component for the LCD display. Then set up: 
   - 1) the DHTPIN (which refers to the digital pin we use to get the signal);   - 1) the DHTPIN (which refers to the digital pin we use to get the signal);
Line 82: Line 81:
 SoftwareSerial mySerial(9,10);  SoftwareSerial mySerial(9,10); 
 </code> </code>
- +=== Step 3 ==
-==== Step 3 ====+
 Initialize display.  Initialize display. 
 Initialize the DHT sensor.  Initialize the DHT sensor. 
Line 107: Line 105:
 </code> </code>
    
-==== Step 4 ====+== Step 4 ==
  
 Implement loop() to sample and display the values of the temperature, relative humidity and dust on the LCD display, every 1 second: Implement loop() to sample and display the values of the temperature, relative humidity and dust on the LCD display, every 1 second:
Line 155: Line 153:
 </code> </code>
  
-===== Result validation =====+=== Result validation ===
  
 Observe the temperature, relative humidity and dust values shown in the LCD display. The display will refresh values every 1 second. Observe the temperature, relative humidity and dust values shown in the LCD display. The display will refresh values every 1 second.
    
-===== Platformio.ini =====+=== Platformio.ini ===
 <code> <code>
 [env:uno] [env:uno]
Line 177: Line 175:
 </code> </code>
  
-===== U1.cpp =====+=== IU1.cpp ===
 <code c> <code c>
 #include <LiquidCrystal.h> #include <LiquidCrystal.h>
en/iot-open/remotelab/ume/smartme/u1.1572086369.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