LATER UPDATE:[/quote]
Found my notes abut this sensor:
- worked OK only with 5V, didn't try that time to use it with 3.3V because the designed system was 5V one.
- min Vout is about 0.7V
- max Vout about 3.7V -> max dust level =0.53mg/m3
- be sure you properly identified the pinout, in my case, don't know how it's yours,with socket on the left side (1 - > 6)
- be sure that you used the 150 ohm resistor for Vled (from what you say looks more like the LED is dead already)
- you need also a 220uF cap as in datasheet
- be sure that your Pulse-driven wave form is giving you tha right ratio for sampling/sleep time
As you said you have many, don't think all can be defective. Used more than 500 of them, never found one DOA.
I hope it helps. Good luck!
Thanks for a brief reply.
I hooked it up to ESP (NODE MCU V3) as follows:
ILED -> PIN 12
AOUT -> AD0
GND -> GND
VCC -> 3.3V
The analogRead(...) values are in range : 0 - 115 (when i max it out by putting a pencil into the hole), never seen 1024 in my analogRead in NODEMCU for this Sensor ( i have couple of these, all return the same MAX value: 115 ).
However when the same sensor is used on Arduino, it works like a charm.
Can't understand what might be the problem, is it the case with 3.3V supplied to Sensor, or the problem is that the AD0 is onlly 1V ?