Cov txheej txheem:

Rooj Vam Meej: 10 Kauj Ruam (nrog Duab)
Rooj Vam Meej: 10 Kauj Ruam (nrog Duab)

Video: Rooj Vam Meej: 10 Kauj Ruam (nrog Duab)

Video: Rooj Vam Meej: 10 Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Kaum ib hlis
Anonim
Rooj sib tham
Rooj sib tham

Lub Rooj Vag Mate tuaj yeem ua haujlwm ntawm koj lub rooj vag lossis chaw nres tsheb siv lub suab hais kom ua lossis ua haujlwm nrog geofencing lossis thaum kov ntawm lub pob. Gate Mate muaj ob qho tseem ceeb, App thiab kho vajtse.

Kho vajtse yog ob ESP8266 micro tswj thiab lub koob yees duab. Lub koob yees duab Arducam thiab ib qho ESP8266 tuav cov vis dis aus thiab lwm qhov ESP8266 tswj lub koob yees duab sib txuas, khawm thawb thiab sib txuas lus nrog App. Tag nrho cov txheej txheem tiag tiag zoo li cov suab paj nruag ntawm cov xov tooj cua thiab cov tshuab hluav taws xob, ua haujlwm zoo sib xws, ua haujlwm ntawm koj lub qhov rooj lossis lub qhov rooj qhov rooj.

IOS Gate Mate App, thov txim tsis muaj Android tseem tsis tau, tuaj yeem txuas nrog kho vajtse los ntawm txhua qhov chaw hauv ntiaj teb uas yooj yim heev yog tias koj xav tau qhib lub qhov rooj thaum koj tsis nyob hauv tsev lossis xav saib cov vis dis aus.

Ntau qhov sib txawv thiab cov txheej txheem tau siv nrog lub qhov rooj tsis siv neeg thiab chaw taws teeb tswj (rc) thiab lub tsheb. Hauv txoj haujlwm no peb siv koj cov chaw taws teeb uas twb muaj lawm thiab opto coupler los ua raws li lub pob nyem. Feem ntau ntawm kev siv kev ntsuas kev nyab xeeb txhawm rau tiv thaiv kev tawm tsam qhov twg cov cai tau raug ntes thiab ua si rov qab. Peb kuj siv qhov zoo nkauj txaus encryption thiab kev txheeb xyuas qhov tseeb kom ruaj ntseg thiab txheeb xyuas qhov kev sib txuas lus los ntawm App hauv is taws nem, los ntawm koj lub network hauv tsev thiab mus rau Gate Mate hardware.

Cov no yog cov tseem ceeb

  • Ib qho ESPino (ESP8266) thiab PC817 Opto-Coupler tau siv los ua raws lub pob thawb ntawm lub rc.
  • Kev sib dhos Yias Tilt tau siv nrog lub koob yees duab kom pom qhov pom tuaj yeem hloov kho.
  • Arducam 2MP V2 Mini Lub Koob Yees Duab Shield nrog ESP8266 Nano Esp-12F yog siv rau cov vis dis aus pub rau iOS App.
  • Kev sib txuas lus ntawm ESPino, Arducam Nano thiab iPhone App tau ua tiav siv
  • Kev teeb tsa router suav nrog LAN Static IP's thiab NAT Port Forwarding nrog rau DDNS lossis IP Static yog xav tau.
  • AES CBC Kev Nkag Siab thiab HMAC SHA256 tau siv los ua kom muaj kev nyab xeeb thiab txheeb xyuas kev sib txuas lus.
  • Kev paub lub suab tuaj yeem siv nrog cov lus txib "qhib", "nres" thiab "kaw".
  • Ib lub geofence tuaj yeem siv los qhib lossis kaw lub qhov rooj lossis chaw nres tsheb.
  • Cov chaw taws teeb uas twb muaj lawm tau siv.

Txhua tus lej tau muab ntawm Gate Gate Github

Kauj ruam 1: IPhone App

IPhone App Cov
IPhone App Cov
IPhone App Cov
IPhone App Cov
IPhone App Cov
IPhone App Cov

iOS App

Kauj ruam 2: Encryption

Cov txheej txheem encryption suav nrog siv AES CBC thiab HMAC SHA256 rau kev sib txuas lus ruaj ntseg thiab kev lees paub tseeb. Yuav tsum muaj 32 tus lej cim kab lus hauv App thiab.ino cov ntaub ntawv thiab tau kawg lawv yuav tsum sib phim.

Kauj Ruam 3: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Espino tau siv vim tias nws tau npaj los ntsaws rau hauv lub khob cij thiab los nrog lub micro USB (kev sib txuas thiab lub zog). Koj tuaj yeem tsuas yog yuav lub ESp8266 tus qauv tab sis koj yuav tsum tau teeb tsa nws ntawm lub rooj sib cais thiab siv FTDI rau kev sib tham thiab lub zog.

Arducam 2MP V2 Mini Lub Koob Yees Duab Shield nrog ESP8266 Nano yog siv rau kev pub video.

Cov khoom loj tuaj ntawm UCTronics thiab Thai Easy Elec

www.uctronics.com

www.thaieasyelec.com/en/

Lwm qhov me me thiab daim

  • M3 PCB Standoffs
  • Cov qhob cij
  • Clear Acrylic Case
  • PC817 Opto Coupler
  • 500 ohm Resistor (yeem)
  • Assortment ntawm jumpers thiab xov hlau thiab lwm yam
  • 5V phab ntsa adapter fais fab mov
  • Ob lub micro usb cables

Kauj ruam 4: Network

Txhawm rau siv iOS App thaum tsis txuas nrog koj lub network hauv tsev, uas yog thaum siv cov ntaub ntawv xov tooj ntawm tes lossis qee qhov lwm qhov WiFi network, koj yuav tsum teeb tsa koj lub router kom cov tsheb tuaj yeem nkag mus rau lub cuab yeej raug.

Koj tseem yuav xav tau tus IP zoo li qub, DDNS kev pabcuam lossis txaus siab hloov kho tus IP nkag mus rau hauv App ib ntus raws li koj li ISP hloov pauv koj tus IP chaw nyob.

Kev teeb tsa lub router yog qhov yooj yim tiag tiag thiab cuam tshuam nrog kev ua haujlwm sab hauv/ntiag tug IP rau ob qho tib si Arducam Nano thiab Espino (ntu LAN) thiab ncaj qha tsheb ntawm cov chaw nres nkoj xa mus rau tus IP uas tau muab (NAT ib feem). Piv txwv li hauv koj lub router koj teeb tus IP chaw nyob ntawm Arducam Nano mus rau 192.168.1.21 thiab tom qab ntawd hauv GateMateArduNano.ino cov ntaub ntawv koj teeb lub vev xaib rau chaw nres nkoj 83 (ESP8266WebServer server (83)), kawg teeb tsa NAT hauv koj cov routers teeb tsa xa mus rau txhua lub tsheb ntawm chaw nres nkoj 83 mus rau 192.168.1.21. Rau ESPino koj tuaj yeem teeb tus IP zoo li 192.168.1.22, hauv GateMateEspino.ino teeb lub vev xaib xa mus rau chaw nres nkoj 84 #ESP8266WebServer server (84) thiab teeb tsa NAT mus rau tom ntej thiab tsheb khiav ntawm chaw nres nkoj 84 mus rau 192.168.1.22.

Kauj ruam los ntawm kauj ruam

1. Yog tias koj xav teeb tus IP hauv App thiab tsis nco qab txog nws koj tuaj yeem teeb tsa qhov kev pabcuam DDNS lossis hu rau koj tus ISP thiab thov kom muaj IP pej xeem zoo li qub, lawv ib txwm them rau qhov ntawd. Kuv tau siv https://www.dynu.com thiab lawv zoo rau kev pabcuam DDNS dawb.

2. Tau txais MAC chaw nyob ntawm Espino thiab Arducam Nano. Koj tuaj yeem teeb tsa SSID thiab Password hauv.ino's, cia lawv txuas rau koj lub network hauv tsev thiab tom qab ntawd dhau ntawm koj lub routers cov nplooj ntawv qib siab koj tuaj yeem pom MACs

3. Kho koj lub router kom muab tus IP zoo li qub rau Espino thiab Arducam Nano, tshwj xeeb yog siv MAC chaw nyob los tsim Static IP nkag rau hauv LAN teeb nplooj ntawv.

4. Kho koj tus routers NAT kom xa mus rau koj Arducam Nano thiab Espino yog li lawv tuaj yeem nkag los ntawm is taws nem siv koj li ISP muab rau pej xeem IP chaw nyob. Thaum txuas nrog koj lub network ntiag tug, Arducam Nano thiab ESPino yuav muaj IP chaw nyob sab hauv uas tsis pom hauv internet. Raws li tau hais los saum toj no, Arducam Nano tau mloog ntawm chaw nres nkoj 83 thiab Espino ntawm chaw nres nkoj 84 (saib kab ntawv no hauv cov ntaub ntawv ino tshwj xeeb - ESP8266WebServer server (##). Ntawm NAT teeb tsa nplooj ntawv tsim kom nkag tau kom muaj kev nkag mus rau ntawm cov chaw nres nkoj uas tau muab khiav mus rau qhov zoo li qub IP's.

Muaj ntau qhov sib txawv routers thiab ddns cov kev pabcuam muaj nyob yog li muab cov ntsiab lus tshwj xeeb tshaj li qhov ua tiav ntawm txoj haujlwm no. Tab sis yog tias koj tsuas yog google NAT thiab LAN teeb tsa rau koj lub router tshwj xeeb thiab ddns cov kev pabcuam nws yuav tsum yog txhua tus ncaj qha rau pem hauv ntej thiab teeb tsa tau yooj yim.

Kauj ruam 5: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Ib lub pob ua ib yam, nws txuas qhov sib txawv hauv Circuit kom ua tiav txoj hauv kev hluav taws xob. Ib qho optocoupler tuaj yeem siv ua raws lub pob thiab tswj lub Circuit Court uas raug cais los ntawm koj lub micro tswj, qhov no yog lub chaw taws teeb tswj (rc) uas muaj nws tus kheej me me Circuit thiab roj teeb.

Qhov zoo ntawm kev siv opto coupler ntawm no ntau dua, piv txwv li, lub transistor yog tias peb tuaj yeem khaws cov ntawv pov thawj hauv av, zoo rau tag nrho cov kab hluav taws xob rau qhov teeb meem ntawd, cais tawm. Yog li peb tsis tas yuav txhawj txog yuav ua li cas muab cov av ntawm rc nrog hauv av ntawm ESP8266.

Yog li thawj qhov kev txiav txim siab yog sab twg ntawm lub pob yuav tsum txuas nrog rau PC817 tus neeg sau thiab sab twg rau tus tso tawm. Qhib koj lub rc thiab siv lub multimeter los ntsuas qhov tsis kam, xam tawm sab twg ntawm lub pob txuas nrog lub davhlau ya nyob twg zoo ntawm lub roj teeb. Sab siab no yuav txuas nrog tus neeg khaws khoom uas yog tus pin 4 ntawm PC817.

Tshem tawm cov hlau txuas thiab

  1. Siv tus xaim txuas mus rau sab siab ntawm ob sab ntawm lub khawm thiab txuas rau lwm qhov kawg rau tus neeg khaws khoom (tus pin4) ntawm PC817.
  2. Siv tus xaim xaim mus rau sab qis ntawm lub pob thiab txuas rau lwm qhov kawg rau tus xa tawm (tus pin3) ntawm PC817.

Kauj ruam kawg rau opto coupler yog txuas tus pin 4 los ntawm ESP8266 mus rau anode (pin1) ntawm PC817 thiab txuas cov cathode (pin2) rau hauv av los ntawm 500 ohm resistor.

Txhawm rau txheeb xyuas qhov pinout lossis lwm yam kev qhia tshwj xeeb ntawm no yog PC817 Specs PC817 Datasheet

Tej zaum qhov chaw zoo kom suav nrog lub lauj kaub qaij npab sib sau ua ke pdf Yias Tilt pdf

Tus so ntawm cov kev sib txuas yog qhov ncaj ncaj, tsuas yog hais txog qhov fritzing thiab cov duab.

Kauj ruam 6: Micro USB

Micro USB
Micro USB

Ob lub micro usb cables tau raug txiav nrog lub hwj chim thiab cov xov hlau hauv av txuas nrog lub zog thiab cov xov hlau hauv av ntawm 5v phab ntsa adapter hloov khoom siv. Ib lub micro usb txuas nrog Arducam Nano Camera thiab lwm qhov rau ESpino ESP8266.

Kauj Ruam 7: Kev Tiv Thaiv Cov Hluav Taws Xob

Kev Tswj Chaw Taws Teeb
Kev Tswj Chaw Taws Teeb

Qhov no yog qhov ze ntawm cov xov hlau txuas rau lub rc khawm, yooj yim heev xaim xaim txuas rau ob txhais ceg. Thaum qhib qhov tam sim no tuaj yeem ntws los ntawm opto-coupler hloov lub pob, ua raws lub pob nyem thiab tom qab ntawd rc xa nws cov cai ruaj ntseg mus rau lub tshuab hluav taws xob kom qhib lossis kaw lub qhov rooj lossis chaw nres tsheb.

Kauj Ruam 8: Rooj plaub

Rooj plaub
Rooj plaub
Rooj plaub
Rooj plaub

Cov ntaub ntawv tiav, lub lauj kaub qaij sib dhos thiab lub khob cij tau ruaj khov rau lub hau siv M3 cov txiv ntoo tsis huv thiab cov ntsia liaj qhov rooj, rc txuas nrog siv daim kab xev ob tog. Ib lub qhov me me tau dhau los ntawm lub khawm ntawm rooj plaub kom tso cai rau lub hwj huam hluav taws xob tawm mus thiab tso cai rau rooj plaub zaum kom yaug tawm tsam phab ntsa. Siv lub thauj tog rau nkoj, masonry lossis lwm yam, thiab nrog lub qhov me me tau hlais hauv cov ntaub ntawv acrylic nws tuaj yeem txuas rau ntawm phab ntsa tig mus rau lub rooj vag lossis txoj kev tsheb lossis lub qhov rooj tsheb. Zoo tiag tiag nws tuaj yeem mus rau txhua qhov chaw tsuav yog lub teeb liab tswj chaw taws teeb mus txog tus txais ntawm lub cav.

Kauj ruam 9: App Demo

Gate Mate ntawm App Store

Kauj ruam 10: Cov neeg ua tim khawv

www.teknojelly.com/gate-mate/

github.com/ArduCAM

github.com/esp8266

github.com/kakopappa/arduino-esp8266-aes-e…

github.com/intrbiz/arduino-crypto

Qhov ntawd yog qhwv, tsis txhob tso kuv cov lus yog tias koj pom qee yam uas tuaj yeem txhim kho lossis kho lossis xav tau qee yam ntxiv

Pom zoo: