Maitiro ekugadzira zigBee-yakavakirwa smart imba?

Imba yeSmart imba sepuratifomu, kushandiswa kweiyo yakasanganiswa wiring tekinoroji, network yekutaurirana tekinoroji, tekinoroji yekuchengetedza, otomatiki yekudzora tekinoroji, odhiyo uye vhidhiyo tekinoroji yekubatanidza zvivakwa zvine chekuita nehupenyu hwemhuri, hurongwa hwekuvaka nzvimbo dzekugara dzakashanda uye nyaya dzemhuri manejimendi. , kunatsiridza kuchengetedzeka kwemba, nyore, nyaradzo, hunyanzvi, uye kuona kuchengetedza kwezvakatipoteredza uye kuchengetedza simba kwekugara. Zvichienderana netsanangudzo yazvino yesmart home, tarisa kune hunhu hweZigBee tekinoroji, dhizaini yegadziriro ino, inodiwa mune ine smart home system (smart home (yepakati) control system, imba yekudzora magetsi system, imba yekuchengetedza masisitimu), pahwaro hwekujoinha imba wiring system, imba network system, kumashure mimhanzi system uye mhuri nharaunda yekudzora system. Pakusimbisa kuti anogara njere, akaisa zvose zvinodiwa hurongwa zvachose chete, uye mhuri hurongwa kuti akaisa Optional gadziriro imwe mhando uye pamusoro kanenge anogona kudana njere anogara. Naizvozvo, gadziriro iyi inogona kunzi akangwara musha.

1. System Design Scheme

Iyo sisitimu inoumbwa nemidziyo inodzorwa uye kuremote control zvishandiso mumba. Pakati pavo, zvigadzirwa zvinodzorwa mumhuri zvinonyanya kusanganisira komputa inokwanisa kuwana iyo Internet, nzvimbo yekudzora, iyo yekutarisa node uye mutongi wemidziyo yemumba inogona kuwedzerwa. Remote control zvishandiso zvinonyanya kuumbwa nemakomputa ari kure uye nharembozha.

Mabasa makuru ehurongwa ndeaya: 1) peji rekutanga rekubhurawuza peji rewebhu, ruzivo rwekumashure ruzivo; 2) Ziva shanduko yekudzora yemidziyo yemumba yemumba, chengetedzo uye mwenje kuburikidza neInternet uye mbozhanhare; 3) Kuburikidza neRFID module yekuziva chiziviso chemushandisi, kuitira kuti upedze iyo yemukati yekuchengetedza mamiriro switch, kana ukaba kuburikidza neSMS alarm kumushandisi; 4) Kuburikidza nepakati kudzora manejimendi system software kupedzisa kutonga kwenzvimbo uye chimiro chekuratidzira mwenje wemukati nemidziyo yemumba; 5) Kuchengetera ruzivo rwemunhu uye kuchengetedza mamiriro emidziyo yemukati kunopedzwa nekushandisa dhatabhesi. Zvakanakira vashandisi kubvunza mamiriro emidziyo yemukati kuburikidza nepakati control uye manejimendi system.

2. System Hardware Design

Iyo hardware dhizaini yegadziriro inosanganisira dhizaini yenzvimbo yekudzora, iyo yekutarisa node uye sarudzo yekuwedzera yemudziyo wekushandisa pamba (tora yemagetsi fan controller semuenzaniso).

2.1 Iyo Control Center

Mabasa makuru enzvimbo yekudzora ndeaya anotevera: 1) Kuvaka isina waya ZigBee network, wedzera ese ekutarisa node kune network, uye ziva kugamuchirwa kwemidziyo mitsva; 2) chiziviso chemushandisi, mushandisi kumba kana kumashure kuburikidza nekadhi remushandisi kuwana mukati mekuchengetedza chinja; 3) Kana mbavha ikapinda mumba, tumira meseji pfupi kumushandisi ku alarm. Vashandisi vanogonawo kudzora kuchengetedzwa kwemukati, kuvheneka uye midziyo yemumba kuburikidza nemameseji mapfupi; 4) Kana iyo system iri kushanda yega, iyo LCD inoratidza ikozvino system mamiriro, izvo zviri nyore kuti vashandisi vaone; 5) Chengetedza mamiriro emidziyo yemagetsi uye utumire kuPC kuti uone iyo system online.

Iyo Hardware inotsigira Mutakuri pfungwa kuwanda kuwana / Kudhumhana kuona (CSMA/CA). Iyo yekushandisa voltage ye 2.0 ~ 3.6V inoenderana nekushomeka kwesimba kushandiswa kweiyo system. Gadzira isina waya ZigBee nyeredzi network mukati nekubatanidza kune ZigBee coordinator module munzvimbo yekutonga. Uye ese manodhi ekutarisa, akasarudzwa kuti awedzere mudziyo wekushandisa wepamba senge terminal node munetiweki kuti ubatanidze netiweki, kuitira kuti uone isina waya ZigBee network kutonga kwemukati chengetedzo uye midziyo yemumba.

2.2 Monitoring Nodes

Mabasa ekuongorora node ndeaya anotevera: 1) kuonekwa kwechiratidzo chemuviri wemunhu, inzwi uye chiedza chechiedza apo mbavha dzinopinda; 2) kutonga kwemwenje, iyo nzira yekudzora yakakamurwa kuita otomatiki kudzora uye manyorero ekutonga, otomatiki kutonga kuri pa/kudzima mwenje otomatiki zvichienderana nesimba rechiedza chemukati, bhuku rekudzora mwenje kudzora kuri kuburikidza nepakati control system, (3) the ruzivo rwearamu uye rumwe ruzivo rwakatumirwa kunzvimbo yekudzora, uye inogamuchira mirairo yekudzora kubva kunharaunda yekudzora kuti ipedze kutonga kwemidziyo.

Infrared plus microwave yekuongorora modhi ndiyo nzira yakajairika mukuonekwa kwechiratidzo chemuviri wemunhu. Iyo pyroelectric infrared probe ndeye RE200B, uye mudziyo wekusimudzira iBISS0001. RE200B inofambiswa ne3-10 V voltage uye ine yakavakirwa-mukati pyroelectric dual-sensitive infrared element. Kana iyo element yagamuchira infrared mwenje, iyo photoelectric effect ichaitika pamatanda ega ega chinhu uye kubhadharisa kuchaungana. BISS0001 idhijitari-analog hybrid asIC inoumbwa neanoshanda amplifier, voltage comparator, state controller, kunonoka timer uye kuvharira nguva yekuvharira. Pamwe chete neRE200B uye zvishoma zvikamu, iyo passive pyroelectric infrared switch inogona kuumbwa. Ant-g100 module yaishandiswa microwave sensor, iyo yepakati frequency yaive 10 GHz, uye yakanyanya kuseta nguva yaive 6μs. Yakasanganiswa nepyroelectric infrared module, chiyero chekukanganisa chekuona chinangwa chinogona kuderedzwa.

Chiedza chekudzora module inonyanya kuumbwa nephotosensitive resistor uye light control relay. Batanidza iyo photosensitive resistor munhevedzano ine inogadziriswa resistor ye10 K ω, wozobatanidza imwe mugumo we photosensitive resistor kusvika pasi, uye batanidza imwe mugumo weinogadziriswa resistor kusvika kumusoro. Iko kukosha kwevoltage yemapoinzi maviri ekupikisa yekubatanidza inowanikwa kuburikidza neSCM analog-to-digital converter kuti uone kana mwenje wazvino wakabatidzwa. Adjustable resistance inogona kugadziriswa nemushandisi kuti asangane nemwenje wesimba kana mwenje uchangobatidzwa. Indoor lighting switches inodzorwa nerelays. Imwe chete yekupinza / yekubuda chiteshi inogona kuwanikwa.

2.3 Sarudza Yakawedzerwa Imba Yekushandisa Controller

Sarudza kuwedzera kutonga kwemidziyo yemumba kunyanya zvinoenderana nekushanda kwechishandiso kuti uwane kutonga kwemudziyo, pano kune feni yemagetsi semuenzaniso. Fan control ndiyo nzvimbo yekudzora ichave PC fan yekudzora mirairo inotumirwa kune yemagetsi fan controller kuburikidza neZigBee network kuita, dzakasiyana nhamba yekuzivikanwa yemidziyo yakasiyana, semuenzaniso, izvo zvinopihwa nechibvumirano ichi nhamba yekuzivisa fan ndeye 122, iyo yepamba yeruvara TV nhamba yekuzivikanwa. iri 123, nokudaro kuona kucherechedzwa kwenzvimbo dzakasiyana dzemagetsi epamba midziyo yekudzora. Kune imwechete yekuraira kodhi, midziyo yemumba yakasiyana inoita mabasa akasiyana. Mufananidzo 4 unoratidza kuumbwa kwemidziyo yemumba yakasarudzwa kuti iwedzere.

3. System software design

Iyo system software dhizaini inonyanya kusanganisira zvikamu zvitanhatu, izvo zviri kure kudzora webhu peji dhizaini, yepakati control management system dhizaini, control centre main controller ATMegal28 chirongwa dhizaini, CC2430 coordinator chirongwa dhizaini, CC2430 yekutarisa node chirongwa dhizaini, CC2430 sarudza wedzera mudziyo chirongwa dhizaini.

3.1 ZigBee Coordinator chirongwa chekugadzira

Murongi anotanga apedza iyo yekutanga dhizaini yekumisikidza, kuseta iyo application layer mamiriro uye kugamuchira nyika kuti iite, obva abatidza kukanganisa kwepasirese uye otanga I / O chiteshi. Murongi anobva atanga kuvaka network isina waya. Muprotocol, coordinator anosarudza otomatiki 2.4 GHz bhendi, huwandu hwepamusoro hwebhiti pasekondi i62 500, iyo default PANID i0 × 1347, iyo yakanyanya stack kudzika i5, huwandu hwepamusoro hwemabhaiti pakutumira i93, uye iyo serial port baud rate ndeye 57 600 bit/s. Iyo SL0W TIMER inogadzira gumi kudzongonyedza pasekondi. Mushure mekunge ZigBee network yasimbiswa zvinobudirira, murongi anotumira kero yake kuMCU yenzvimbo yekudzora. Pano, nzvimbo yekutonga MCU inozivisa ZigBee Coordinator senhengo yenode yekucherechedza, uye kero yaro yakaonekwa ndeye 0. Purogiramu inopinda mumutsetse mukuru. Kutanga, sarudza kana kune data idzva rinotumirwa neinodhi yekupedzisira, kana iripo, iyo data inotumirwa zvakananga kuMCU yenzvimbo yekudzora; Sarudza kana iyo MCU yenzvimbo yekudzora ine mirairo yakatumirwa pasi, kana zvakadaro, tumira iwo mirairo pasi kune inowirirana ZigBee terminal node; Tongai kana kuchengetedzwa kwakazaruka, kana kune mbavha, kana zvakadaro, tumira ruzivo rwearamu kuMCU yenzvimbo yekutonga; Tongai kana chiedza chiri mune otomatiki kudzora mamiriro, kana zvakadaro, batidza analog-to-digital converter yesampling, iyo sampling kukosha ndiyo kiyi yekubatidza kana kudzima mwenje, kana mamiriro echiedza akachinja, ruzivo rutsva rwehurumende. kuendeswa kunzvimbo yekudzora MC-U.

3.2 ZigBee Terminal Node Programming

ZigBee terminal node inoreva iyo isina waya ZigBee node inodzorwa neZigBee murongi. Mune sisitimu, inonyanya kuve iyo yekutarisa node uye sarudzo yekuwedzera yemudziyo mudziyo wemagetsi. Kutanga kweZigBee terminal node kunosanganisirawo kutanga kwechishandiso, kuvhura kunokanganisa, uye kutanga I/O ports. Wobva waedza kujoina ZigBee network. Izvo zvakakosha kuti uzive kuti chete magumo node neZigBee coordinator setup inotenderwa kujoina network. Kana iyo ZigBee terminal node ikatadza kubatana netiweki, inoedza zvakare masekonzi maviri ega ega kudzamara yabudirira kujoinha network. Mushure mekubatana nemambure zvinobudirira, iyo ZI-Gbee terminal node inotumira ruzivo rwayo rwekunyoresa kuZigBee Coordinator, iyo inozoendesa kune MCU yenzvimbo yekudzora kuti ipedze kunyoreswa kweZigBee terminal node. Kana iyo ZigBee terminal node iri yekutarisa node, inogona kuona kutonga kwemwenje uye chengetedzo. Iyo purogiramu yakafanana neyeZigBee coordinator, kunze kwekuti iyo yekutarisa node inoda kutumira data kune ZigBee coordinator, uye ipapo ZigBee Coordinator inotumira data kuMCU yenzvimbo yekudzora. Kana iyo ZigBee terminal node iri yemagetsi fan controller, inongoda kugashira data repamusoro komputa pasina kurodha nyika, saka kutonga kwayo kunogona kupedzwa zvakananga mukuvhiringidzwa kwekugamuchira isina waya data. Mune isina waya data inogashira kukanganisa, ese materminal node anoshandura iyo yakagamuchirwa yekudzora mirairo mukudzora ma parameter eiyo node pachayo, uye usaite yakagamuchirwa isina waya mirairo muchirongwa chikuru chenode.

4 Online Debugging

Iwo murayiridzo unowedzera weiyo kodhi yekuraira yemidziyo yakagadziriswa yakapihwa nepakati control management system inotumirwa kuMCU yenzvimbo yekudzora kuburikidza neserial port yekombuta, uye kune murongi kuburikidza neiyo miviri-mitsara interface, uyezve kuZigBee terminal. node nemurongi. Kana iyo terminal node inogamuchira iyo data, iyo data inotumirwa kuPC kuburikidza neiyo serial port zvakare. PaPC iyi, iyo data yakagamuchirwa neZigBee terminal node inofananidzwa neiyo data inotumirwa neiyo control centre. Iyo yepakati control management system inotumira 2 mirairo sekondi yega yega. Mushure memaawa e5 ekuedzwa, software yekuedza inomira apo inoratidza kuti nhamba yose yemapakiti akagamuchirwa ndeye 36,000 packets. Mhedzisiro yemigumisiro ye-multi-protocol data transmission test software inoratidzwa mumufananidzo 6. Nhamba yepakiti yakarurama ndeye 36 000, nhamba yemapakiti asina kunaka ndeye 0, uye chiyero chechokwadi chiri 100%.

ZigBee tekinoroji inoshandiswa kuona iyo yemukati networking ye smart imba, iyo ine zvakanakira zviri nyore kudzora kure, kuchinjika kuwedzera kwemidziyo mitsva uye yakavimbika kudzora kuita. RFTD tekinoroji inoshandiswa kuona kuzivikanwa kwemushandisi uye kugadzirisa kuchengetedza system. Kuburikidza nekuwana kweGSM module, iyo remote control uye alarm mabasa anoitwa.


Nguva yekutumira: Jan-06-2022
WhatsApp Online Chat !