Cov txheej txheem:
- Kauj Ruam 1: Daim Ntawv Teev Npe
- Kauj ruam 2: Pin Layout
- Kauj Ruam 3: Tshawb Pom Kev
- Kauj Ruam 4: Tshawb Pom Suab
- Kauj Ruam 5: GPS - Los ntawm Google Geolocation API
- Kauj Ruam 6: Kev ceeb toom Siv Telegram Bot Service (Opensource)
- Kauj Ruam 7: Txheeb Xyuas - Siv ThingSpeak Channel
- Kauj Ruam 8: Lub Sijhawm Pom Kev Pom Zoo & Txheeb Xyuas
Video: ESP - Cov Lus Ceeb Toom Txog Chaw Nyob Ib Ntus: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Tus qauv yog ua raws IOT nti nrov ESP8266.
ESP8266
Qhov no yog tus nqi qis Wi-nkaus microchip nrog tag nrho TCP/IP pawg thiab microcontroller muaj peev xwm tsim los ntawm Shanghai-based Suav chaw tsim khoom, Espressif Systems.
- Tus Txheej Txheem: L106 32-ntsis RISC microprocessor core raws li Tensilica Xtensa Pob Zeb Diamond Txuj 106Micro khiav ntawm 80 MHz †
-
Nco:
- 32 KiB qhia RAM
- 32 KiB qhia cache RAM
- 80 KiB cov neeg siv cov ntaub ntawv RAM
- 16 KiB ETS system data RAM
- Sab nraud QSPI flash: txog 16 MiB tau txais kev txhawb nqa (512 KiB txog 4 MiB feem ntau suav nrog)
-
IEEE 802.11 b/g/n Wi-nkaus
- Kev koom ua ke TR hloov pauv, balun, LNA, lub zog siv hluav taws xob thiab sib txuas network
- WEP lossis WPA/WPA2 kev lees paub, lossis qhib tes hauj lwm
- 16 GPIO pin
- SPI I²C (kev siv software) [5]
- I²S cuam tshuam nrog DMA (sib koom pins nrog GPIO)
- UART ntawm cov pins tshwj xeeb, ntxiv rau kev xa-tsuas yog UART tuaj yeem ua haujlwm ntawm GPIO2
- 10-ntsis ADC (kwv yees kwv yees ADC)
Kauj Ruam 1: Daim Ntawv Teev Npe
- REES52 Lub Suab Pom Kev Pom Zoo Sensor
- OEM Kev co Sensor Module - SW -420
-
2 ntawm NodeMCU-WiFi-Arduino-IDE-Lua-based-IoT-ESP8266-Pawg Neeg Loj Hlob
- CP2102 USB 2.0 rau TTL UART SERIAL CONVERTER MODULE nrog DTR tus pin
- LEDs - Liab, Daj, Xiav
Kauj ruam 2: Pin Layout
Tus Pin Layout
ESP A0 - Suab Sensor Tawm
ESP 0 - LED (Suab)
ESP 5 - Kev co co D0
ESP 4 - LED (kev co)
Kauj Ruam 3: Tshawb Pom Kev
OEM Kev co Sensor Module - SW -420
Kev ntsuas kev co raws li kev ntsuas kev co SW-420 thiab Sib Piv LM393 txhawm rau txheeb xyuas yog tias muaj kev co uas dhau ntawm qhov pib. Qhov pib tuaj yeem hloov kho los ntawm cov khoom siv hauv lub zog.
Thaum qhov no tsis muaj kev vibration, cov qauv no tso tawm qhov laj thawj LOW lub teeb liab qhia LED lub teeb, Thiab hloov pauv.
Kev qhia tshwj xeeb
- Lub xeev pib ntawm qhov hloov pauv tau nyob ze
- Cov zis tawm Cov khoom siv hluav taws xob: 3.3V-5V
- On-board qhov taw qhia LED kom pom cov txiaj ntsig
- On-board LM393 nti
- Dimension ntawm lub rooj tsavxwm: 3.2cm x 1.4cm
Kauj Ruam 4: Tshawb Pom Suab
REES52 Lub Suab Pom Kev Pom Zoo Sensor
Lub suab sensor module muab txoj hauv kev yooj yim txhawm rau txheeb xyuas lub suab thiab feem ntau yog siv los kuaj xyuas lub suab siv. Cov qauv no tuaj yeem siv rau kev nyab xeeb, hloov pauv, thiab saib xyuas cov ntawv thov. Nws qhov tseeb tuaj yeem hloov kho kom yooj yim rau kev siv. Nws siv lub microphone uas muab cov tswv yim rau lub tshuab ua kom nrov, lub ncov ntsuas thiab tsis nyob. Thaum lub ntsuas pom lub suab, nws ua cov teeb liab tso zis uas tau xa mus rau lub microcontroller tom qab ua tiav qhov tsim nyog ua.
Kev qhia tshwj xeeb
- Kev siv hluav taws xob 3.3V-5V
- Cov qauv tsim tawm: cov hloov pauv digital (0 thiab 1, qib siab lossis qis)
- Nrog lub qhov ntsia hlau ntsia
Kauj Ruam 5: GPS - Los ntawm Google Geolocation API
Google Maps Geolocation API
Google Maps Geolocation API xa rov qab qhov chaw thiab qhov tseeb ib puag ncig raws li cov ntaub ntawv hais txog cov xov tooj ntawm tes thiab WiFi nodes uas tus neeg siv khoom txawb tuaj yeem tshawb pom. Cov ntawv no piav qhia cov txheej txheem siv los xa cov ntaub ntawv no mus rau server thiab xa cov lus teb rau tus neeg siv khoom.
Kev sib txuas lus tau ua tiav dhau HTTPS siv POST. Ob qhov kev thov thiab lus teb tau muab ua qauv raws li JSON, thiab hom ntsiab lus ntawm ob qho yog daim ntawv thov/json. Ua ntej koj pib tsim nrog Geolocation API, tshuaj xyuas qhov yuav tsum tau ua pov thawj (koj xav tau tus lej API) thiab API siv txwv. Geolocation thov Geolocation thov raug xa siv POST mus rau tus qauv URL hauv qab no:
www.googleapis.com/geolocation/v1/geolocat…
Cov Qauv Tseem Ceeb: AIzaSyAIPOo9wJkLREEqWACCZbk1Wm601Ojs0iY
Kauj Ruam 6: Kev ceeb toom Siv Telegram Bot Service (Opensource)
Telegram yog app xa xov nrog tsom mus rau kev nrawm thiab kev nyab xeeb, nws nrawm heev, yooj yim thiab tsis pub dawb. Nws tuaj yeem siv tau ntawm txhua lub cuab yeej tib lub sijhawm - cov lus sib txuas tau yooj yim hla txhua tus lej ntawm koj lub xov tooj, ntsiav tshuaj lossis khoos phis tawj.
Nrog Telegram, ib tus tuaj yeem xa lus, duab, yeeb yaj kiab thiab cov ntaub ntawv ntawm txhua hom (doc, zip, mp3, thiab lwm yam), ntxiv rau tsim pab pawg txog li 100, 000 tus neeg lossis cov channel rau tshaj tawm rau cov mloog tsis txwv. Ib tus tuaj yeem sau rau hauv kev sib cuag hauv xov tooj thiab nrhiav tib neeg los ntawm lawv cov npe siv. Telegram zoo li SMS thiab email ua ke - thiab tuaj yeem saib xyuas txhua yam koj tus kheej lossis kev lag luam xav tau kev xa xov. Ntxiv rau qhov no, nws txhawb qhov kawg-rau-kawg encrypted lub suab hu.
Tsab ntawv siv Telegram Bot kev pabcuam:
BotToken = "537307026: AAFD-w2yixZz29we4Qjw5_HgtL1T9ihMdK8";
Kauj Ruam 7: Txheeb Xyuas - Siv ThingSpeak Channel
ThingSpeak yog qhov qhib qhov Internet ntawm Yam (IoT) daim ntawv thov thiab API los khaws thiab khaws cov ntaub ntawv los ntawm yam uas siv HTTP raws tu qauv hauv Is Taws Nem lossis dhau ntawm Ib Cheeb Tsam Hauv Cheeb Tsam. ThingSpeak ua rau kev tsim cov ntawv thov ntsuas kev nkag mus, daim ntawv thov taug qab qhov chaw, thiab kev sib raug zoo ntawm cov khoom nrog xwm txheej hloov tshiab.
ThingSpeak tau pib tsim los ntawm ioBridge xyoo 2010 raws li kev pabcuam hauv kev txhawb nqa IoT daim ntawv thov. Matlab daim ntawv tso cai los ntawm Mathworks. ThingSpeak muaj kev sib raug zoo nrog Mathworks, Inc
Tsab ntawv siv cov lus hauv qab no ThingSpeak
- Txoj hlua apiKey = "BJAUZC22GNAUQCQQ";
- Txoj hlua thingtweetAPIKey = "8LFA68AASLC0096N";
Kauj Ruam 8: Lub Sijhawm Pom Kev Pom Zoo & Txheeb Xyuas
Pom zoo:
Kev Ceeb Toom Kub Ceeb Toom: 10 Kauj Ruam
Kev Ceeb Toom Kub Ceeb Toom: Nyob hauv Florida, Kuv txaus siab tsim cov khaub ncaws uas tuaj yeem ceeb toom kuv thaum nws kub heev sab nraum. Siv Arduino thiab ob peb yam yooj yim kuv tuaj yeem tsim lub rooj tsav xwm hauv Circuit uas tuaj yeem suav nrog hauv lub taub hau uas ceeb toom kuv thaum
Tau Txais Ntawv Ceeb Toom Email Thaum Ib Qho Chaw ntawm ThingSpeak Tsis Tau Hloov Kho Ib Ntus: 16 Kauj Ruam
Tau Txais Ntawv Ceeb Toom Email Thaum Ib Qho Chaw ntawm ThingSpeak Tsis Tau Hloov Kho Rau Ib Lub Sijhawm: Zaj dab neeg keeb kwm Los ntawm kev siv cov kev cai tsim lub xov tooj ntawm tes app, Kuv tuaj yeem saib xyuas thiab cuam tshuam nrog cov cuab yeej siv tau yooj yim hauv txhua lub tsev cog khoom. Kuv tuaj yeem qhib / kaw qhov yeej
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: 4 Kauj Ruam
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: Qhov haujlwm no peb tau ua Kev Tham / Lub Suab Ceeb Toom thiab Ceeb Toom. Tsawg kawg ob lub cim tuaj yeem siv tau hauv txoj haujlwm no
IoT Raws Li Kev Ceeb Toom Txog Kev Ntxhua Khaub Ncaws: 18 Kauj Ruam
IoT Raws Li Kev Ceeb Toom Txog Kev Ntxhua Khaub Ncaws: HiThis cov lus qhia qhia ib qib zuj zus qhia yuav ua li cas tsim IoT raws li kev ceeb toom kev ntxhua khaub ncaws.Qhov cuab yeej txuas nrog hauv koj lub tub rau khoom thiab lub hnab ntxhua khaub ncaws. Txog qhov pom zoo ntawm no, peb tau nqa ob lub tub rau khoom thiab ib lub hnab ntxhua khaub ncaws. Nws hnov
Kev Pom Kev Ceeb Toom Kev Ceeb Toom: 9 Kauj Ruam
Kev Pom Kev Ceeb Toom Kev Ceeb Toom: Phau ntawv qhia no qhia koj yuav ua li cas txhawm rau qhia rau Phillips Hawj kom ceeb toom. Nws yuav muaj txiaj ntsig zoo rau cov neeg lag ntseg thiab tsis hnov lus zoo, muaj lub zeem muag qis lossis tsis hnov lus zoo. Kev Pom Kev Ceeb Toom Ceeb Toom yog qhia rau cov neeg siv tom qab tau txais kev ceeb toom