Dust Sensor using GP Y

Similar documents
TECHNOLOGY WILL SAVE US: THE LUMIPHONE

Introduction 1. Digital inputs D6 and D7. Battery connects here (red wire to +V, black wire to 0V )

MAKE AN RGB CONTROL KNOB.

Introduction 1. Green status LED, controlled by output signal ST. Sounder, controlled by output signal Q6. Push switch on input D6

ADD AN AUDIO MESSAGE TO YOUR PRODUCT WITH THIS RECORD & PLAYBACK KIT

Introduction 1. Green status LED, controlled by output signal ST

Documentation VFD clock 8 a clock

Tube Cricket Build Guide

DEM 9ULNACK 3.4 GHz. PHEMT LNA amplifier complete kit assembly guide

Build A Video Switcher

Internet of Things at Bohunt School (Wokingham) Plant moisture sensing system

Lab 7: Soldering - Traffic Light Controller ReadMeFirst

Bill of Materials: Super Simple Water Level Control PART NO

Nixie Clock Type Frank 2 Z570M

Christmas LED Snowflake Project

Atari PICO Composite Mod Board Installation Instructions:

SWITCH: Microcontroller Touch-switch Design & Test (Part 2)

Industrial Monitor Update Kit

Fixed Audio Output for the K2 Don Wilhelm (W3FPR) & Tom Hammond (NØSS) v August 2009

Mal-2 assembly guide v1.0

8 PIN PIC PROGRAMMABLE BOARD (DEVELOPMENT BOARD & PROJECT BOARD)

Azatrax Model Railroad Track Signal Control - Single Track

DSO138mini Troubleshooting Guide

Multi-Key v2.4 Multi-Function Amplifier Keying Interface

TKEY-K16. Touch CW automatic electronic keyer. (No moving parts no contacts) Assembly manual. Last review: March 15, 2018

Lab 7: Soldering - Traffic Light Controller ReadMeFirst

SN-Class Nixie Clock Kits

[ Photos ] [ Wares ] [ Library ] [ Dave's Web ] [ Matt's Web ] Wares [ SWISH ] [ Simple Search ] [ Trunk Calc ]

Assembly Instructions And User Guide. Nixie FunKlock. FunKlock Issue 4 (1 February 2017)

MONO AMPLIFIER KIT ESSENTIAL INFORMATION. Version 2.2 CREATE YOUR OWN SPEAKER DOCK WITH THIS

DIY Guide - Building Franky v1.1, the SEGA Audio and Videocard for MSX

DIY KIT MHZ 8-DIGIT FREQUENCY METER

DL-1A. RF dummy load - 50Ω 20W. Assembly manual. Last update: May 1, Thank you for constructing the DL-1A dummy load kit

DOGM GRAPHIC SERIES 128x64 DOTS

Nixie Clock Type Frank 3

DOGM GRAPHIC SERIES 132x32 DOTS

Total solder points: 117 Difficulty level: beginner advanced. RGB Controller K8088 ILLUSTRATED ASSEMBLY MANUAL

VU-1 VU Meter Kit Volume Unit Meter

POINTS POSITION INDICATOR PPI4

ELECTRONIC GAME KIT TEACHING RESOURCES. Version 2.0 BUILD YOUR OWN MEMORY & REACTIONS

COLOUR CHANGING USB LAMP KIT

Reaction Game Kit MitchElectronics 2019

Pixie Construction Notes

A Huf Puf VFO stabilizer for the YAESU FT-707

Nixie Clock Kit IN-12B color LED backlit Operation Manual Nixie Clock Kit IN-12B V6.0 ( All Right Reserved 2015 )

Be a part of the circuit. Brick'R'knowledge. Set overview.

Monday 28 January 2013 Morning

Obtained from Omarshauntedtrail.com

Summit Systems Sound Board Modification

Installing The PK-AM keyer and. from Jackson Harbor Press Operating: A Morse code keyer chip with pot speed control

LP-PAN Preamp Kit Assembly Manual

1. Unlocking your FT847 to get 4m ( for those who already have unlocked one, please move to chapter 2).

How To Build Megavolt s Small Buffered JTAG v1.2

Alice EduPad Board. User s Guide Version /11/2017

7 SEGMENT LED DISPLAY KIT

Sigma 1 - Axis Servo Motor and Cables - Troubleshooting Guide

Video Streamer Modifications

The video-signals on 128K ZX Spectrum models

The NorCal SMT Dummy Load Assembly and Operating Manual Rev. 1.0 January 4, 2005

COHERENCE ONE PREAMPLIFIER

Parts Checklist - Please note there is no resistor R3. Diodes, LED and transistors are polarized see construction stages

Light Emitting Diodes (LEDs)

Bill of Materials: Magic Color PART NO

Part (A) Controlling 7-Segment Displays with Pushbuttons. Part (B) Controlling 7-Segment Displays with the PIC

Building the BX24-AHT

Interval Preset Switching of the Oscillators in a Moog Prodigy

ROSS VIDEO LIMITED PAA Programmable Audio Amplifier USER MANUAL PAA-01-MNL Issue 1

Nixie Clock Kit V1.08 Assembly and Operation

DDS VFO CONSTRUCTION MANUAL. DDS VFO Construction Manual Issue 1.1 Page 1

AD9884A Evaluation Kit Documentation

Total solder points: 123 Difficulty level: beginner 1. advanced AUDIO ANALYZER K8098. audio gea Give your. . high-tech ILLUSTRATED ASSEMBLY MANUAL

ELECTRONIC GAME KIT ESSENTIAL INFORMATION. Version 2.0 BUILD YOUR OWN MEMORY & REACTIONS

Main PCB (The small one)

Table of contents 1. INTRODUCTION GENERAL CONTENTS OF PACKAGE GENERAL USE OF THE EQUFLOW 6100 D/A CONVERTER STORAGE..

AXE101 PICAXE-08M2 Cyberpet Kit

N3ZI Digital Dial Manual For kit with Serial LCD Rev 3.04 Aug 2012

Nixie Tube Clock Type Marsden

Data Acquisition Using LabVIEW

QUIZ BUZZER KIT TEACHING RESOURCES. Version 2.0 WHO ANSWERED FIRST? FIND OUT WITH THIS

RF4432 wireless transceiver module

XTAL Bank DDS Version 0.02 Sept Preliminary, highly likely to contain numerous errors

TRIMBLE GPS / 10MHz REFERENCE MONITOR DISPLAY V January 2015

DOGM GRAPHIC SERIES. 128x64, 3.3V available in low quantity! flat: 5.6mm with LED b./l. mounted TECHNICAL DATA ORDERING CODE ACCESSORIES

Bill of Materials: 7-Segment LED Die with Arduino PART NO

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

EA DOGL128x-6 EA LED68X51-RGB

Operating instructions Capacitive level sensor KNQ

Etherwave Plus Field Upgrade Instructions

RF4432F27 wireless transceiver module

Alice EduPad for Tiva or MSP432 TI ARM Launchpad. User s Guide Version /23/2017

QTI Line Follower AppKit for the Boe-Bot (#28108)

Ten-Tec (865) Service Department:(865)

Commissioning Guide. firepickdelta. Commissioning Guide. Written By: Neil Jansen firepickdelta.dozuki.com Page 1 of 22

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Color Organ Triple Deluxe II.

Inputs and outputs. Connecting leads. Buzzer

E M E - Antenna Controller System - OE5JFL. Block diagram

DMC550 Technical Reference

EPROM pattern generator with "Genlock"

"shell" digital storage oscilloscope (Beta)

Transcription:

Dust Sensor using GP Y Dust sensors detect fine dust ( aerosol ) floating in the air. They are used to determine air quality indoor and outdoor. Limits of the GP2Y10 The GP2Y10 sensor was developed to give a general value of the air quality. The sensor is originally used to control air cleaners so it s capabilities are limited. It is not able to differentiate between dust sizes, e. g. PM2.5 and PM10. So the sensor device can give a relative value for air quality rating. You won t get a value xx µg/m³. How Does the Sensor Work? If you ever have used a pocket light in the dark you may have noticed floating dust in the light beam. This is basically the way these sensors work. Inside the sensor box is a dark chamber. A LED flashes inside the chamber, a photo transistor detects the light reflected by the dust. A small circuit converts the measurement into an analog voltage. Prerequisites The circuit needs an external 5V power supply. Do not use a cheap power supply. It should give a reliable power of 1 1.5 A at least. This circuit uses standard trough-hole parts so it is relatively simple to build.

Schematics Don t worry: It looks more complex than it is. We will walk through the parts and explain. You may print a full sized schematics, it is provided with the PDF. Starting at the bottom left you see the voltage regulator, a LF-33 (U1). Together with the capacitors C1 and C2 it provides the 3.3V for the ESP-12E/F. P6 is the connector to the external power supply. P1 on the top left connects to the GP2Y10. The pins use the same order as the pins at the GP2Y10 so connecting is done easily. C3, C5 and R4 make a filter for the LED pulses to keep voltage spikes off from the other parts. R10 and R13 divide the output voltage down to a level the ESP can take. This is necessary as the GP2Y10 can give back around 3 volts, the analog input of the ESP can take up to 1 volt. The indicator LED D1 is a RGB LED with common anode. It shows a raw indicator of air quality by colors: Blue cyan green yellow Red (From good to bad). The transistors Q1,Q2 and Q3 provide a bit more power for the LED as the GPIO s of the ESP alone can give. R1, R2 and R3 are for limiting the LED current. R5, R6 and R7 are the basis resistors for driving the transistors. The transistor Q4 has a special function. The GP2Y10 has no internal fan. To get enough air from the environment into the sensor it needs an external fan. These little fans are noisy, this might be disturbing for example in the night at the sleeping room. You may use Q4 / GPIO10 to switch off the fan at night times.

It is even possible to turn the fan into slower rotation by using PWM on GPIO10. But the small fans tend to whistle if driven by PWM so I don t recommend that. Use a 12 15 Ohm resistor in the fan cable to turn it down instead. D2 is a wheeling diode to keep off high voltage spikes from the motor coils. This should be implemented inside the fan already, but who knows with the cheap fans offered on the market? C7 is optional. It might be necessary to keep humming from the voltage supply with some fans. Try values from 2,2 10 µf if necessary. On the top right you see the connector P2. It can be used to connect a SSD1306 OLED display. Besides P6 you see a sensor, a BMP-280, BMP-180 or SI7021 can be used ( Thumbnail size breakout). P8 gives the Reset pin of the ESP-12E/F. Shorting to ground (P3) resets the ESP. P5 shorted to ground (P7) sets the ESP into flash mode. P4 provides the serial interface for your flash progging adapter. So only the ESP-circuit itself is left. You may use: ESP-12, ESP-12E and ESP-12F. IF you want to use an external antenna you may also use the ESP-07S which is an ESP-12 with an IPEX plug instead of an antenna. It has 4MB as the ESP-12 has. C4 is a ceramic type capacitor to block high frequency generated by the ESP. Do not use foil capacitors here, they are not suitable for this purpose. R8, R9, R11 and R12 are the necessary pull-up / pull-down resistors the ESP needs to set the standard running mode.

PCB This single side PCB is kept simple, it should be possible to etch it at home. All parts are mounted from the front side trough hole. Only the ESP is mounted on the bottom side of the PCB. At the end of the PDF a 1:1 printout is provided for etching.

The fully populated PCB component side.. and bottom (soldering) side.

Case I ve used a standard case from market. It is sold under several brand names, in fact you may find it even on Aliexpress or at many electronics providers. I ve got it here: https://www.reichelt.de/kunststoff-kleingehaeuse/eurobox- SW/3/index.html?ACTION=3&GROUPID=7715&ARTICLE=50429&SHOW=0&START=0&OFFSET=50&SI D=94WeyucKwQATMAABkE9hodf3b921f5ffd24e8964d4dcc85ff2abf&LANGUAGE=EN The PCB is developed to fit into this case including sensor, fan and display. You may use other cases but you will have to drill mounting holes for the PCB. Mounting the PCB, Sensor and fan together with display in the case. The sensor was fixed with a double sided adhesive tape.

Building the Circuit As we use though hole components this device do not need too much experience with soldering. A standard soldering iron for electronics will do for most parts. Only the ESP needs a pencil tip type iron. Be very carefull with soldering the ESP-12. The solder tends to creep under the ESP-chip short circuiting some pins. I recommend to solder one single pin of the ESP and then check: - Is it correctly aligned to the pcb? - Is it really flat on the pcb or is there some air between pcb and chip? If you solder just one pin first, these things are correctable. A completely soldered ESP-12 is fixed. It is somewhat difficult to de-solder it, often the pcb and/or the chip get damaged. Place resistors first, then capacitors and pin headers. The transistors and the LF-33 voltage regulator follow, and at last the ESP from the bottom side. Before you power up first time, please check very carefully: - Any bad soldering points? - Any unwanted soldering bridges between solder points? A steel needle or a sharp cutter knife are helpful here. Flashing - Connect your programming adapter to the serial pins. - Shorten the pins P5 and P7 to set flash mode. - Start flashing in your flash tool and shorten P3-P8 for a short moment. - Wait until flashing succeded. - Switch off the device. - Disconnect the adapter. - disconnect P5-P7 Done, that s it.

ESPEasy Settings Set your devices as shown here. If you use a BMP-180 or BMP-280 change settings accordingly. Settings for the GP2Y10: Settings for the SI7021 (Change accordingly for BMP-types):

Settings for the Display (If you use one at all, it is optional): If all settings are done, your device list should look similar to this: Congratulations, the sensor itself is up and running.

Getting LED and Fan to Work - Rules The LED should show a color depending to the amount of dust the sensor detects. For now the fan should be switched on when powering on the device. For this a simple rule does the job: On System#Boot do gpio,10,1 endon This just sets GPIO10 to 1 on system boot The Rules for LED need a bit of explanation. As the PCB is developed the LED is connected to these GPIO S: GPIO12 = Green GPIO13 = Blue GPIO14 = Red So we simply could say: On a dust value below 25 switch GPIO13 on, otherwise off On a dust value of 26 50 switch GPIO12 on, otherwise off and so on. But this would give just blue, green and red with an additional rule. We left out cyan and yellow! What to do? It s simple: We define some overlapping between the colors. Below 25: Blue 26.40 Cyan 41.50 Green 51.75 Yellow 75.330 Red So with this definition the Blue led should be on from 0.40, as cyan is mixed from blue and green. Green should be on from 26. 75 as we need it for cyan, green and yellow (red/green mix). Please note: These values are just what I use. You may adapt it to your needs. If you check the rules aou may notice an extra rule for values >330. This switches off the LED on values out of the limits of the sensor and analog input. A nice (and honestly not planned) side effect: If out of limits the LED flashes every some seconds shortly showing you re out of range.

So let s see a complete set of rules for fan and LED: On System#Boot do gpio,10,1 endon on GP2Y#Dust do if [GP2Y#Dust] > 40 gpio,13,0 else gpio,13,1 endif if [GP2Y#Dust] >25 gpio,12,1 else gpio,12,0 endif if [GP2Y#Dust] > 75 gpio,12,0 endif if [GP2Y#Dust] > 50 gpio,14,1 else gpio,14,0 endif if [GP2Y#Dust] > 330 gpio,12,0 gpio,13,0 gpio,14,0 endif endon That s all, folks. Have fun with your dust sensor.

Copper side For etching the text must be readable! DustSensor Solder resist mask Silks