/images/avatar.png

Paolo Gatti

Android Software Engineer - Appassionato di Elettronica e IoT

PMS5003 Sensor Library for Esp32 idf

Plantower PMS5003 is a laser dust sensor. It can sense particulates of various sizes (PM1, PM2.5, PM10) from sources like smoke, dust, pollen, metal and organic particles. This library can be used with multiple sensors at the same time. For each sensor you can choose between one shot or periodic data read. The source code is available on my GitHub at the following link. Working principle This sensor uses laser scattering to radiate suspending particles in the air, then collects scattering light to obtain the curve of scattering light change with time.

Android Toolbar Actions with Compose

Intro Before Jetpack Compose release we were used to add menu items in Fragments or Activities classes with xml files and onCreateOptionsMenu methods. The new UI tool is a game changer and via Scaffold composable it’s easy to add global actions to TopAppBar. With global actions I mean items that remains visible for the entire lifecycle of the controller class. When using Jetpack Navigation however there is only one Activity and the NavHost swaps composable destinations on the screen.