Jump to content
Electronics-Lab.com Community

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


Recommended Posts


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.



§  Ameba x 1

§  ILI9341 TFT LCD with SPI interface x 1

§  Plantower PMS3003 or PMS5003 x 1



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)




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


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.


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,



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.

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.

  • Create New...