Jump to content
Electronics-Lab.com Community

Ameba Arduino – SPI – PM2.5 Monitoring with TFT LCD display


MENG XI

Recommended Posts

cover.thumb.png.e8e3112d59ef7d701816d523676d26fa.png

Now that most people stay at home to avoid close contact with potential COVID-19 virus carrier, air quality becomes an important factor to people’s well-being, especially in tropical countries where using air-con is a must during the day, as prolonged use of air-con may do more bad than good to people’s respiration system thus weakening our immunity and make people more susceptible to virus infection.

Here I am going to show you how to make a simple yet powerful air quality monitoring system using Realtek Ameba RTL8195AM development board and PM2.5 module, together with a TFT LCD display to create a colourful interface.

 


Preparation

§  Ameba x 1

§  ILI9341 TFT LCD with SPI interface x 1

§  Plantower PMS3003 or PMS5003 x 1

 

Example

This example extends previous PM2.5 example to show the PM2.5 concentration on the LCD.

Wiring of QVGA TFT LCD:
(Note: PMS3003/PMS5003 sensor requires 5V voltage)

connection.thumb.png.0e8f7d90e2a313ec296397ab94a1664c.png

 

 

Open the example, "Files" -> "Examples" -> "AmebaSPI" -> "PM25_on_ILI9341_TFT_LCD"

example.thumb.png.1b3fb472068ff2e94a987e3009fe5bc8.png

Compile and upload to Ameba, then press the reset button.

Then you can see the concentration value of PM1.0, PM2.5 and PM10 on the LCD.

realsetup.thumb.png.1694ca0d64c3f3780e7b57362d599934.png

Code Reference

In this example, first rotate the screen by 90 degrees, and draw the static components such as the circles, the measuring scale and the title text. After the concentration value is detected, it is printed inside the circle.

 

To know more about the details, click the link below,

https://www.amebaiot.com/en/ameba-arduino-spi-lcd-pm2-5/

 

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...