December 27, 2020
Description
necessary
-PMS7003 with extension calbe or connecter
-arduino pro mini or nano
-servo SG90 * 2
If you open the Arduino code file, you can see the code below
///////////////////////////////setting area///////////////////////////////////////
int modes=1;
//////////modes 1////////////
#define p10_a_min 170
#define p25_a_min 170
//////////modes 2////////////
#define p10_a_max 24
#define p25_a_max 24
//////////modes 3////////////
#define p10_a_exc 19
#define p25_a_exc 19
#define steps 40
//The larger the step value, the slower the rotation speed.
#define p10_svp 3
#define p25_svp 5
//Pin to which servo motor is connected
///////////////////////////////setting area end///////////////////////////////////////
The initial value of the modes variable is 1.
The meaning of the numbers.
1: indicates 0 on the scale
2: Indicates the maximum value of the scale.
3: Indicates the excess area of the scale.
0: All settings are completed and the machine starts.
Please follow the below for setup
STEP 1
When the servo motor has finished rotating with modes 1, set the needle to 0 and assemble.
STEP 2
Change modes to 2 and upload.
The needle should point to the maximum (110, 60).
If it is misaligned, correct the angles p10_a_max and p25_a_max and upload again.
STEP 3
Change modes to 3 and upload.
The needle should point to the excess area.
If it is misaligned, correct the angles p10_a_exc and p25_a_exc and upload again.
STEP 4
Change modes to 0 and upload.
The needle rotates according to the level of fine dust.
The setup is over.
License:
Creative Commons - Attribution