Cov txheej txheem:
- Kauj Ruam 1: Dab Tsi Pollution Hmo Ntuj thiab Nws Ntsuas Li Cas
- Kauj ruam 2: BOM
- Kauj ruam 3: Circuit Court
- Kauj Ruam 4: HTU21D Sensor
- Kauj ruam 5: TSL2591
- Kauj ruam 6: Code
- Kauj Ruam 7: Sab hauv
Video: Portable Chaw Nres Tsheb Huab Cua rau Hmo Ntuj Soj Ntsuam: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Lub teeb qias neeg yog ib qho ntawm ntau yam teeb meem hauv ntiaj teb. Txhawm rau daws qhov teeb meem ntawd, peb yuav tsum paub ntau npaum li cas hmo ntuj ntuj tsis zoo nrog lub teeb ci. Coob tus tub ntxhais kawm nrog cov kws qhia ntawv hauv ntiaj teb sim ntsuas lub teeb qias neeg nrog lub ntsuas pa kim. Kuv txiav txim siab hloov kuv lub luxmeter portable (kom paub ntau ntxiv yav dhau los cov lus qhia ua haujlwm Portable Luxmeter) rau huab cua chaw nres tsheb nrog TSL2591 sensor. Qhov ntsuas no nkag siab txaus rau ntsuas kev ua paug hmo ntuj. Tsis tas li, kuv ntxiv HTU21D rau ntsuas kub thiab av noo.
Kauj Ruam 1: Dab Tsi Pollution Hmo Ntuj thiab Nws Ntsuas Li Cas
Hmo ntuj qias neeg yog teeb los ntawm teeb, tsheb, tsev, loj lcd vaj huam sib luag hauv nroog thiab txhua lub teeb tsim los ntawm tib neeg. Lub teeb ntawd hu ua khoom neeg. Rau cov neeg soj ntsuam, lub teeb pom kev yog qhov teeb meem tseem ceeb kom pom cov hnub qub los ntawm nroog, thiab lawv yuav tsum tawm mus sab nrauv lub nroog. Rau tib neeg, lub teeb qias neeg qias neeg yog teeb meem. Thiab kuj rau ntoo, nyom thiab tsiaj txhu.
Txhawm rau txheeb xyuas lub teeb qias neeg ntawm koj qhov chaw, koj tuaj yeem pom ntawm no lightpollutionmap
Nws tsuas yog tus qauv, thiab qhov txiaj ntsig tiag tiag tuaj yeem sib txawv. Tias yog vim li cas kuv tsim qhov luxmeter.
Txog kev ntsuas lub teeb qias neeg, Kuv ntsuas tsuas yog lux thiab suav qhov ntau/ arsec2.
Kuv tuaj yeem suav los ntawm lux rau candela ib suqare meters:
1 cd/m2 = 1 lux
Qhov loj ib square arcsecond (mag/arcsec2) piav qhia yav hmo ntuj ntuj tom qab (nws hu qhov ci ntsa iab).
Ntau ntawm wiki: Qhov ci ntsa iab
Txog xam cd/m2 rau mag/arcsec2 yog cov mis:
[tus nqi hauv mag/arcsec2] = Log10 ([tus nqi hauv cd/m2]/108000)/-0.4
unihedron.com/projects/darksky/magconv.php
Kauj ruam 2: BOM
Rau qhov haujlwm no koj xav tau:
1. WEMOS D1 Mini lossis ib lub microcontroller
(Kuv siv wemos, vim nws tsawg tshaj plaws, nrog usb chaw nres nkoj, koj tuaj yeem sim Arduino Nano)
WEMOS D1 MINI (Yanwen Economic Air Mail)
WEMOS D1 MINI (AliExpress Txheem Xa Khoom)
WEMOS D1 MINI 10 pcs (Tuam Tshoj Tshaj Tawm Sau Npe Air Mail - Nkoj pub dawb)
usb cable rau kev ua haujlwm thiab xa cov cai rau wemos
2. TSL2591 Sensor
TSL2591 (Yanwen Economic Air Mail)
TSL2591 (Tuam Tshoj Tshaj Npe Sau Npe Air Mail)
TSL2591 (Tuam Tshoj Tshaj Npe Sau Npe Air Mail)
3. HTU21D ntsuas kub thiab av noo
HTU21D (Cainiao Super Economy)
HTU21D (Yanwen Economic Air Mail - thauj dawb)
4. OLED zaub 0.96 (128 x 64)
OLED zaub
OLED zaub
OLED zaub
5. 18650 roj teeb
18650 lithium ion roj teeb
18650 lithium ion roj teeb
roj teeb 18650 tus tuav
6. TP4056 them nqi
ib 4056
ib 4056
7. hloov cov nyees khawm lossis nqes jumper
swtich liab poob
swtichers, ntau qhov sib txawv
8. breadboard thiab dupont cables
daim ntawv me me
khoom noj khoom haus
9. rooj plaub, Kuv tsim los ntawm ntoo + kab xev
kab xev liab
Prusa 3D tshuab luam ntawv, Kuv vam tias kuv yuav ua cov ntaub ntawv los ntawm yas: D
Kauj ruam 3: Circuit Court
Circuit Court yog yooj yim zoo nkauj:
Txuas txhua i2c cov qauv (TSL2591, OLED, HTU21D) rau SCL thiab SDA tus pin ntawm wemos (SDA -> D2, SCL -> D1).
Hwj chim lawv nrog 3.3 V los ntawm wemos.
Txuas txuas ntxiv lub roj teeb rau 5V tus pin ntawm wemos thiab roj teeb + tus pin ntawm tp4056 them tus nqi ntxiv rau lub davhlau ya nyob twg ntawm roj teeb.
Txuas txhua thaj chaw ua ke.
Kauj Ruam 4: HTU21D Sensor
Kuv yuav cov ntsuas kub tshiab, uas ntsuas nrog qhov tseeb 0.3 ° C!
Yam uas koj yuav tsum paub txog lub ntsuas cua no (los ntawm sparkfun):
- Siv I2C interface
- Raug cov av raug ntawm ± 2%
- Raug ntsuas qhov tseeb ntawm ± 0.3 ° C.
- Ua haujlwm los ntawm 0 txog 100% cov av noo tab sis lub ntsuas cua no tsis pom zoo rau ib puag ncig hnyav uas nws tuaj yeem cuam tshuam nrog dej (xws li nag).
- 3.3V lub ntsuas hluav taws xob - siv inline logic qib hloov pauv lossis 10k resistors los txwv 5V cov cim
- Tsuas yog ib qho HTU21D sensor tuaj yeem nyob ntawm I2C tsheb npav ib zaug
Kuv cov ntsiab lus: nws yog qhov ntsuas zoo, vim nws ntsuas nrog qhov tseeb 0.3 ° C thiab ob qho tib si - kub thiab av noo. Pros yog I2C cuam tshuam thiab cuam tshuam 3.3V, tab sis nws tsis muaj teeb meem hauv kuv cov ntaub ntawv.
Kauj ruam 5: TSL2591
Qhov ntsuas no zoo rau ntsuas huab cua ntuj hmo ntuj vim nws nkag siab (rau 188 micro lux!)
1. yog diodes nrog tau ir thiab ntsuas tag nrho. Kuv tsis siv nws.
2. qhov ntsuas hluav taws xob los ntawm 5V txog 3.3 V
Chip specifications (los ntawm adafruit):
- Kwv yees Tib Neeg Qhov Muag Teb
- Qhov dav dav dav dav ntau yam 1 txog 600, 000, 000 Suav
- Lux Range: 188 uLux rhiab heev, mus txog 88, 000 Lux cov tswv yim ntsuas.
- Kub ntau: -30 txog 80 *C.
- Voltage ntau: 3.3-5V rau hauv pawg tswj hwm
- Kev sib txuas lus: I2C
- Pawg thawj coj/nti siv I2C 7-qhov chaw nyob 0x29 (tsau)
- Qhov ntev: 19mm x 16mm x 1mm /.75 "x.63" x.04 "Nyhav: 1.1g
- 2 diodes rau ntsuas ob qho tib si - IR thiab puv spectrum
Ntsiab lus:
188 uLux yog qhov ua tau zoo, tseem I2C kev sib txuas lus yog qhov yooj yim. Tej zaum qhov teeb meem tuaj yeem kho I2C chaw nyob (0x29). Tsis tas li ntawm cov tswj hwm lub rooj tsavxwm yog qhov zoo thiab tuaj yeem siv lub ntsuas cua thaum lub caij ntuj no (te).
Kauj ruam 6: Code
Koj xav tau cov tsev qiv ntawv no (Kuv ntxiv lawv rau ib daim ntawv zip):
- Adafruit-GFX-Library-master
- adafruit_gfx_library_master
- Adafruit_HTU21DF_Library-master
- Adafruit_Sensor-tus tswv
- Adafruit_TSL2591_Library-master
Code: koj tuaj yeem siv kuv li, lossis tsim tus kheej. Tsis txhob hnov qab teeb tsa lub sijhawm sib koom ua ke ntau tshaj (600 MS) thiab nce mus rau qhov siab (GAIN_MAX) rau hmo ntuj ntsuas.
Yog tias koj sim siv kuv tus lej, thov download ino file. Thaum kuv luam tawm los ntawm kev qhia kuv tus lej, qee yam tsis raug nrog tsev qiv ntawv
Kuv siv kev thau duab duab ntawm lub hli tsuas yog rau kev lom zem. Koj tuaj yeem siv ib qho, tsuas yog siv nplooj ntawv no kom tau txais array:
javl.github.io/image2cpp/
//https://lastminuteengineers.com/oled-display-arduino-tutorial///https://javl.github.io/image2cpp/ // mcd to magnitude https://unihedron.com/projects/darksky/magconv.php… // HD44780 yog tus tswj hwm rau tus cwj pwm raws li cov kua siv lead ua kua (LCDs). https://unihedron.com/projects/darksky/magconv.php… #include
#suav nrog
#include #include #include "Adafruit_HTU21DF.h" #include "Adafruit_TSL2591.h" int txee; // OLED display TWI address #define OLED_ADDR 0x3C Adafruit_SSD1306 zaub (-1); // - 1 rau rov pib dua zaub nrog khawm rov pib dua ntawm pawg thawj coj saib Adafruit_HTU21DF htu = Adafruit_HTU21DF (); Adafruit_TSL2591 tsl = Adafruit_TSL2591 (2591); // dhau tus lej rau tus lej cim (rau koj siv tom qab) uint32_t lum; uint16_t ir, puv; koj ulux; ntab lux; ntab dej; ntab rel_hum; ntab mag_arcsec2; // nrig txog kev pom mags/arcsecond² [tus nqi hauv mag/arcsec2] = Log10 ([tus nqi hauv cd/m2]/108000)/-0.4 // cim // degree rau Celsius const unsigned char degree PROGMEM = {0xe, 0x11, 0x11, 0x11, 0xe, 0x0, 0x0, 0x0}; // exponent 2 const unsigned char exponent PROGMEM = {0xe, 0x1b, 0x3, 0x6, 0xc, 0x18, 0x1f, 0x0}; // 'moon_logo', 128x64px const unsigned char intro PROGMEM = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x03, 0xff, 0xc0, 0xc0, 0xx3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x07, 0xff, 0xe0, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xxe, 0x0f, 0xff, 0xf0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x0f, 0xff, 0xff, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x1f, 0xbe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x3f, 0xc0, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xc0, 0xff, 0xff, 0xff, 0x8f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x3f, 0xe0, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x3f, 0x80, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x3f, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0xx3f, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x ff, 0xff, 0xf0, 0x00, 0x3f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x18, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xxe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe1, 0xe7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x18, 0xff, 0xff, 0xff, 0xff, 0xff, 0xxe, 0xxe, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x38, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x48, 0x7f, 0xff, 0xff, 0xff, 0xc0, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x80, 0x80, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xc4, 0x1f, 0xff, 0xff, 0xfc, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x60, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xf0, 0x03, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0xff, 0xff, 0xff, 0xf0, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xf1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xxe, 0xxe, 0xxe, 0xxe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xxe, 0xxe, 0x0000, 0x43, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x3f, 0xff, 0xff, 0xff, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x03, 0xff, 0xff, 0xff, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0xf0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x01, 0x0f, 0xx3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x01, 0xfe, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x 00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x00, 0x01, 0xff, 0xff, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xf3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0xf8, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x80, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; teeb tsa tsis muaj dabtsis () {// htu21d htu.begin (); // tsl2591 sensor_t sensor; tsl.getSensor (& sensor); tsl.setGain (TSL2591_GAIN_MAX); // MAX, HIGH MED, LOW, tsl.setTiming (TSL2591_INTEGRATIONTIME_600MS); // 100MS, 200 MS, 300MS, 400MS, 500MS, 600MS // teeb rau oled zaub display.begin (SSD1306_SWITCHCAPVCC, OLED_ADDR); display.clearDisplay (); display.display (); display.drawBitmap (0, 0, intro, 128, 64, WHITE); display.display (); ncua (1000); display.setTextSize (1); display.setTextColor (WHITE); display.setFont (& FreeSerif9pt7b); display.clearDisplay (); } tsis muaj dab tsi voj () {lux = 0; ulux = 0; mag_arcsec2 = 0; twm = 0; rel_hum = 0; ncua (100); lum = tsl.getFullLuminosity (); ir = lum >> 16; puv = lum & 0xFFFF; ncua (100); lux = tsl.calculateLux (full, ir); // light intensiti in microlux ulux = lux*1000000; yog (ulux <0) {ulux = 0; } mag_arcsec2 = log10 (lux/108000)/-0.4; // (log ((ulux/108000)) /(-0.4) temp = htu.readTemperature (); rel_hum = htu.readHumidity (); display_values ();} void display_values () {//display.drawPixel(120, 50, WHITE); display.clearDisplay (); display.setCursor (1, 15); display.print (temp); display.drawBitmap (42, 2, degree, 8, 5, WHITE); display.setCursor (50, 15); display.print ("C"); display.setCursor (70, 15); display.print (rel_hum); display.setCursor (114, 15); display.print ("%"); display.drawLine (1, 20, 127, 20, WHITE); display.drawLine (67, 1, 67, 20, WHITE); display.setCursor (1, 35); display.print ("ulux ="); display.setCursor (50, 35); display.print (ulux); display.setCursor (1, 55); display.print ("mag/arsec"); display.drawBitmap (70, 45, exponent, 8, 8, WHITE); display. setCursor (83, 55); display.print (mag_arcsec2); display.display ();}
Kauj Ruam 7: Sab hauv
Kuv tsim tus kheej cov ntaub ntawv thiab kuv siv breadboard nrog dupont cables raws li koj tuaj yeem pom.
Kuv siv TP4056 rau them roj teeb nrog usb cable (xav tau swtich dip jumper).
Rau kev qhib/tua Kuv siv lub jumper poob.
Txog rau nruab hnub, TSL2591 qhia 0 thiab mag/arcsec2 yog nan.
Txog rau ntuj hmo ntuj yuav tsum TSL2591 qhia los ntawm 0 txog 1000 000 microlux (ulux) thiab sib xws mag/arcsec2
(cca. 14 txog 22 mag/arsec2).
Rau fullMoon Kuv ntsuas 50k ulux uas yog 0.05 lux.
Pom zoo:
Hmo Hmo Pom Kev Tsaus Ntuj & Tsaus Ntuj Pom Kev - Tsis Muaj Micro: 7 Kauj Ruam (nrog Duab)
Hmo Hmo Pom Kev Tsaus Ntuj & Pom Kev Tsaus Ntuj - Tsis Muaj Micro: Cov lus qhia no yog hais txog kev tiv thaiv koj kom tsis txhob txhuam koj cov ntiv taw thaum taug kev los ntawm chav tsaus. Koj tuaj yeem hais nws yog rau koj tus kheej kev nyab xeeb yog tias koj sawv thaum hmo ntuj thiab sim ua kom lub qhov rooj nyab xeeb. Tau kawg koj tuaj yeem siv lub teeb rau ntawm lub txaj lossis lub ntsiab lus tseem ceeb
Chaw Nres Tsheb Huab Cua DIY & WiFi Chaw Nres Tsheb Sensor: 7 Kauj Ruam (nrog Duab)
Chaw Tshawb Xyuas Huab Cua DIY & WiFi Chaw Nres Nkoj: Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub chaw nres tsheb huab cua nrog rau qhov chaw nres tsheb WiFi sensor. Lub chaw nres tsheb ntsuas ntsuas cov ntaub ntawv kub thiab av noo hauv cheeb tsam thiab xa nws, los ntawm WiFi, mus rau chaw nres tsheb huab cua. Cov chaw nres tsheb huab cua tom qab ntawd qhia t
Huab cua-chaw nres tsheb Nrog Arduino, BME280 & Zaub rau Pom Kev Pom Zoo Hauv 1-2 Hnub Xeem: 3 Kauj Ruam (nrog Duab)
Huab cua-chaw nres tsheb Nrog Arduino, BME280 & Zaub rau Pom Kev Pom Zoo Hauv 1-2 Hnub Xeem: Nyob Zoo! Ntawm no ntawm cov lus qhia qhia txog huab cua tau twb tau qhia lawm. Lawv qhia txog huab cua tam sim no, qhov kub thiab txias. Dab tsi lawv tsis muaj txog tam sim no yog kev nthuav qhia ntawm chav kawm hauv 1-2 hnub dhau los. Cov txheej txheem no yuav muaj lub
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Huab Cua Huab Cua: 7 Cov Kauj Ruam (nrog Duab)
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Air Economizer: HRV Arduino Tus Tswj Nrog Air Economizer Yog li kuv keeb kwm nrog txoj haujlwm no yog kuv nyob hauv Minnesota thiab kuv lub rooj tsav xwm hluav taws xob kib ntawm kuv LifeBreath 155Max HRV. Kuv tsis xav them $ 200 rau qhov tshiab Kuv ib txwm xav tau qee yam nrog kev lag luam huab cua kev ua txhaum
Tus Hluas Nkauj Hmo Hmo Hmo Hmo: 34 Kauj Ruam (nrog Duab)
Tus Hluas Nkauj Hmo Hmo Hmo: Kuv xub tuaj nrog lub tswv yim rau Hluas Nkauj Hmo Hmo Hmo thaum kuv lwm qhov tseem ceeb qhia tias nws ntshai tsaus ntuj thiab tsis tuaj yeem pw tsis tau lub TV nyob. Ua rau muaj kev cuam tshuam yooj yim, Kuv tsis tuaj yeem tsaug zog thaum lub TV qhib. & Nb