Why do I want to do this? Because I feel that the sky-high prices for air quality testing equipment on Taobao and Xianyu are too annoying. I clamped two pieces of acrylic together and closed the serial port. I asked for the price like crazy. It was really crazy. The bright red and green interface and the sparkling acrylic were so fun... It was really a huge profit, even higher than the various meters of ina226. Huge profits, because the difficulty is completely 0, and the various sensors are either serial ports or i2c, which is completely brainless. I have witnessed the craziness of water purifiers and air purifiers... I hope the bubble of air quality detectors will burst soon.
According to this tutorial, you can make a full-featured air quality detector with WIFI upload function, and various modules can be added or subtracted at will. By the way, let’s reveal the cost of air quality detectors.
The gas quality detector uses esp12-f as the main control. The peripherals that can be connected include:
The motherboard can be purchased for more than ten dollars. There is nothing you can do about the high price of the sensor. You can go shopping for some second-hand sensors. The carbon dioxide I bought was only 30 each, and the climbing vine was only 35.
Display Data:
The power supply can be powered by USB or an external lithium battery (1.25mm 2pin interface). If a battery is not needed, there is no need to weld the components of the charge and discharge circuit.
PCB ** and BOM can be obtained from the link below. * GERBER *** file can be exported for proofing. For the purchase link, please refer to the file I uploaded.
https://lceda.cn/duck/kong-qi-zhi-liang-jian-ce
Welding precautions
1. If you do not need a charge and discharge circuit, you need to connect the two circular contacts on the upper left side of the circuit board.
2. Before soldering Sht20, find a piece of paper to cover the window. Do not use tape. Move quickly when soldering. Wait for a while after soldering a point. This component cannot be cleaned. Do not use flux that needs cleaning. Others The same as the sensor, it cannot be cleaned, washed with plate washing water, or smoked by rosin.
3. The circuit of Sht20 needs to be separated and connected with FPC cables, otherwise it will be affected by the heat of other components and the temperature and humidity will never be measured accurately (no matter which corner it is placed in or what slots are opened, it will not work. I have tried it).
Tutorial
1. Download the environment for compiling the program, plug in the USB cable, and upload the program (no need to manually enter download mode, no need to manually reset)
2. Connect to AP Air_sensors, open 192.168.4.1 to view data, set up WIFI connection, etc. The Air sensors connection point will always be open and can be connected at any time. When the mobile phone and device are connected to the same router, you can directly open http://air/ in the browser and view the data.
3. Connect to the onenet platform, register an account first, create a new device, and the protocol is HTTP. APP download https://open.iot.10086.cn/doc/art656.html#118
4. To transfer the configuration to the device, you need to transfer the city name (if there is an electronic paper screen), the device ID and key of the onenet platform, open the webpage to view the data and click Settings
5. Send a message to the device. It will be received in 2 minutes at the latest and will jump to the display immediately. You can send monochrome pictures. Send text here duckweather.tk/client.php . The web page for sending pictures is under development.
6. Regarding the electronic paper screen components, you can check the BOM list by yourself https://lceda.cn/duck/kong-qi-zhi-liang-jian-ce-dian-zhi-ping-zu-jian . It is not difficult. Please pay attention. If you use flux, don't forget to wash it off, otherwise don't power on. Just upload the program after welding. It supports Weixue screen and Weifeng screen, and you can adjust it by yourself in the program.
7. The screws that fix the shell and the circuit board are m1.6*8. The shell can be printed by the merchant according to the drawings. SLA photosensitive resin printing costs about 50 yuan.
Regarding accuracy: You don’t need to be so serious. After all, professional instruments cost tens of thousands of dollars. You get what you pay for, but it should be more accurate than the 19.9 and 29.9 on Taobao. Please check the sensor datasheet for details.
Please feel free to comment on whether it's possible, okay, okay, etc. It's just your personal needs.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet