2019 ESP8266 PM7003 PM2.5空氣清淨機
已試用半年, 感覺得很滿意!
這濾網好像不錯
外接AC110V 正負離子殺菌及剩餘負離子除灰塵
2020 Jan 第二版 更改如下
GPIO 14 (D5) 空氣濾芯PWM風扇 , 採用COOL MASTER JETFLO 120(95CFM 12X12X2.5CM 12V 0.4A 4.8W 36dBA)
GPIO 12 (D6) USB臭氧空氣清淨機 (可Micro USB to FUTURE LAB N6 , PM2.5 >=15啟動),
GPIO 13 (D7) USB加濕器 <<<-----改為GPIO15 (D8) USB加濕器, 濕度低於50%啟動加濕,
達到55% 停止加濕.
(GPIO 13 給 SPI OLED SSD1331使用, 2020彩色OLED用不到)
GPIO 13 (D7) 2020 LED (CJMCU-2812-24)
GPIO 16 (D0) Latch Relay ON,
室內溫度超過26度 另外啟動交流電風扇 (LATCH RELAY導通)
GPIO 0 (D3) Latch Relay Reset (OFF)
室內溫度低於25度 關閉交流電風扇 (LATCH RELAY 斷線)
Dht22 濕度真不佳,買十個一個比較準。
這裡也有人講是垃圾, forum <<< 按一下
待測
一
-hackster.io-esp8266-neopixel-ring-clock-a9cc74--WS2812B-5050 失敗2020.03.06
setup() { strip.begin();
strip.setBrightness(128); / 50% brightness}
loop() { strip.setPixelColor(currentSecond / 2.5, 0, 0, 0);
-------------------------------------------------------------------------------------
下列改用Adafruit_NeoPixel.h Library 裡面的 simple範例 修改後, 2020 Mar.06成功
/* LED WS2812-5050-24bit */ #include <Adafruit_NeoPixel.h> #define PIN 0 // D3 On ESP8266 // How many NeoPixels are attached to the Arduino? #define NUMPIXELS 16 // Popular NeoPixel ring size Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 500 // Time (in milliseconds) to pause between pixels
void setup() {
/* following for led */
pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
}
PS
googleRGB+LED+Ring+24Bit+WS2812B+5050+esp8266
購買RGB-LED-Ring-24Bit-WS2812B-5050-lamp-RGB-LED-Board-with-Integrated-Drivers/
二 SSD1331 color OLED 0.95" SPI 7Pins 96x94
circuitdigest.com/ssd1306-oled-display-with-esp8266
三 SSD1306 oled 128x32 I2C
lastminuteengineers.com/oled-display-esp8266l/
四
改用Bme 溫濕感測器
https://www.olaf-goette.de/blog--diverse-themen/blog/tostedt/cloudbasierte-wetterstation.html?fbclid=IwAR1gxay7mlcXUK_5zcMt7bi_6FtxrRZtSJ_6gwz4-ILgz1dvsKjKG3joMqM
五
PWM 風扇值 =
PM2.5/2 +500(濾芯可吸入空氣的臨界值)
六
預設風扇 CoolMaster JETFLO 120 4pin PWM 36dBA 0.4A 95CFM(161.3m3/h) 12x12x2.5cm
SilverStone Air Blazer 120R 93.97 CFM 35.6 dBA 0.32A 349元
105CFM [絕對暴力] 12cm 暴力風扇 89元
PS
這連結好玩 ALEXA
https://www.birdandgua.net/bird/2018/01/when_alexa_meets_esp8266-2/
(GPIO 13 給 SPI OLED SSD1331使用, 2020彩色OLED用不到)
GPIO 13 (D7) 2020 LED (CJMCU-2812-24)
GPIO 16 (D0) Latch Relay ON,
室內溫度超過26度 另外啟動交流電風扇 (LATCH RELAY導通)
GPIO 0 (D3) Latch Relay Reset (OFF)
室內溫度低於25度 關閉交流電風扇 (LATCH RELAY 斷線)
- GND - 0V, VCC - 3.3 to 5V,
- SCL - GPIO13, SDA - GPIO 9, DC - GPIO8, CS - GPIO 10
2020. 06
Dht22 濕度真不佳,買十個一個比較準。
這裡也有人講是垃圾, forum <<< 按一下
待測
一
-hackster.io-esp8266-neopixel-ring-clock-a9cc74--WS2812B-5050 失敗2020.03.06
#include <Adafruit_NeoPixel.h>
#define PIN D5
Adafruit_NeoPixel strip = Adafruit_NeoPixel(24, PIN);setup() { strip.begin();
strip.setBrightness(128); / 50% brightness}
loop() { strip.setPixelColor(currentSecond / 2.5, 0, 0, 0);
strip.setPixelColor(currentMinute / 2.5, 0, 0, 0);
strip.setPixelColor(currentHour * 2, 0, 0, 0);
strip.show();}-------------------------------------------------------------------------------------
下列改用Adafruit_NeoPixel.h Library 裡面的 simple範例 修改後, 2020 Mar.06成功
/* LED WS2812-5050-24bit */ #include <Adafruit_NeoPixel.h> #define PIN 0 // D3 On ESP8266 // How many NeoPixels are attached to the Arduino? #define NUMPIXELS 16 // Popular NeoPixel ring size Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); #define DELAYVAL 500 // Time (in milliseconds) to pause between pixels
void setup() {
/* following for led */
pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
}
loop() {
pixels.clear(); // Set all pixel colors to 'off'
for(int i=0; i<NUMPIXELS; i++) { // For each pixel...
// pixels.Color() takes RGB values, from 0,0,0 up to 255,255,255
// Here we're using a moderately bright green color:
pixels.setPixelColor(i, pixels.Color(0, 150, 0));
pixels.show(); // Send the updated pixel colors to the hardware.
// delay(DELAYVAL); // Pause before next pass through loop
}
}
PS
googleRGB+LED+Ring+24Bit+WS2812B+5050+esp8266
購買RGB-LED-Ring-24Bit-WS2812B-5050-lamp-RGB-LED-Board-with-Integrated-Drivers/
二 SSD1331 color OLED 0.95" SPI 7Pins 96x94
circuitdigest.com/ssd1306-oled-display-with-esp8266
三 SSD1306 oled 128x32 I2C
lastminuteengineers.com/oled-display-esp8266l/
// Display Inverted Text
display.setTextColor(BLACK, WHITE); // 'inverted' text
display.setCursor(0,28);
display.println("Hello world!");
display.display();
delay(2000);
display.clearDisplay();
四
改用Bme 溫濕感測器
https://www.olaf-goette.de/blog--diverse-themen/blog/tostedt/cloudbasierte-wetterstation.html?fbclid=IwAR1gxay7mlcXUK_5zcMt7bi_6FtxrRZtSJ_6gwz4-ILgz1dvsKjKG3joMqM
五
PWM 風扇值 =
PM2.5/2 +500(濾芯可吸入空氣的臨界值)
六
預設風扇 CoolMaster JETFLO 120 4pin PWM 36dBA 0.4A 95CFM(161.3m3/h) 12x12x2.5cm
SilverStone Air Blazer 120R 93.97 CFM 35.6 dBA 0.32A 349元
105CFM [絕對暴力] 12cm 暴力風扇 89元
PS
這連結好玩 ALEXA
https://www.birdandgua.net/bird/2018/01/when_alexa_meets_esp8266-2/
沒有留言:
張貼留言