Difference between revisions of "GP2Y10"

From Let's Control It
Jump to navigation Jump to search
m
Line 8: Line 8:
  
 
----
 
----
[[File:GP2Y10.png|320px]]
+
[[File:GP2Y10.jpg|320px]]
 
----
 
----
  

Revision as of 15:15, 26 May 2017

Introduction

The ESP module can read the Sharp GP2Y10 Dust sensor. The general term "dust" should not fool you, the sensor can sense particles of sizes PM2.5 and above. PM stands for Particle Matter and you find more about that here and here.

The input signal needs to be connected to the ADC (also referred as Tout) pin on the ESP module. You should also connect a GPIO pin to the sensor to control the build in LED.

Hardware

Connect the dust sensor to a GPIO pin and the ADC pin. Even though the unit operates on 5V the analog signal is varying from about 0.6V-3.6V so generally no level shifter is needed. But you might need to considerate the fact that the analog input channel on the ESP only work up to 1V which means that you might have to use a analog expansion chipset we prefer the ADS1115. This device gives you 4 analog ports that all are possible to read logic up to 3.3V.


GP2Y10.jpg


Software

Custom Sketch

ESP Easy

Use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "Dust Sensor Sharp GP2Y10" from the dropdown box.

EasyConfigDust.png

Enter the GPIO pin and enter the IDX found in the Domoticz device page. That should be all.

Optional settings

Use of formulas

Use of value names