Cov txheej txheem:

ESP - Cov Lus Ceeb Toom Txog Chaw Nyob Ib Ntus: 8 Kauj Ruam
ESP - Cov Lus Ceeb Toom Txog Chaw Nyob Ib Ntus: 8 Kauj Ruam

Video: ESP - Cov Lus Ceeb Toom Txog Chaw Nyob Ib Ntus: 8 Kauj Ruam

Video: ESP - Cov Lus Ceeb Toom Txog Chaw Nyob Ib Ntus: 8 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
ESP - Cov Chaw Ceeb Toom Ib Qho Chaw Nyob
ESP - Cov Chaw Ceeb Toom Ib Qho Chaw Nyob
ESP - Cov Chaw Ceeb Toom Ib Qho Chaw Nyob
ESP - Cov Chaw Ceeb Toom Ib Qho Chaw Nyob

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

Daim Ntawv Teev Npe
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
Tus 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

Kev Ntsuas Kev Ntsuas
Kev Ntsuas Kev Ntsuas
Kev Ntsuas Kev Ntsuas
Kev Ntsuas Kev Ntsuas

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

Kev Tshawb Fawb Suab
Kev Tshawb Fawb Suab
Suab Nrhiav
Suab Nrhiav

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

GPS - Los ntawm Google Geolocation API
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)

Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv Ceeb Toom Siv Telegram Bot Service (Opensource)
Cov Ntawv 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

Analytics - Siv ThingSpeak Channel
Analytics - 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: