Pollutants.eu Monitor kvality ovzduší v České republice

 

PDFLaser Type PM Sensor - Communication Specifications 

Laser Type PM Sensor - Product Specifications

SN-GCJA5 Evaluation Software

How about code examples?

To read the sensor with an STM32 actually looks pretty easy, the same like a memory:

const uint8_t J5_SSP_addr = 0x33;
uint8_t J5_SSP_dataRX[12];
	
HAL_I2C_Mem_Read(&hi2c2, J5_SSP_addr << 1, 0x00, 1, J5_SSP_dataRX, 12, 1000);
PM1 = J5_SSP_dataRX[0] + (J5_SSP_dataRX[1] << 8) + (J5_SSP_dataRX[2] << 16) +  (J5_SSP_dataRX[3] << 24);
PM2_5 = J5_SSP_dataRX[4] + (J5_SSP_dataRX[5] << 8) + (J5_SSP_dataRX[6] << 16) +  (J5_SSP_dataRX[7] << 24);
PM10 = J5_SSP_dataRX[8] + (J5_SSP_dataRX[9] << 8) + (J5_SSP_dataRX[10] << 16) +  (J5_SSP_dataRX[11] << 24);

For Arduino - it is a library from SparkFun

A popular air pollution home sensor Air Master AM7 Plus is a very handy device, which help you to measure and grab data with easy via internal UART/USB convertor data of air condition inside your house. You may control and record concentrations of PM2.5, PM10, HCHO (formaldehyde), TVOC (total volatile organic compounds), CO2, RH and temperature.

The components for record data are presented on picture below (protocol of receiving/sending data via UART port):

Air Master AM7

 

To receiving a data packet you need to send periodically a command

55 CD 47 00 00 00 00 00 00 01 69 0D 0A

via UART at (19200,8,n1)

A full package with instruction, protocol, drivers and control panel program you may find here-> https://pollutants.eu/programs/AirMasterAM7.zip (password is pollutants)

 

 Also:

Home Assistant and WiFi (via AirKiss protocol) connector: https://github.com/reejk/AirMasterConnect

Python to store in database: https://mysku.club/blog/taobao/40456.html

Our super-easy connector: https://wespeakenglish.github.io/polluSensWeb/

 

A very famous cheap air quality control home device SM300D2 is quite popular. It could be bought with screen or without. But what if you have damage your device? The PM2.5 is a separate creature on it, and you could use it easily separately. A power supply could be easily taken from a USB-UART convertor with 5V power outcome, it needs at maximum 100 mA of output current and more or the less stable voltage (what mostly they have). We need to connect only GND, UART TX and VCC lines of the sensor to our UART to USB connector and use like you want, below will be a link to a home-brewed program to display PM2.5 concentrations on Windows PC.

 

Pic.1 Connection to USB/UART adapter

 

The simple program for show the PM2.5 value is presented  below

 

 

The program to download: https://pollutants.eu/programs/PM_view_1.0.zip (RUSSIAN)

The program to download: https://pollutants.eu/programs/PM_view_1.0_en.zip (ENGLISH)

Project with source code in SharpDevelop: 

https://pollutants.eu/programs/PM_view_1.0_en_C_sharp-master.zip

Working drivers for Profilic PL2303HX : https://pollutants.eu/programs/PL2303_Prolific_GPS_1013_20090319.zip

feed-image RSS