Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Kev sib txuas
- Kauj ruam 3: Software
- Kauj ruam 4: Sketch
- Kauj Ruam 5: Qhia Peb Cov Ntaub Ntawv
- Kauj Ruam 6: Siv Lub Vev Xaib
Video: IoT Hydroponics - Ntsuas EC: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Cov lus qhia no yuav qhia yuav ua li cas thiaj ua Bluetooth Tsis Muaj Hluav Taws Xob Internet ntawm Yam khoom siv los tshuaj xyuas Cov Hluav Taws Xob Hluav Taws Xob ntawm cov khoom siv tshuaj hydroponic.
Kho vajtse yuav yog ESP32 pawg thawj coj txhim kho thiab uFire Isolated EC Probe Interface.
Peb yuav nthuav tawm peb cov ntaub ntawv ntawm nplooj ntawv yooj yim uas txuas rau peb lub cuab yeej los ntawm Web Bluetooth.
Kauj Ruam 1: Yam Koj Yuav Tsum Tau
- Txhua lub rooj tsav xwm txhim kho ESP32. Qhov no zoo li tsim nyog, tab sis ib qho twg yuav ua haujlwm.
- Isolated EC Probe Interface board thiab K1 conductivity probe. Koj tuaj yeem tau txais ob qho ntawm ufire.co
- Qee qhov txawv thiab xaus zoo li xov hlau thiab USB cables.
Kauj ruam 2: Kev sib txuas
ESP32 peb tab tom siv muaj WiFi thiab BLE cuam tshuam, yog li tsuas yog xav tau lub zog siv. Tej zaum koj yuav xav tau USB cable muab lub zog hluav taws xob, tab sis roj teeb yog lwm txoj kev xaiv. Ntau ESP32s tuaj yeem yuav nrog lub roj teeb them hluav taws xob hluav taws xob twb nyob ntawm lub rooj tsavxwm.
Cov cuab yeej uFire uas peb yuav ntsuas EC thiab ntsuas kub sib txuas rau ESP32 los ntawm I2C npav. Nrog ESP32, koj tuaj yeem xaiv ob qho pins rau I2C. Ob lub cuab yeej yuav nyob ntawm tib lub npav, yog li SCL thiab SDA tus pin yuav zoo ib yam. Yog koj saib cov cai, koj yuav pom kab no.
uFire_EC_BLE ec_ble (19, 23);
Kuv txiav txim siab siv tus pin 19 rau SDA thiab tus pin 23 rau SCL. Yog li Txuas ESP32's 3.3v (lossis xijpeem tus pin tuaj yeem hu rau ntawm koj lub rooj tshwj xeeb) mus rau EC uFire ntaus ntawv 3.3/5v tus pin, GND rau GND, 19 rau SDA, thiab 23 rau SCL. Tam sim no txuas lub uFire pH board rau EC board, tus pin rau tus pin. Koj lub rooj tsav xwm ESP32 yuav muaj tus pin-tawm txawv dua li daim duab.
Kauj ruam 3: Software
- Kuv yuav xav tias koj paub nrog Arduino, Arduino IDE, thiab nws tau teeb tsa lawm. Yog tsis yog, ua raws cov kab ntawv txuas.
- Yam tom ntej yog tau txais ESP32 lub platform teeb tsa. Vim qee qhov, qhov no tsis tau yooj yim los ntawm kev muaj lub platform tswj hwm tus IDE tau muab, yog li koj yuav tsum tau mus rau nplooj ntawv github thiab ua raws cov lus qhia teeb tsa tsim nyog.
-
Tam sim no rau cov tsev qiv ntawv:
- Los ntawm hauv Arduino IDE, tau txais Sketch / suav nrog Tsev Qiv Ntawv / Tswj Tsev Qiv Ntawv… thiab tshawb nrhiav thiab teeb tsa 'Isolated EC Probe Interface'.
- Tshawb nrhiav thiab teeb tsa 'ESP32 BLE Arduino'
Kauj ruam 4: Sketch
Cov duab kos rau txoj haujlwm no yog nrawm thiab yooj yim.
Koj tuaj yeem pom nws ntawm nplooj ntawv github. Nws tseem yuav ua piv txwv BLE. Thiab kom ntsuas tau zoo, nws tau txuas nrog cov lus qhia no ib yam.
#suav nrog "uFire_EC_BLE.h" // Ntawm ESP32, I2C pins tuaj yeem xaiv. Hauv qhov no, sda = 19 thiab scl = 23 uFire_EC_BLE ec_ble (19, 23); tsis muaj teeb tsa teeb tsa () {// pib BLE server ec_ble.startBLE (); } void loop () {// voj hla thiab ntsuas ntsuas txuas ntxiv ec_ble.measureEC (); ec_ble.measureTemp (); }
Kauj Ruam 5: Qhia Peb Cov Ntaub Ntawv
Tam sim no tias kho vajtse tau teeb tsa, peb xav tau txoj hauv kev yooj yim los tso saib peb cov ntaub ntawv. Txog qhov ntawd, peb yuav ua lub vev xaib yooj yim uas siv Web Bluetooth. Yog tias koj tsis paub nrog nws, nws yog Javascript API uas tam sim no tsuas muaj nyob hauv Chrome. Nws tso cai rau koj txuas rau BLE lub cuab yeej los ntawm lub vev xaib.
Ua tibzoo saib ntawm github repo.
Raws li kev txheeb xyuas sai:
- nws siv bulma.io rau styling
- Vue rau pem hauv ntej-kawg moj khaum
- app.js muaj tag nrho cov lej javascript
- index.html muaj tag nrho cov html
Qee yam yuav tsum nco ntsoov, yog tias koj xav txhim kho koj tus kheej lub vev xaib:
- nws yuav tsum tau txais kev pabcuam los ntawm https server, koj nkag tsis tau nws los ntawm cov ntawv hauv zos (file: //). Nov yog tus nab hab sej zoo https webserver kom pib.
- Tsuas yog Chrome version 55+ ua haujlwm rau qhov kev siv tshwj xeeb no. Koj tuaj yeem sau ib qho app lossis program siv ntau BLE APIs ib txwm muaj.
- Ua kom ntseeg tau tias Kev Tshawb Fawb Web Platform nta tau qhib los ntawm kev mus rau chrome: // chij/#enable-experimental-web-platform-features thiab rov pib dua browser. Ntawm qhov tshiab ntawm Chrome, qhov no tau qhib los ntawm lub neej ntawd.
Kauj Ruam 6: Siv Lub Vev Xaib
Tam sim no txhua yam tau muab tso ua ke, programmed, thiab lub vev xaib tau txais kev pabcuam, peb tuaj yeem saib qhov kawg.
Qhib lub vev xaib, hauv peb qhov xwm txheej, nws nyob ntawm https://ufire.co/uFire_BLE/, nyem lub cim Bluetooth nyob rau sab xis thiab xaiv uFire EC ntaus ntawv. Tam sim no koj yuav tsum pom EC nyeem ntawv hauv mS thiab ntsuas kub hauv C.
Koj tseem tuaj yeem teeb tsa qee qhov kev xaiv ntsuas.
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov av noo noo Cov Lus Qhia Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): 5 Cov Kauj Ruam
Cov av noo noo Cov lus pom zoo Tswj Xyuas Internet Txuas Cov Dej Dej (ESP32 thiab Blynk): Tsis txhawj xeeb txog koj lub vaj lossis nroj tsuag thaum koj mus rau hnub so ntev, lossis tsis nco qab ywg dej koj cov nroj tsuag txhua hnub. Zoo ntawm no yog kev daws teeb meem Nws cov av ya raws tswj hwm thiab thoob ntiaj teb txuas nrog cov dej txau dej tswj los ntawm ESP32 ntawm software pem hauv ntej kuv
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): 3 Cov Kauj Ruam
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): Peb txhua tus nyiam ua si nrog peb tus lej L … cov ntsiab lus tau ntxiv thiab nws tsis tshwj xeeb rau lub qhov muag. Arduino IDE cov phiaj xwm tsis
Cov Ntawv Cim Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Cov Ntawv Cim - Cov Khoom Siv Soldering: 11 Kauj Ruam
Cov Khoom Siv Hluav Taws Xob LED Taws Teeb Cov Neeg Hlau Daim Npav - Cov Khoom Siv Soldering: Kab lus no tau txaus siab txhawb nqa los ntawm PCBWAY.PCBWAY ua cov qauv zoo PCBs rau tib neeg thoob plaws ntiaj teb. Sim nws rau koj tus kheej thiab tau txais 10 PCBs rau tsuas yog $ 5 ntawm PCBWAY nrog qhov ua tau zoo heev, Ua tsaug PCBWAY. Robadge#1 uas kuv tau tsim rau
IOT Smoke Detector: Hloov Kho Cov Hluav Taws Xob Uas Muaj Cov IOT: 6 Cov Kauj Ruam (nrog Duab)
IOT Cov Ntsuas Hluav Taws Xob: Hloov Kho Cov Hluav Taws Xob Uas Muaj Cov IOT: Cov npe ntawm cov koom nrog, Tus tsim tawm: Tan Siew Chin, Tan Yit Peng, Tan Wee Heng Tus Thawj Saib Xyuas: Dr Chia Kim Seng Department of Mechatronic thiab Robotic Engineering, Kws qhia ntawv ntawm Hluav Taws Xob thiab Hluav Taws Xob, Universiti Tun Hussein Onn Malaysia Kev faib tawm