Difference between revisions of "Air-Monitoring-HAT"

From SB-Components Wiki

(Created page with "<div class="row"> <div class="large-8 column"> == Air Monitoring HAT == Air Monitoring HAT is a powerful and hi-tech PMSA003 sensor that provides the information of suspende...")
 
Line 41: Line 41:
  
 
== Pinout ==
 
== Pinout ==
[[File:Round-lcd-pinmap.png|600 px]] [[File:Round_lcd_hat_pinout.PNG]]
+
<table class="wikitable">
 +
<tr> <th> Board Pins  </th> <th>Raspberry Pi</th>  </tr>
 +
<tr><td> 5V  </td> <td> 5V  </td> </tr>
 +
<tr><td> GND  </td> <td>  GND </td> </tr>
 +
<tr><td> PMS RX  </td> <td> GPIO 14  </td> </tr>
 +
<tr><td> PMS TX  </td> <td>  GPIO 15 </td> </tr>
 +
<tr><td> PMS SET  </td> <td> GPIO 27  </td> </tr>
 +
<tr><td> PMS RESET  </td> <td>  GPIO 17 </td> </tr>
 +
<tr><td> OLED SDA  </td> <td> GPIO 2  </td> </tr>
 +
<tr><td> OLED SCL  </td> <td>  GPIO 3 </td> </tr>
 +
 
 +
</table>
  
 
== Installation ==
 
== Installation ==

Revision as of 08:44, 9 June 2021

Air Monitoring HAT

Air Monitoring HAT is a powerful and hi-tech PMSA003 sensor that provides the information of suspended particulate matter (PM1.0, PM2.5, and PM10) in the air per unit volume via digital output with an operating voltage of 3.3 V. It communicates via UART (serial) with the standby current ≤200 Microampere (μA) of the sensor.

Features

  • Digital sensor
  • Operating Voltage 5V DC
  • PMSA003 Sensor
  • Standard 40 Pin GPIO
  • OLED Display 0.91”
  • Measuring range 0.3 to 10 Micron
  • UART (Serial) Interface


Specifications

  • Model - Air Monitoring HAT
  • Sensor Model number - PMSA003
  • Data Output - Digital Sensor(unit quality + number of units)
  • Type - Biosensor
  • Communication Interface - UART (Serial)
  • Display Type - OLED Display 0.91”
  • Board Dimension - 65 x 56 mm
  • Measuring range - 0.3 to 1.0, 1.0 to 2.5, 2.5 to 10 Micron (μm)
  • Counting efficiency - 50% @ 0.3 μm 98% @> = 0.5 um
  • Response time - ≤10 s
  • DC supply voltage - 5.0 V
  • Maximum Operating Current - 100 Milliamp (mA)
  • Standby current - ≤200 Microamp (μA)
  • Data interface level - L <0.8 @3.3, H >2.7@3.3 Volt(V)
  • Operating Temperature range - -10 to +60 Celsius (℃)
  • Operating Humidity range - 0 - 99%
  • Mean time between failures - ≥3 Year(Y)


Pinout

Board Pins Raspberry Pi
5V 5V
GND GND
PMS RX GPIO 14
PMS TX GPIO 15
PMS SET GPIO 27
PMS RESET GPIO 17
OLED SDA GPIO 2
OLED SCL GPIO 3

Installation

Python

  • Open a terminal and run the following commands to enable I2C and Serial:
sudo raspi-config
  • Choose Interfacing Options -> SPI -> Yes
  • You can also use GUI method to enable SPI Go to Menu > Preferences > Raspberry Pi Configuration > Interfaces, and enable SPI

Spi en gui.png

  • Stack Round LCD HAT on top of Raspberry Pi GPIO Header pins.
  • Make Sure SPI is Enabled (As mentioned above)
  • Now clone Round LCD HAT Github repository by running below command in terminal
git clone https://github.com/sbcshop/Round-LCD-HAT.git
  • Enter dowloaded directory
cd Round-LCD-HAT
  • Now run demo.py by running below command.
python3 demo.py
  • You can also run "LcdDemo_Joystick.py" file to display the image and change the color of the arc using the attached 5 input joystick.
python3 LcdDemo_Joystick.py

Resources