Cov txheej txheem:

IOT Kev Ruaj Ntseg Tsev Ruaj Ntseg: 3 Kauj Ruam
IOT Kev Ruaj Ntseg Tsev Ruaj Ntseg: 3 Kauj Ruam

Video: IOT Kev Ruaj Ntseg Tsev Ruaj Ntseg: 3 Kauj Ruam

Video: IOT Kev Ruaj Ntseg Tsev Ruaj Ntseg: 3 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Hlis ntuj nqeg
Anonim
Image
Image

Ib qho ntawm cov ntawv thov IoT uas muaj txiaj ntsig tshaj plaws yog kev nyab xeeb hauv tsev. Xav txog ib tus tub sab txiav koj lub koob yees duab kev ruaj ntseg xaim thaum sim tsoo mus rau hauv koj lub tsev, qhov no yuav tsis tshwm sim yog tias koj li kev ruaj ntseg mus rau wireless thiab ntse.

Kev yuav cov khoom lag luam ruaj ntseg hauv tsev yuav yooj yim ua rau koj muaj hmoo, tab sis yog tias DIY, tus nqi pheej yig heev!

Ntawm no kuv yuav qhia koj yuav ua li cas kom yooj yim tiag ~

Khoom siv

  • Realtek Ameba1 RTL8195AM microcontroller x2
  • Reed sensor x1
  • Hlau nplaum x1
  • LED (liab) x1
  • Buzzer x1J
  • cev x6

Kauj Ruam 1: Npaj MQTT Server Txuas

Teeb Software
Teeb Software

MQTT yog lub tshuab-rau-tshuab (M2M)/"Internet ntawm Yam" kev sib txuas raws tu qauv. Nws tau tsim los ua qhov hnyav hnyav tshaj tawm/sau npe xa xov xa.

Peb tuaj yeem hais MQTT yog cov txheej txheem tsim rau IoT. MQTT yog ua raws TCP/IP thiab xa/tau txais cov ntaub ntawv ntawm kev tshaj tawm/sau npe.

Txij li thaum peb tab tom siv ameba pawg thawj coj txhim kho, peb tuaj yeem sau npe tus as khauj ntawm lub vev xaib raug cai ntawm https://www.amebaiot.com/en/, thiab tau txais MQTT server dawb txuas ntawm https://www.amebaiot.com/en /, Nco tseg, thaum koj tau sau npe ntawm AmebaIOT.com thiab tau sau npe koj lub cuab yeej rau "Cloud Service", tom qab ntawd lub npe siv thiab tus lej koj siv los nkag rau AmebaIOT.com zoo ib yam rau koj li MQTT kev sib txuas, cov ntsiab lus yuav piav qhia tom qab hauv qhia.

Kauj ruam 2: Teeb Software

Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software

Qhov nruab nrab ntawm txhua qhov IoT (Internet-of-Things) txoj haujlwm yog Wi-nkaus-siv microcontroller, peb tes num tsis muaj qhov tshwj xeeb. Wi-Fi microcontroller siv ntawm no yog Ameba-1 RTL8195AM los ntawm Realtek, nws tau txais ntau yam khoom siv muaj txiaj ntsig zoo thiab muaj zog Wi-nkaus module ntawm lub zog qis txaus kom khiav ntawm lub roj teeb ntawm tes rau lub lis piam.

Dab tsi ntxiv? Pawg no yog programmable ntawm Arduino IDE! Yog, tsis muaj kev kawm nyuaj software xav tau, tsuas yog qhib koj Arduino IDE thiab muab cov kab ntawv txuas hauv qab no rau hauv "tus thawj tswj hwm ntxiv URLs" nyob rau hauv "Cov Ntaub Ntawv -> Nyiam" thiab microcontroller tag nrho cov cuab yeej siv thiab cov khoom siv yuav raug rub tawm ncaj qha los ntawm kev teeb tsa lub rooj tsavxwm no los ntawm "Board Manager" nyob rau hauv "Tools -> Board"

Tom qab ntawd, koj tuaj yeem rub qhov chaws los ntawm Github ntawm

Daim ntawv ceeb toom muaj 2 ino. cov ntaub ntawv hauv qhov chaw cia khoom, ib qho rau buzzer-txuas ameba thiab lwm qhov rau LED-txuas nrog ameba.

Qhov kawg uas koj yuav tsum tau ua txog cov cai yog txhawm rau kho cov ntaub ntawv hauv qab no ntawm tus lej koj nyuam qhuav rub tawm thiab tom qab ntawd koj tau npaj los tsoo lub pob "Upload" thaum kawg thiab tau txais cov cai flashed ntawm ameba hauv vib nas this.

Kauj Ruam 3: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas

Koj tuaj yeem xa mus rau ntu khoom siv kom tau txais cov npe khoom uas koj xav tau (saib daim duab 1).

Rau lub hom phiaj ua qauv qhia, peb tau tsim phab ntsa nrog lub qhov rai siv daim foos yuav los ntawm DIY khw, thiab lub qhov rai siv cov thawv yas pob tshab, koj tuaj yeem hla qhov no yog xav tau.

Kev sib txuas hauv Circuit Court yog qhov yooj yim dua, txheeb xyuas daim ntawv qhia kev sib txuas hauv qab no kom tau txais txhua yam txuas nrog, (xa mus rau daim duab 2 & 3)

Nov yog qhov nws zoo li cas thaum kev sib txuas ua tiav, (saib daim duab 4)

Tam sim no siv qee cov nplaum rau ntawm ob lub reed hloov thiab cov hlau nplaum thiab muab lawv tso rau ntawm 2 sab ntawm lub qhov rais zoo li no, (saib daim duab 5)

Tom qab ntawd muab lub tswb nrov thiab LED liab txuas rau lwm tus ameba los ntawm lub qhov drilled ntawm lub rooj tsavxwm zoo li no, (xa mus rau daim duab 6)

Yog li, kev teeb tsa ua tiav yuav zoo li qhov no, (saib daim duab 7)

Tam sim no, lub zog ob qho tib si ameba nce thiab txaus siab rau qhov ua tau zoo tshaj plaws thiab teb IOT kev ruaj ntseg hauv tsev!

PS: Thaum lub qhov rais qhib los ntawm tus kheej tau caw, lub suab nrov yuav ua rau nrov nrov ua rau lub suab nrov nrov thiab LED liab pib ntsais muag zoo li vwm kom ceeb toom tus tswv thiab ua kom ntshai tus kheej caw.

Pom zoo: