|
|
Ligne 1 : |
Ligne 1 : |
− | {{Item
| |
− | |Main_Picture=Item-Capteur_de_particules_SDS011_ar-capteur-de-qualite-de-l-air-sds011-27929.jpg
| |
− | |Description=Capteur basé sur un laser SDS011 PM2.5/PM10 permettant de tester avec précision et fiabilité la qualité de l'air
| |
− | |Categories=Matériel
| |
− | |Cost=34,95
| |
− | |Currency=EUR (€)
| |
− | |ItemLongDescription='''Principe:'''
| |
| | | |
− | Ce capteur est basé sur un laser SDS011 PM2.5/PM10 permettant de tester avec précision et fiabilité la qualité de l'air.
| |
− |
| |
− | Ce laser fiable, rapide et précis mesure le taux de particules dans l'air compris entre 0,3 et 10 µm.
| |
− |
| |
− | Il communique avec un microcontrôleur compatible via une sortie UART.
| |
− |
| |
− | Le capteur est livré sans cordon de raccordement mais peut être utilisé avec des cordons de prototypages M/F par exemple.
| |
− |
| |
− | Une librairie Arduino sous licence GPL est disponible en téléchargement .
| |
− |
| |
− | Librairie Nova_SDS011 Sensor
| |
− |
| |
− | Le capteur SDS011 peut également être utilisé sur un PC via un convertisseur USB vers UART TTL inclus.
| |
− |
| |
− |
| |
− |
| |
− | Caractéristiques :
| |
− | Alimentation: 4,7 à 5,3 Vcc
| |
− |
| |
− | Consommation:
| |
− |
| |
− | - au travail: 70 mA ±10mA
| |
− |
| |
− | - au repos: < 4 mA
| |
− |
| |
− | Plage de mesure: 0 à 999,9 µg/m³
| |
− |
| |
− | Résolution: 0,3 µg/m³
| |
− |
| |
− | Fréquence d'échantillonage: 1 Hz
| |
− |
| |
− | Température de service: -10 à 50 °C
| |
− |
| |
− | Humidité de service: 70 % RH maxi
| |
− |
| |
− | Pression atmosphérique: 86 KPa à 110 KPa
| |
− |
| |
− | Dimensions: 71 x 70 x 23 mm
| |
− | <br />
| |
− |
| |
− | ==Bibliothèque : ==
| |
− | {{#annotatedImageLight:Fichier:Item-Capteur de particules SDS011 Sensor.png|0=751px|hash=|jsondata=|mediaClass=Image|type=frameless|align=center|src=https://www.wikidebrouillard.org/images/4/4d/Item-Capteur_de_particules_SDS011_Sensor.png|href=./Fichier:Item-Capteur de particules SDS011 Sensor.png|resource=./Fichier:Item-Capteur de particules SDS011 Sensor.png|caption=|size=751px}}Pour utiliser facilement ce capteur, nous vous conseillons d'utiliser la bibliothèque ''sds-dust-sensors-arduino-library'' que vous trouverez [https://github.com/lewapek/sds-dust-sensors-arduino-library ici, en cliquant sur ce lien]
| |
− |
| |
− |
| |
− | ==Câblage==
| |
− | {{#annotatedImageLight:Fichier:Item-Capteur de particules SDS011 Branchements.png|0=538px|hash=|jsondata=|mediaClass=Image|type=frameless|align=center|src=https://www.wikidebrouillard.org/images/b/b4/Item-Capteur_de_particules_SDS011_Branchements.png|href=./Fichier:Item-Capteur de particules SDS011 Branchements.png|resource=./Fichier:Item-Capteur de particules SDS011 Branchements.png|caption=|size=538px}}{{#annotatedImageLight:Fichier:Item-Capteur de particules SDS011 IMG 20201210 121324 resized 20201210 121436561.jpg|0=1094px|hash=|jsondata=|mediaClass=Image|type=frameless|align=center|src=https://www.wikidebrouillard.org/images/9/9b/Item-Capteur_de_particules_SDS011_IMG_20201210_121324_resized_20201210_121436561.jpg|href=./Fichier:Item-Capteur de particules SDS011 IMG 20201210 121324 resized 20201210 121436561.jpg|resource=./Fichier:Item-Capteur de particules SDS011 IMG 20201210 121324 resized 20201210 121436561.jpg|caption=|size=1094px}}
| |
− |
| |
− |
| |
− | ==Code Minimal==
| |
− | {| class="wikitable" cellspacing="0" border="0"
| |
− | | height="17" align="left" bgcolor="#999999" |
| |
− | | align="center" valign="middle" bgcolor="#999999" |
| |
− | | align="center" bgcolor="#999999" |
| |
− | |-
| |
− | | rowspan="2" height="60" align="center" valign="middle" bgcolor="#999999" |Avant le Setup
| |
− | | align="center" valign="middle" bgcolor="#999999" |Importation de la bibliothèque
| |
− | | align="left" valign="middle" |#include "SdsDustSensor.h"
| |
− | |-
| |
− | | align="center" valign="middle" bgcolor="#999999" |Création de l’objet
| |
− | | align="left" valign="middle" |int rxPin = D5;
| |
− |
| |
− | int txPin = D6;
| |
− |
| |
− | SdsDustSensor sds(rxPin, txPin);
| |
− | |-
| |
− | | height="17" align="center" valign="middle" bgcolor="#999999" |Dans le Setup
| |
− | | align="center" valign="middle" bgcolor="#999999" |Démarrage de l’objet
| |
− | | align="left" valign="middle" |Serial.begin(9600);
| |
− |
| |
− | sds.begin();
| |
− | |-
| |
− | | height="17" align="center" valign="middle" bgcolor="#999999" |Dans le Loop
| |
− | | align="center" valign="middle" bgcolor="#999999" |Utilisation
| |
− | | align="left" valign="middle" |PmResult pm = sds.readPm();
| |
− |
| |
− | Serial.print("PM2.5 = ");
| |
− |
| |
− | Serial.print(pm.pm25);
| |
− |
| |
− | Serial.print(", PM10 = ");
| |
− |
| |
− | Serial.println(pm.pm10);
| |
− | |}
| |
− | Astuce: il est possible RX et TX soient inverser, dans ce cas il vous suffit d'inverser D5 et D6 dans votre code.<br />
| |
− |
| |
− | ==Exemple==
| |
− | <br /><syntaxhighlight lang="arduino" line="1">
| |
− | #include "SdsDustSensor.h"
| |
− |
| |
− | int rxPin = D5;
| |
− | int txPin = D6;
| |
− | SdsDustSensor sds(rxPin, txPin);
| |
− |
| |
− | void setup() {
| |
− |
| |
− | Serial.begin(9600);
| |
− | sds.begin();
| |
− |
| |
− | Serial.println(sds.queryFirmwareVersion().toString());
| |
− | Serial.println(sds.setActiveReportingMode().toString());
| |
− | Serial.println(sds.setContinuousWorkingPeriod().toString());
| |
− | }
| |
− |
| |
− | void loop() {
| |
− |
| |
− | PmResult pm = sds.readPm();
| |
− | if (pm.isOk()) {
| |
− | Serial.print("PM2.5 = ");
| |
− | Serial.print(pm.pm25);
| |
− | Serial.print(", PM10 = ");
| |
− | Serial.println(pm.pm10);
| |
− | Serial.println(pm.toString());
| |
− | }
| |
− | else {
| |
− | Serial.print("Could not read values from sensor, reason: ");
| |
− | Serial.println(pm.statusToString());
| |
− | }
| |
− |
| |
− | delay(500);
| |
− | }
| |
− | </syntaxhighlight><br />
| |
− | }}
| |
− | {{Tuto Status
| |
− | |Complete=Draft
| |
− | }}
| |