Cov txheej txheem:
- Kauj ruam 1: Cov ntaub thaiv npog
- Kauj Ruam 2: Teem Sijhawm (RTC)
- Kauj Ruam 3: Hloov Bluetooth Baud Tus Nqi (xaiv tau)
- Kauj ruam 4: App + Arduino Code
- Kauj ruam 5: Lub thawv
- Kauj Ruam 6: Siv Timer
Video: Arduino/Android Timer (nrog App!) Tswj Koj Teeb thiab Lwm Yam Khoom: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Nyob zoo! Ntawm no kuv nrog lwm tus timer. Nrog txoj haujlwm no koj tuaj yeem teeb tsa yog tias lub sijhawm yuav yog "ON" lossis "OFF" rau txhua teev ntawm ib hnub. Koj tuaj yeem teeb tsa ntau dua ib qho xwm txheej hauv ib hnub los ntawm kev siv Android app. Los ntawm kev sib txuas Arduino thiab Android peb tuaj yeem "hla" cov txheej txheem nyuaj, yog li peb tsis xav tau lcd, khawm, thiab lwm yam,. Koj tsuas yog xav xaiv lub sijhawm twg uas koj xav tau "ON" lossis "OFF" ntawm koj lub xov tooj lossis ntsiav tshuaj.
Kev ua haujlwm yog ntawm bluetooth. Thaum koj tau teeb tsa lub sijhawm, koj tuaj yeem txuas lub xov tooj. Lub kaw lus khaws cov chaw (tshwj tsis yog koj tua lub arduino). Yog koj txuas dua, lub kaw lus yuav "qhia" lub xeev yav dhau los ntawm cov nyees khawm.
Txoj haujlwm no yog tsom tswj lub teeb, tab sis koj tuaj yeem siv nws hauv ntau lwm daim ntawv thov.
Yam uas koj xav tau:
-Arduino UAS
-RTC 1307 tus qauv
-HC-06 Bluetooth module
-5V relay module
-Plastic lub thawv
-12V adapter (haum rau arduino)
-Txhua yam Arduino daim ntawv pov thawj tiv thaiv
-Android xov tooj lossis ntsiav tshuaj
-Soldering hlau, solder hlau
-Pin headers
-Cov xov hlau
-AC ntsaws thiab qhov (socket)
Saib cov yees duab! Siv nws ua phau ntawv qhia.
Kauj ruam 1: Cov ntaub thaiv npog
Peb yuav tsum ua kom muaj kev sib cog lus kom tuav tau cov qauv thiab txuag chaw. Ib daim ntawv tiv thaiv kab mob yog qhov kev xaiv zoo. Ua raws li cov lus qhia thaiv kab thiab muab tus kab taub hau ntsaws thiab ntsaws. Ceev faj yog tias koj cov qauv tsis muaj kev teeb tsa tib tus pin.
Arduino rau cov qauv:
A4 to SDA RTC
A5 to SCL RTC
Pin 10 to bluetooth TX
Pin-11 rau bluetooth RX
Pin.13 rau Relay S.
GND thiab VCC (5V), feem.
Koj tuaj yeem hloov kho qhov Circuit Court raws li koj xav tau.
Mount daim ntaub thaiv thiab txuas cov qauv.
NCO TSEG: T nws cov kauj ruam tom ntej xav tau daim ntaub thaiv thiab cov qauv txuas nrog. Rub tawm thiab ua haujlwm cov lej nrog rau daim ntaub thaiv.
Kauj Ruam 2: Teem Sijhawm (RTC)
Tam sim no peb yuav tsum teeb tsa lub moos. Ua siv Adafruit code. Khiav cov cai "Teem sijhawm RTC". Cov duab kos no siv Hnub thiab Sijhawm raws li lub khoos phis tawj koj siv (yog thaum koj sau cov cai) thiab siv qhov ntawd los ua haujlwm RTC. Yog tias koj lub khoos phis tawj lub sijhawm tsis raug teeb tsa koj yuav tsum kho qhov ntawd ua ntej. Tom qab ntawd koj yuav tsum nias lub pob Upload kom muab tso ua ke thiab tom qab ntawd rub tawm tam sim.
Lus ceeb toom!: Yog tias koj sau ua ke thiab tom qab ntawv tshaj tawm tom qab, lub moos yuav tawm los ntawm lub sijhawm ntawd.
Tom qab ntawd qhib qhov Serial monitor window kom pom tias lub sijhawm tau teeb tsa.
Xav paub ntau ntxiv ntawm no (Siv lub sijhawm tiag tiag):
cdn-learn.adafruit.com/downloads/pdf/adafruit-data-logger-shield.pdf
Kauj Ruam 3: Hloov Bluetooth Baud Tus Nqi (xaiv tau)
Ua raws li phau ntawv qhia no txhawm rau hloov tus nqi baud yog tias koj xav tau, tab sis siv kuv cov cai (hauv qab no), yoog raws qhov Circuit no. Tsis txhob hloov tus pin lossis kev sib txuas. Hla qib 1 thiab 2. Pib los ntawm kauj ruam 3.
42bots.com/tutorials/hc-06-bluetooth-module…
Tsis txhob hnov qab hloov tus nqi baud ntawm no:
teeb tsa tsis muaj dab tsi () {BT.begin (115200); // lossis 9600 yog tias koj tsis tau hloov pauv tus nqi
9600 yog tus nqi baud ntawm HC-06 (ib txwm). Kuv yeej tsis paub ntau npaum li cas cuam tshuam rau qhov no, vim tias kuv twb muaj tus nqi baud ntawm 115200 (tau kawg uas 115200 nrawm dua 9600).
Kauj ruam 4: App + Arduino Code
Lub app tau tsim nrog MIT app tus tsim tawm. Nov yog kuv thawj app!.
Lub app xa cov ntawv thaum koj nyem lub pob thiab arduino tau txais cov ntawv thiab teeb tsa lub xeev lub pob (HIGH lossis LOW). Cov nyees khawm ua haujlwm zoo li "toggle", yog li koj tsis tas yuav xaiv nruab nrab ntawm thiab tawm (ntau yam apps). Tom qab ntawd, arduino xa lwm cov ntawv los hloov xim ntawm lub pob. Yog li, xim ntawm cov nyees khawm tau muab los ntawm arduino thiab tsis yog los ntawm app. Lub luag haujlwm no tso cai rau koj tshem tawm Android thiab thaum rov txuas dua, lub kaw lus yuav xa cov teeb tsa yav dhau los. RTC tswj lub sijhawm. Hloov qhov kev sib piv ua haujlwm, teev ib teev, lub xeev khawm (HIGH lossis LOW) thiab qhib lossis tua qhov txuas.
Piv txwv: 0 teev
(App) Nyem 0 (liab)> Xa "a">
(Arduino) Txais "a"> Hloov lub xeev_0 rau HIGH> yog lub xeev_0 == HIGH> Xa "aa" rau App>
Hloov Case 0: yog state_0 == HIGH> Relay ON
(App) Tau txais "aa"> Hloov xim rau ntsuab
Nyem dua:
(App) Nyem 0 (ntsuab)> Xa "a">
(Arduino) Tau txais "a"> Hloov lub xeev_0 mus rau LOW> yog lub xeev_0 == LOW> Xa "ab" rau App> Hloov Case 0: yog state_0 == LOW> Relay OFF
(App) Tau txais "ab"> Hloov xim rau liab
Tej zaum cov kab ke qeeb me ntsis, tab sis nws ruaj khov thiab koj yeej tsis poob lub xeev.
Koj tuaj yeem pom lub app thiab hloov kho qhov koj xav tau, lossis siv nws rau lwm qhov haujlwm
ai2.appinventor.mit.edu/?galleryId=6319497148628992
Kauj ruam 5: Lub thawv
CEEB TOOM: Ceev faj nrog qhov hluav taws xob siab!
Siv lub thawv tsim nyog rau cov khoom siv. Txhim kho cov qauv thiab pawg thawj coj saib arduino rau hauv lub thawv, kom tsis txhob "ntab" cov khoom hauv lub thawv. Kuv tau siv qee qhov spacers.
Koj yuav tsum cuam tshuam ib kab siv kev sib txuas "COM" thiab "NO". Saib cov schematic. Qhov ntev ntawm txoj hlua nyob ntawm koj daim ntawv thov.
NCO TSEG: Kuv tab tom siv RTC los ntawm cov ntaub thaiv npog datalogger (nws zoo ib yam). Nrog RTC 1307 tus qauv koj tuaj yeem txuag chaw, lossis nce nws ntawm daim ntawv pov thawj tsab ntawv (kuv tab tom siv rtc ntawm lwm qhov haujlwm)
Koj tuaj yeem ua lub thawv raws li koj xav tau, ua raws cov lus qhia no.
Kauj Ruam 6: Siv Timer
Tshaj tawm cov cai "Arduino Android Timer"
Qhib lub bluetooth ntawm koj lub cuab yeej Android Ua raws cov kauj ruam ib yam li lwm lub cuab yeej bluetooth. Qhov thawj lub xeev ntawm cov nyees khawm yog grey (tsis txuas nrog). HC-06 muaj tus coj uas ntsais muag thaum tsis txuas nrog, nyem rau ntawm "Bluetooth" txhawm rau txhawm rau txuas kev sib txuas. Yog tias kev sib txuas tau ua, cov coj yuav nyob. Muab ob peb vib nas this rau "daim ntawv qhia" lub xeev ntawm cov nyees khawm.
Koj tuaj yeem teem sijhawm ntau dua ib qho kev tshwm sim hauv ib hnub, piv txwv li: 0 txog 3; 8 txog 13; 16-22, ib.
Txuas koj lub teeb. Tam sim no xaiv lub sijhawm twg uas koj xav tau ON (ntsuab) lossis OFF (liab), thiab qhov ntawd yog txhua yam!. Koj tuaj yeem teeb tsa koj lub sijhawm rau koj lub teeb hauv tsev thaum koj mus txog tsev thaum tav su.
Nco ntsoov tias lub app nws tsuas yog rau kev ua haujlwm. Thaum koj ua qhov ntawd, koj tuaj yeem txuas lub xov tooj lossis ntsiav tshuaj, thiab lub kaw lus yuav khaws cov chaw, mus txog thaum koj hloov pauv lossis teeb tsa lub arduino. Yog tias koj txuas dua, arduino yuav xa koj lub xeev cov nyees khawm.
Lub app tau sim ntawm Android 4.2.2 thiab 5.1.
Zoo li kuv tau hais, txoj haujlwm no muaj ntau daim ntawv thov, uas nyob ntawm koj!
Pom zoo:
HV Insulator Pendant Teeb thiab Lwm Yam Cim Cim Teeb: 8 Kauj Ruam (nrog Duab)
HV Insulator Pendant Teeb thiab Lwm Yam Cim Cim Teeb: Kuv tau tawm ntawm qhov tangent ib hnub thiab pib ua cov teeb sib txawv. Kuv 3D luam tawm qee qhov thiab tau txais ntau qhov seem los ntawm Lowes thiab lub khw muag duas nyiaj.Qhov zoo tshaj plaws yog thaum kuv pom lub thoob ntawm lub hwj chim ncej insulators ntawm lub tsev muag khoom. Lawv tau $ 3 txhua. Tom qab ntawd
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: 5 Kauj Ruam (nrog Duab)
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: Tswj 8 qhov hloov pauv hloov siv nodemcu thiab ir tus txais tshaj wifi thiab ir chaw taws teeb thiab hauv app.the ir tej thaj chaw deb ua haujlwm ywj pheej ntawm wifi txuas. NTUJ
Tsis siv neeg Catapult rau Pov Cov Khoom Noj (dev, miv, Qaib, thiab lwm yam), Pov Pob thiab Ntau Ntxiv!: 4 Cov Kauj Ruam (nrog Duab)
Tsis siv neeg Catapult rau Zaub Zaub Tsiaj (dev, Miv, Qaib, Etc), Pov Pob thiab Ntau Ntxiv!: Nyob zoo thiab txais tos rau kuv thawj Qhov Kev Qhia! Kuv tau tsim txoj hauv kev kom qeeb qhov no, los ntawm cov npas nrog cov zaub mov sab hauv los pov nws thoob plaws lub tiaj nraum qaum tsev. Amazingly, nws yog
Yuav Ua Li Cas RC Cua Nkoj! Nrog 3D Luam Qhov Chaw thiab Lwm Yam Khoom: 5 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas RC Cua Nkoj! Nrog 3D Luam Qhov Chaw thiab Lwm Yam Khoom: Cov nkoj hauv nkoj yog qhov zoo vim tias lawv lom zem heev los caij thiab tseem ua haujlwm ntau yam ntawm cov nplaim dej, zoo li dej, daus, dej khov, asphalt lossis tsuas yog ib qho twg, yog lub tshuab muaj zog txaus. tsis nyuaj heev, thiab yog tias koj twb muaj lub tshuab hluav taws xob
Cov Roj Teeb Lemon Me, thiab Lwm Cov Qauv rau Xoom Tus Nqi Hluav Taws Xob thiab Coj Lub Teeb Tsis Muaj Roj Teeb: 18 Kauj Ruam (nrog Duab)
Cov Roj Teeb Lemon Me, thiab Lwm Cov Qauv rau Xoom Tus Nqi Hluav Taws Xob thiab Coj Lub Teeb Tsis Muaj Roj Teeb: Nyob zoo, tej zaum koj twb paub txog txiv qaub roj teeb lossis roj teeb roj teeb. Lawv tau siv ib txwm siv rau lub hom phiaj kev kawm thiab lawv siv cov tshuaj tiv thaiv hluav taws xob uas tsim hluav taws xob qis, feem ntau pom nyob rau hauv daim ntawv ntawm cov coj lossis lub teeb ci ci. Cov no