Cov txheej txheem:

Lub Tsev Tswb Internet Dialer rau Aritech Nrog Arduino: 6 Kauj Ruam
Lub Tsev Tswb Internet Dialer rau Aritech Nrog Arduino: 6 Kauj Ruam

Video: Lub Tsev Tswb Internet Dialer rau Aritech Nrog Arduino: 6 Kauj Ruam

Video: Lub Tsev Tswb Internet Dialer rau Aritech Nrog Arduino: 6 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim

Los ntawm ambrose.clarkeFollow Ntxiv los ntawm tus sau:

Arduino Steve - Minecraft Animatronic
Arduino Steve - Minecraft Animatronic
Arduino Steve - Minecraft Animatronic
Arduino Steve - Minecraft Animatronic
Internet Pab Tau HKC Tsev Tswb
Internet Pab Tau HKC Tsev Tswb
Internet Pab Tau HKC Tsev Tswb
Internet Pab Tau HKC Tsev Tswb
Nkag Mus Rau Koj Lub Tsev Tswb
Nkag Mus Rau Koj Lub Tsev Tswb
Nkag Mus Rau Koj Lub Tsev Tswb
Nkag Mus Rau Koj Lub Tsev Tswb

Ib Lub Tsev thiab Tsev Lag Luam Zoo heev uas siv hauv ntau lub tebchaws Europe yog Aritech series ntawm lub tswb nrov.

Cov no tau teeb tsa mus txog thaum ntxov xyoo 2000 hauv lawv ntau pua txhiab leej thiab ntau tus tseem muaj nyob hauv tsev niaj hnub no - feem ntau lawv tau rov ua phem los ntawm cov neeg teeb tsa tab sis lawv txhua tus muaj cov keyboard yooj yim pom tau.

Lawv yog cov txheej txheem zoo nrog ntau tus yam ntxwv - tab sis, raws li lawv tau tsim ua ntej broadband, lawv tsis muaj peev xwm txuas rau Is Taws Nem.

Cov duab ntawm nplooj ntawv no yog cov duab ua yeeb yaj kiab ntawm lub kaw lus kawg - nws yuav tsis ua yeeb yaj kiab ntawm cov khoom siv mobile. Nov yog qhov txuas rau cov animation

Txoj haujlwm no yog hais txog kev thim rov qab tsim vaj huam sib luag lub tswb txhawm rau ntxiv qhov ua haujlwm uas ploj lawm.

Nws yuav ntxiv cov hauv qab no:

  • Muaj peev xwm tiv toj rau lub vaj huam sib luag thiab teeb tsa/teeb tsa/saib cov cav siv ib lub browser los ntawm txhua qhov chaw piv txwv. Txawb Xov Tooj
  • Muaj Alarm system email rau koj yog tias Tswb tau ploj mus
  • Tso cai rau koj nkag mus rau cov tshuab engineering thiab teeb tsa lub tswb vaj huam sib luag nyob deb.
  • Txhawb nqa CD34, CD62, CD72, CD91 thiab CS350 uas yog txhua tus qauv loj ntawm koob no.

Tus nqi tag nrho ntawm txhua qhov yuav tsawg dua $ 20

Sau ntawv:

Txhua daim duab thiab cov duab screenshots yog tus kheej los ntawm kuv tus kheej (raws li Cov Lus Qhia Qhia) - cov cai thiab tsim qauv tsim tau tsim los ntawm kuv tus kheej.

Kauj Ruam 1: Txoj Kev Npaj

Txoj Kev Npaj
Txoj Kev Npaj
Txoj Kev Npaj
Txoj Kev Npaj

Lub hom phiaj yog kom tau txais Arduino kom ua raws li Keypad.

Aritech vaj huam sib luag yuav xav tias nws yog tus qauv khawm - tab sis nws yuav tsum tau tham nrog Arduino - qhov Arduino no tsis muaj cov keyboard lossis zaub - nws hloov chaw muaj lub vev xaib uas koj tuaj yeem txuas rau hauv internet.

Tus neeg rau zaub mov xa lub vev xaib uas siv websockets raws li kev sib txuas lus thauj mus los muab cov lus teb zoo heev emulated keyboard hauv html. Ob peb qhov tseem ceeb nias tsis tau muab cov lus teb uas yog rivals tus thawj keyboard.

Arduino tau teeb tsa ntawm txhua lub ntsiab lus ntawm Aritech Bus - Kuv tso kuv lub hauv lub Alarm Panel txee - tab sis koj tuaj yeem txuas rau Keypad kawg yog tias koj qhov Ethernet txuas tau ze dua.

Nws kuj tseem tuaj yeem siv Ethernet rau Wifi adapter yog tias Lub Tswb Tswb yog qhov deb ntawm ib qho kev sib txuas Ethernet - ib lub xov tooj Ethernet txuas tab sis, yog qhov zoo dua li qhov kev ntseeg tau.

Kauj ruam 2: Qhov Chaw

Qhov Chaw
Qhov Chaw
Qhov Chaw
Qhov Chaw
Qhov Chaw
Qhov Chaw

Daim ntawv teev npe yuav tsum yog:

  1. Arduino Uno R3 (amazon txuas £ 6)- ie. tus txheej txheem arduino - clones tuaj yeem yuav los ntawm $ 5 siab dua
  2. Arduino Ethernet shield (amazon txuas £ 7) - Lwm tus qauv Arduino ib feem - Amazon muag lawv rau kwv yees li $ 10 upwards
  3. DC-DC fais fab mov (txuas lossis txuas) txog $ 4 Siv los hloov Panels 12Volts mus rau qhov ruaj khov 5Volts

Cov hauv qab no yog nyob ntawm koj xaiv qhov Circuit Court uas koj tsim

  1. Ob Transistors BC109 (lossis ib lub hom phiaj zoo sib xws NPN transistors xws li 2N2222 lossis 2N2369)
  2. Resistors raws li tau teev tseg hauv schematic
  3. Ib qho Diode (piv txwv li IN4002)
  4. Mini khob cij

Koj tseem yuav xav tau Tus Kws Tshaj Lij (Tus Thawj Coj) Tus password rau koj li Aritech Tswb. Yog tias koj tsis muaj tus password ib qho kev xaiv los txiav txim siab yuav yog lub vaj huam sib luag tsis raug rau lub chaw teeb tsa thiab rov teeb tsa nws.

Ua kom lub zog Arduino

DC -DC cov khoom siv hluav taws xob yog qhov tseem ceeb tshaj plaws kom tau txais qhov tseeb - tsis txhob ntxias siv lub tsheb pheej yig 12V mus rau 5V usb Adapters - qhov hluav taws xob ntawm cov hloov pauv pheej yig dua Kuv tau sim muaj lub ripple voltage uas tuaj yeem ua rau Arduino sib tsoo tsis raug.

Kuv tsis pom zoo siv Arduinos ua hauv 9V lub qhov (socket) thaum siv Ethernet adapter lossis siv Alarm Panels 5V lub zog xa hluav taws xob rau Arduino - txhua yam yuav kub! DC -DC adapter tau teev tseg saum toj no muaj txiaj ntsig zoo thiab muab kev ruaj khov heev 5V yam tsis muaj cua sov - Kuv thov 5V no rau 5V tus pin ntawm Arduino.

Yog tias koj txiav txim siab los ntawm lub hwj chim los ntawm lub zog siv hluav taws xob usb adapter (piv txwv li lub xov tooj adapter) thiab tsis yog tus qauv saum toj no - koj yuav xav tau kom ntseeg tau tias cov adapters tso tawm GND txuas nrog ib qho ntawm Tswb Panels hauv av; raws li txhua yam xav tau los sib qhia tib yam GND.

Kev xaiv Breadboard

Kuv tau siv daim ntawv me me rau me me los ua tus qauv.

Yog tias koj ua kom zoo nkauj lub khob cij yog qhov zoo txaus los siv ua kev daws teeb meem - tab sis tom qab koj paub tseeb tias txhua yam tau ua haujlwm koj tuaj yeem nyiam ua cov khoom siv hloov pauv, piv txwv li, daim ntawv tiv thaiv me me uas pom hauv daim duab kawg.

Kauj Ruam 3: Kev Tsim (daim ntawv qhia khoom noj khoom haus)

Tsim (breadboard Version)
Tsim (breadboard Version)
Tsim (breadboard Version)
Tsim (breadboard Version)
Tsim (breadboard Version)
Tsim (breadboard Version)
Tsim (breadboard Version)
Tsim (breadboard Version)

Nov yog ob txoj kev xaiv los ntawm.

1) Ncaj mus rau vaj huam sib luag Qhov no yog txoj hauv kev yooj yim tshaj plaws. Nws zoo heev thiab ntseeg tau. Tsuas yog qhov poob qis - nws yuav tsum tau siv 2 lub xov hlau txuas rau Aritech lub rooj tsavxwm tseem ceeb thiab qee qhov yuav tsis nyiam siv cov khoom siv ncaj qha mus rau lub vaj huam sib luag. Tsis tas li, ob lub xov hlau los ntawm Arduino mus rau lub vaj huam sib luag rau qhov kev xaiv no yuav tsum yog ncaj ncees (kwv yees li 30 cm siab yog hais txog txoj cai) yog li ntawd Arduino yuav xav tau nyob hauv lossis ze ntawm lub tswb txee. Qhov kev xaiv no tau ntxaws ntxaws ntawm cov kauj ruam tom ntej (yeem).

-los yog

2) Kev cai Arduino rau Aritech Circuit

Qhov no cuam tshuam nrog kev tsim lub rooj sib tham kev cai los ua Arduinos cov peev xwm txuas tau rau Aritechs 12v keypad npav. Lub tshuab hluav taws xob tau tsim tshwj xeeb kom nws yuav tsis cuam tshuam nrog lwm cov keypads ntawm lub npav. Nws xav tau 2 lub transistors thiab ob peb yam khoom txhawb nqa. Cov xov hlau tuaj yeem ntev npaum li koj nyiam.

Lub Circuit Court qhia saum toj no yog lub interface xav tau rau Arduino txhawm rau txuas mus rau 4 lub npav npav.

Ib daim duab tau qhia ntawm daim ntawv qhia zaub mov (daim duab thib ob) rau lub tswv yim yuav ua li cas txuas mus - Daim ntawv qhia zaub mov no tau siv rau kev txhim kho- thov xa mus rau daim duab (thawj daim duab) thaum tsim koj lub rooj tsav xwm hauv vaj huam sib luag lossis daim txiag ntoo.

Aritech vaj huam sib luag siv plaub lub npav npav npav - koj tuaj yeem txuas rau txhua lub ntsiab lus ntawm lub npav no - piv txwv. ntawm Keypad kawg lossis Alarm Panel kawg.

Daim duab thib peb yog ntxiv rau qhov kev txaus siab thiab qhia pom qhov kev sim hauv Circuit kuv tau siv thaum tsim lub Circuit Court. Lub hom phiaj yog ua kom cov lej suav kom tsawg; qhov twg ua tau ib yam ib yam thiab cov txiaj ntsig thiab kom ntseeg tau tias cov dej ntws tau qis qis kom tsis muaj cua sov tsim nyog.

Nug cov lus nug yog tias nyam thiab kuv tuaj yeem sim pab - Kuv tau sim qhov no ntawm ntau lub vaj huam sib luag uas kuv muaj nyob ntawm no (Kuv tau khaws lawv hauv khau raj muag thaum kuv pom lawv) - Raws li ib txwm nrog cov haujlwm no kuv tsis tuaj yeem tsis muaj lub luag haujlwm rau kev puas tsuaj

Kauj Ruam 4: Lwm Txoj Kev Kho Vajtse (yooj yim Ib Diode Version)

Lwm Cov Khoos Phis Tawj Hloov Kho (yooj yim Ib Diode Version)
Lwm Cov Khoos Phis Tawj Hloov Kho (yooj yim Ib Diode Version)
Lwm Cov Khoos Phis Tawj Hloov Kho (yooj yim Ib Diode Version)
Lwm Cov Khoos Phis Tawj Hloov Kho (yooj yim Ib Diode Version)
Lwm Cov Khoos Phis Tawj Hloov Kho (yooj yim Ib Diode Version)
Lwm Cov Khoos Phis Tawj Hloov Kho (yooj yim Ib Diode Version)

Nov yog lwm txoj hauv kev txuas mus rau 4 lub npav npav npav. Koj tuaj yeem xaim txoj haujlwm ncaj qha rau hauv Aritech motherboard.

Qhov no yuav tsum tau muab txuas ob lub xov hlau rau Aritech vaj huam sib luag - tab sis qhov kom zoo dua uas tag nrho cov Circuit Court tam sim no dhau los ua ib qho Diode - tsis muaj transistors, resistors lossis breadboard tsim nyog!

Cov duab saum toj no qhia cov ntsiab lus sib txuas rau txuas cov xov hlau.

Nrog rau txoj hauv kev no koj xav tau txuas ob lub xov hlau mus rau lub nti loj tshaj (npe 78C17) ntawm lub vaj huam sib luag thiab txuas lawv mus rau Arduino Pins 0 thiab 1 - Pin 1 txuas rau lub tswb vaj huam sib luag yuav tsum muaj diode nrog kab txaij kawg (cathode) ntawm lub diode mus rau Arduino - cov uas tsis yog kab txaij rau lub tswb tswb.

Tus Pin txuas yog nyob ntawm tus qauv tswb - xa mus rau cov duab saum toj no rau kev sib txuas.

Yog tias koj pom nws lo lo lo lo lo rau cov Pins (lawv nruj me ntsis) cov laug tom qab ntawm lub vaj huam sib luag lossis koj tuaj yeem saib raws txoj kev taug kom pom qhov chaw yooj yim dua rau cov laug. Qhia hauv daim duab thib peb ntawm cov kauj ruam no yog cov ntsiab lus txuas uas kuv siv rau CD72/CD62. Ruaj cov xov hlau siv kab xev, kua nplaum kub lossis yog tias koj ua tib zoo saib ntawm kuv lub rooj tsavxwm koj tuaj yeem pom kuv tau siv lub voj me me ntawm xaim los tuav kuv txoj hlua ruaj ntseg.

Koj tseem xav tau lub hwj chim rau Arduino siv DC-DC hloov pauv tus qauv tau hais los lawm (teeb rau 5v).

Aritech Chip yog 5V - zoo ib yam li Arduino - yog li lawv ua tau zoo tshaj.

Qee lub vaj huam sib luag tom qab (piv txwv li qee qhov CS350) siv cov nplais saum npoo (nti yog me me thiab square). Txog cov no, yav dhau los Circuit tej zaum yuav zoo tshaj plaws - tab sis yog tias koj xav sim koj yuav pom tias nws muaj peev xwm ua kom txuas mus rau lwm qhov chaw raws txoj kev taug los ntawm microchip. Yog tias koj saib cov pinout ntawm PD78C17GF nti hauv nws cov ntaub ntawv - tus pin npe los txuas rau yog "PC0/TXD" thiab "PC1/RXD".

Qee qhov "solder braid" tej zaum yuav muaj txiaj ntsig zoo los ntawm txhais tes los txhawm rau txhawm rau txhawm rau txhawm rau yog tias koj tsis tau siv cov laug thiab siv cov laug ntau dhau.

Tau kawg ua kom ntseeg tau tias txhua yam raug tshem tawm thaum siv nws - rau koj kev nyab xeeb ntxiv rau koj lub tswb.

Kauj ruam 5: Software

Lub Software
Lub Software

Cov cai yog qhov nyuaj heev - nws yog ib qho kev rau siab loj, thiab ntau yam dag ntxias xav tau los ua haujlwm txhawm rau txhawm rau txhawm rau tag nrho cov cai no (tus lej siv tus lej, tus siv lub vev xaib HTML, HTML nplooj ntawv, Tus neeg siv email, Websocket Webserver, DES encryption thiab Base64 cov tsev qiv ntawv) tag nrho rau hauv qhov me me. Arduino 32K flash thiab ram chaw.

Txhua tus lej yog nyob ntawm no:

github.com/OzmoOzmo/CastleAritechArduinoRK…

Kuv yuav hloov kho txoj haujlwm code txhua lub sijhawm - yog li nco ntsoov Fork txoj haujlwm yog li koj tau txais ntawv ceeb toom thaum muaj qhov hloov tshiab.

Tsuas yog rub tawm tag nrho cov ntaub ntawv (tseem ceeb: siv rub tawm khawm khawm ntau dua ib daim ntawv ib zaug).

Kom suav sau:

Muab lawv tso rau hauv tib lub nplaub tshev - thiab qhib.ino cov ntawv hauv Arduino IDE.

Muaj cov ntaub ntawv teeb tsa hauv qhov project config.h - qhov no yog qhov uas koj teev koj tus IP chaw nyob, koj li email chaw nyob thiab lwm yam kev xaiv. Nws tau tawm tswv yim zoo nrog txhua txoj kev xaiv los ntawm.

Sau thiab xa mus rau Arduino. Koj yuav xav tau tshem tawm Arduino tag nrho los ntawm Alarm panel rau program nws- zoo li txhua yam txuas nrog Arduino RX & TX (tus pin 0 & 1) tuaj yeem thaiv qhov kev ua haujlwm ntawm lub program usb. Lo qhov zoo tshaj plaws kom tsis txhob muaj 5V fais fab txuas nrog rau Arduino Thiab USB txuas nrog lub PC tib lub sijhawm raws li ob qho tib si yuav sim ua kom muaj zog Arduino.

Tsim tawm

Customizing software

Kuv tau pom Leonardo lossis Mega kom zoo rau kev debugging raws li koj tau txais ob lub chaw nres nkoj txuas - ib qho txuas rau lub tswb vaj huam sib luag thiab ib qho rau xa cov lus debug rov qab mus rau PC. Tab sis rau kev ua haujlwm ib txwm muaj - cov no lossis UNO yog qhov zoo tshaj plaws. Oscilloscope & ntsuas lub teeb liab digital yog cov cuab yeej zoo rau kev txiav txim siab cov txheej txheem siv - Kuv tuaj yeem sau ntau ntxiv txog yuav ua li cas kuv thim rov qab ua tus txheej txheem yog tias leej twg xav tau.

Pom zoo: