Cov txheej txheem:

Kev Tswj Lub Vev Xaib Valentine: 8 Kauj Ruam (nrog Duab)
Kev Tswj Lub Vev Xaib Valentine: 8 Kauj Ruam (nrog Duab)

Video: Kev Tswj Lub Vev Xaib Valentine: 8 Kauj Ruam (nrog Duab)

Video: Kev Tswj Lub Vev Xaib Valentine: 8 Kauj Ruam (nrog Duab)
Video: Muaj 5 nqis qhia txog cov hluas ua li cas thiaj tsim txiaj. 2024, Kaum ib hlis
Anonim
Web Tswj Valentine
Web Tswj Valentine

Nrog qhov sib xyaw ntawm software thiab kho vajtse, koj tuaj yeem ua lub teeb pom kev zoo nkauj hmo ntuj los ntawm txhua qhov chaw nrog internet nkag tau. Yog li ntawv koj puas nco qab thaum ua haujlwm, hauv khw kas fes, tom tsev, lossis ntawm koj lub vev xaib (siv lub xov tooj), koj tuaj yeem qhia koj tus valentine tias koj tseem nco tau.

(qhov ntawd, lossis koj tuaj yeem thab koj tus hlub los ntawm kev nrawm nrawm lub teeb nyob rau ib hnub, kom txog thaum nws tus kheej tig nws tawm) Hloov tshiab 4/16/07: TSIS MUAJ TSHUAJ TSHIAB! Thaum kawg kuv tau sau kuv tus kheej cov phiaj xwm kev sib txuas lus, nrog cov cai tshiab, qhov kev ncua tau ploj mus.

Kauj Ruam 1: Sau Cov Khoom

Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom
Sib Sau Cov Khoom

Muaj ntau txoj hauv kev los tswj lub qhov hluav taws xob los ntawm lub PC, tab sis txij li thaum kuv muaj ib qho dag nyob ib puag ncig txhua qhov, Kuv ua raws txoj haujlwm ntawm Arduino NG i/o board. ($ 32 los ntawm Sparkfun) Tag nrho lwm qhov chaw tau suav nrog, khaws hauv zos ntawm Xov Tooj Cua Shack lossis yuav tom khw muag khoom noj; yog li ntawd, muaj qee qhov tsis txaus ntseeg hacks koom nrog. Tsis txhob cia siv Arduino ua rau koj tsis txhob sim qhov no, lossis teeb meem zoo sib xws. Arduino yog ib qho yooj yim heev thiab pheej yig.- = MATERIALS =-Kho vajtse-Arduino NG-USB Prototyping Board9vdc 350ma lub zog hloov hluav taws xobUSB txiv neej A-txiv neej B cablecomputer fais fab qaum (lossis lwm qhov tsim nyog hauv av qaum) peb lub qhov hluav taws xob, npog, thiab boxPC Relay- 12vdc coil ntsuam xyuas rs ntu #275-248Reed Relay-5vdc coil ntsuas rs ntu #275-232diode (kuv siv rs ntu #276-1620, tab sis kuv muaj nws dag ib ncig) Lub plawv-adorned hmo ntuj teeb-Software-Arduino IDE los ntawm https://www.arduino.ccXampp los ntawm https://www.apachefriends.org/en/xampp-windows.htmlComSender - kuv cov phiaj xwm kev sib txuas lus, php code, thiab Arduino code. (txuas nrog)

Kauj ruam 2: Npaj Relay

Npaj Relay
Npaj Relay

Qhov no yooj yim zoo nkauj.

Nrhiav cov pins rau "coil" (2 pins), "common", thiab "nquag qhib". Cov phom hnyav hnyav xaim rau "ib txwm" thiab "nquag qhib". Cov xov hlau no yuav nqa 120vac, yog li kuv hais qhia me ntsis ntawm cov xaim los ntawm lub pc fais fab cable. Tsuas yog nco ntsoov tsis txhob noj ntau dhau, 3 ntiv tes txaus. Cov kab hluav taws xob sib zog ntsuas cov xov hlau rau ob txoj hlua txuas, cov no yuav nqa 9vdc ntawm tsis ntau dua 350ma. xaiv cov kauj hlau twg koj xav kom muaj qhov zoo (nws tsis muaj teeb meem dab tsi) thiab xaiv cov xim hlau kom tsim nyog kom thiaj li tsis txhob totaub. solder diode nruab nrab ntawm ob txoj hlua txuas, kom cov kab dub nyob ntawm ib sab ntsib tus pin zoo. Cov diode no pab txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm

Kauj Ruam 3: Tsim Lub Box Outlet

Tsim lub thawv rau khoom
Tsim lub thawv rau khoom

Txiav tus poj niam kawg ntawm PC lub xov tooj hluav taws xob, yog tias koj tsis tau ua dua, thiab xov xov cable los ntawm ib qho ntawm qhov nyob hauv lub thawv qhov hluav taws xob. hle peb lub xov hlau sab hauv thiab txuas lawv raws li hauv qab no.

txuas ntsuab rau hauv av txuas ntawm lub qhov hluav taws xob. txuas dawb rau qhov nruab nrab txuas ntawm lub qhov hluav taws xob. txuas cov xim dub rau "ib txwm" xaim los ntawm kev xa tawm. txuas lub "nquag qhib" xaim mus rau qhov txuas txuas ntawm lub qhov hluav taws xob. Txheeb ob zaug txhua yam, qhov no yog 120 peb tab tom cuam tshuam nrog. Yuam kev yog phem. kaw txhua yam kom zoo thiab huv si, kom tsis txhob luv thiab ua txhua yam kom zoo nkauj. Xov xov xov los ntawm ib qho ntawm qhov me me hauv lub thawv qhov hluav taws xob thiab txuas lub qhov hluav taws xob mus rau lub thawv.

Kauj Ruam 4: Ntxiv Secondary Relay

Ntxiv Secondary Relay
Ntxiv Secondary Relay
Ntxiv Secondary Relay
Ntxiv Secondary Relay
Ntxiv Secondary Relay
Ntxiv Secondary Relay
Ntxiv Secondary Relay
Ntxiv Secondary Relay

Kuv tau cia siab tias ntawm qhov no kuv tuaj yeem txuas qhov txuas mus rau Arduino thiab hu rau kho vajtse tiav; Txawm li cas los xij, tsis sib xws rau thawj qhov kev sim, 5vdc (qhov tam sim no tso tawm ntawm cov ntaub ntawv pins ntawm Arduino) yuav tsis ntseeg tau tsav 12v relay. Kuv yuav tsum ntxiv qhov txuas me me thib ob thiab coj mus rhaub rau hauv 9v tso tawm ntawm lub rooj tsavxwm. Qhov hloov pauv me me no hloov 9vdc siv 5vdc. tias 9vdc tom qab ntawd hloov qhov kev xa xov loj dua.

cov xov hlau txuas rau cov coj ntawm ob qhov kawg ntawm lub reed relay ("ib txwm qhib" thiab "ib txwm"). ntsaws ib lub xaim rau hauv 9vdc txuas, thiab txuas rau lwm qhov rau koj cov xaim zoo los ntawm qhov txuas loj dua. txuas cov xov hlau hauv av los ntawm cov kauj ntawm qhov txuas loj dua mus rau hauv av ntawm Arduino. ob txoj hlua coj los ntawm reed relay yuav tsum haum snugly hauv pins 12 thiab hauv av ntawm Arduino thiab tuav lawv tus kheej hauv qhov chaw, ntxiv rau txhawb nqa qhov xa rov qab qhov hnyav. Txuas Arduino mus rau lub qhov hluav taws xob, kom paub tseeb tias yuav tsum tau insulate nrog kab xev hluav taws xob. Kuv siv cov roj hmab los tuav nws, tab sis kuv txoj kev los ntawm tsis txhais tau tias zoo meej. Tsis tas li, teeb lub hwj chim jumper ntawm Arduino rau EXT thiab ntsaws nws rau hauv lub zog hloov pauv thiab USB. kuj ntsaws rau hauv PC Lub Hwj Huam Hluav Taws Xob, thiab ntsaws lub teeb hmo ntuj rau hauv qhov hluav taws xob Qhov no suav nrog HARDWARE PORTION

Kauj ruam 5: Nruab Software

Nruab Software
Nruab Software

Yog tias koj tsis tau ua dua, teeb tsa XAMPP thiab Arduino IDE tam sim no.

Tsis tas li nruab USB cov tsav tsheb suav nrog Arduino IDE thiab teeb tsa qhov chaw nres nkoj COM raws li hauv IDE Tom ntej, luam Sender.exe rau C: / Sender.exe (lossis lwm qhov chaw yooj yim, yog tias koj txaus siab kho PHP ntawv) thiab luam MSCOMM32. OCX rau koj qhov system nplaub tshev (c: / windows / system).

Kauj Ruam 6: Program Board/Sau PHP

Pawg Tswj Xyuas Haujlwm/Sau PHP
Pawg Tswj Xyuas Haujlwm/Sau PHP

Kuv tau suav nrog qhov chaws rau Arduino thiab Server.

xub qhib PHP ntawv thiab ua cov kev hloov hauv qab no: teeb tsa $ txoj kev mus rau qhov chaw ntawm Sender.exe teeb tsa $ chaw nres nkoj mus rau COM chaw nres nkoj arduino tau siv txuag cov ntaub ntawv PHP mus rau htdocs nplaub tshev hauv koj phau ntawv XAMPP raws li index.php thauj khoom Arduino IDE thiab qhib cov ntaub ntawv Arduino. Nias lub khawm pib dua ntawm Arduino. Tom qab ntawd, nias lub pob hloov pauv sai hauv IDE. Thaum cov ntaub ntawv tau pauv mus, koj ua tiav.

Kauj Ruam 7: Xeem/Debug

Xeem/Debug
Xeem/Debug
Xeem/Debug
Xeem/Debug

qhib koj tus browser, thiab mus rau https:// localhostyou yuav tsum pom ib nplooj ntawv hu ua "tswj qhov hluav taws xob". Yog koj tsis ua, muaj teeb meem nrog XAMPP. Nco ntsoov tias Apache tau ua haujlwm, thiab qhov ntawd koj tsis ua txhaum PHP. Yog koj ua, sim ob lub khawm.if tom qab nias "rau" lub teeb hmo ntuj qhib, thiab tom qab nias "tawm" nws tig tawm, nws txhua yam ua haujlwm tau zoo.if nws tsis teb, txheeb xyuas qhov koj xaiv ntawm COM chaw nres nkoj hauv PHP file.if uas tsis pab, muaj lus tawm tswv yim debugging code hauv Arduino cov ntaub ntawv uas ua rau lub teeb ntsais ntawm tsib thib ob ntu … koj tuaj yeem siv nws debug koj lub khoos phis tawj tam sim no ntawm lwm lub khoos phis tawj… nkag mus los ntawm lub khoos phis tawj IP chaw Nyob Yog tias txhua yam mus tau zoo, tam sim no koj tuaj yeem tswj lub teeb nyob txhua qhov chaw hauv ntiaj teb… xav txog kev ntxiv tus password.happy valentines day.ps yog tias koj nyob tom qab ntawm lub router, koj yuav xav siv chaw nres nkoj xa mus kom tuaj yeem nkag mus rau nplooj ntawv los ntawm sab nraum koj lub network. nrog chaw nres nkoj xa mus, koj tsuas yog siv koj tus router IP pej xeem nkag mus rau nplooj ntawv.

Kauj Ruam 8: Kev txhim kho yav tom ntej

Kev txhim kho yav tom ntej
Kev txhim kho yav tom ntej

1) Tau tshem ntawm DelayFINISHED - KEV TSHAWB TSHIAB YUAV TSUM TSHUAJ! 2) USB powered (siv qhov txuas zoo dua, thiab kuv tuaj yeem tshem tawm ntawm phab ntsa wort3) yooj yim installsingle step installs thiab me me hneev taw tau zoo dua 4) Ntau qhov hluav taws xob, ntau yam relayscan koj hais Christmas display5) infra-red transmitter (cia nws tswj koj lub chaw xov xwm) 7) xam tawm dab tsi "6)" was8) kev tsim kho/rooj plaub zoo dua

Pom zoo: