Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Sib sau ua ke rau ntawm Breadboard
- Kauj Ruam 2: Txuas Jumpers rau Lub Hwj Chim & Arduino
- Kauj Ruam 3: Upload Sketch/Code
- Kauj Ruam 4: Siv Tus Pab Nres Tsheb
- Kauj Ruam 5: Teeb Txoj Haujlwm Nres Tsheb Tshiab
Video: Arduino Parking Assistant - Ua Ntej Koj Lub Tsheb hauv Qhov Tseeb Txhua Lub Sijhawm: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Hauv txoj haujlwm no, Kuv yuav qhia koj yuav tsim koj li kev pabcuam chaw nres tsheb siv Arudino li cas. Tus pab nres tsheb no ntsuas qhov nrug deb ntawm koj lub tsheb thiab qhia koj kom nres nws hauv qhov chaw raug yog siv LCD nyeem ntawv nyeem thiab LED, uas hloov zuj zus los ntawm ntsuab mus rau liab. Cov liab LED pib ntsais muag yog tias koj nyob ze dhau. Ib lub pob ntawm tus pabcuam cia koj teeb tsa qhov chaw nres tsheb tshiab ib yam.
Txoj haujlwm no tau tsim los siv cov khoom siv los ntawm Elegoo Uno Project Super Starter Kit.
Khoom siv
Raws li tau hais, txoj haujlwm no tau tsim los siv Elegoo Uno Project Super Starter Kit, yog li tau txais cov khoom siv no txhais tau tias koj tau txais txhua yam koj xav tau los tsim nws.
Yog tias koj tsis muaj lossis xav yuav tag nrho cov khoom siv, koj yuav xav tau cov khoom siv hauv qab no:
- Arduino Uno - Yuav Ntawm No
- Breadboard & Jumpers - Yuav Ntawm No
- Ultrasonic Sensor- Yuav Ntawm No
- LCD Zaub- Yuav Ntawm No
- Tactile Pushbutton- Yuav Ntawm No
- 5mm RGB LED- Yuav Ntawm No
- 2 x 220 Ohm Resistors- Yuav Ntawm No
- 10K Potentiometer- Yuav Ntawm No
Kauj Ruam 1: Sib sau ua ke rau ntawm Breadboard
Pib tawm los ntawm ntsaws koj cov khoom siv rau hauv koj lub khob cij. Sim cais lawv ntau li ntau tau, yog li koj tau txais ntau qhov chaw los txuas koj cov neeg dhia.
Muaj peb ntu uas koj yuav tsum tau ua hauv qee qhov chaw kom tsis txhob muaj neeg dhia dhia ntxiv:
- Txuas lub 220ohm resistor mus rau txoj kab txuas nrog rau txhua qhov zoo (anode) ob txhais ceg ntawm LED. Koj tsuas yog xav tau cov ceg liab thiab ntsuab, koj tuaj yeem tawm ntawm ceg ceg txuas nrog.
- Txuas lub wiper (nruab nrab ceg) ntawm lub lauj kaub mus rau tib txoj kev raws li V0 ntawm LCD. Lub lauj kaub no yuav siv los kho qhov sib txawv ntawm LCD.
Kauj Ruam 2: Txuas Jumpers rau Lub Hwj Chim & Arduino
Kuv tau sim khaws txoj haujlwm no kom ze rau cov piv txwv qhia hauv Elegoo cov khoom siv li sai tau kom nws yooj yim zoo siv tib daim duab txuas thiab tsuas yog luam thiab muab qee qhov ntawm cov cai kom nws ua haujlwm.
Txoj haujlwm no siv cov lus qhia hauv qab no:
- Zaj Lus Qhia 4 - RGB LED
- Tshooj 5 - Cov tswv yim digital
- Zaj Lus Qhia 10 - Ultrasonic Sensor Module
- Zaj Lus Qhia 14 - LCD Zaub
Pib tawm los ntawm kev txuas lub zog rau cov khoom siv raws li pom hauv thawj daim duab. Koj xav tau GND thiab 5V muab rau lub ntsuas hluav taws xob ultrasonic, GND rau LED, GND mus rau lub khawm, thiab tom qab ntawd tus lej GND thiab 5V txuas rau LCD thiab lauj kaub.
Thaum qhov no ua tiav, koj tuaj yeem txuas cov khoom siv rau koj Arduino's IO:
- Pushbutton - D2
- Ultraonic Sensor Echo - D3
- Ultrasonic Sensor Trigger - D4
- RGB LED Green Leg - D5
- RGB LED Red Leg - D6
- LCD RS -D7
- LCD EN -D8
- LCD D4 - D9
- LCD D5 - D10
- LCD D6 - D11
- LCD D7 - D12
Kauj Ruam 3: Upload Sketch/Code
Tom ntej no, koj yuav tsum tau xa cov duab kos rau koj Arduino.
Rub tawm cov kab ntawv txuas thiab tom qab ntawd qhib nws hauv koj Arduino IDE.
Ntsaws rau hauv koj Arduino thiab xyuas kom tseeb tias koj tau txais qhov chaw nres nkoj com thiab pawg thawj coj xaiv raug, tom qab ntawd xa cov cai.
Kauj Ruam 4: Siv Tus Pab Nres Tsheb
Thaum koj txhawb lub chaw pabcuam chaw nres tsheb, nws qhia luv luv Chaw Pabcuam Chaw Pov Npav thiab tom qab ntawd pib ntsuas kev ntsuas nrug mus rau qhov khoom nyob rau pem hauv ntej ntawm lub ntsuas hluav taws xob ultrasonic, mus txog qhov siab tshaj 80cm - qhov no tuaj yeem hloov pauv hauv txoj cai kom haum rau koj qhov chaw nres tsheb. /chaw nres tsheb.
Qhov kev ncua deb tau tshwm rau ntawm LCD thiab RGB LED yuav ci raws li qhov nrug mus rau qhov khoom. Yog tias qhov khoom nyob ntawm qhov deb tshaj, LED yuav ntsuab tag thiab yog tias nws nyob ntawm qhov tsawg kawg nkaus nrug deb (qhov chaw nres tsheb raug) ces nws yuav liab tag. LED yuav hloov xim ib feem ntawm ob qhov txwv, nrog xim daj nyob nruab nrab. Yog tias lub hom phiaj los ze dua qhov tsawg tshaj plaws nrug, LED yuav nyem liab. Lub LCD yuav txuas ntxiv tso saib qhov kev ntsuas ntsuas tiag tiag thaum LED teeb.
Sim txav koj lub cev lossis txhais tes ua ntej ntawm lub ntsuas hluav taws xob ultrasonic thiab txheeb xyuas qhov ntsuas ntawm LCD hloov pauv thiab tias RGB LED hloov los ntawm ntsuab thaum koj nyob deb mus rau liab thaum koj nyob ze.
Kauj Ruam 5: Teeb Txoj Haujlwm Nres Tsheb Tshiab
Txhawm rau teeb tsa qhov chaw nres tsheb tshiab, xyuas kom tseeb tias lub tsheb nres hauv txoj haujlwm tshiab kom tau teeb tsa thiab cov duab tau qhia pom qhov raug nrug deb ntawm lub tsheb, tom qab ntawd nias lub pob kom hloov kho qhov chaw nres tsheb. Nco ntsoov tias qhov no tsis hloov qhov nrug deb tshaj plaws, yog li yog koj xav tau nres koj lub tsheb ntau dua li qhov nrug deb, tom qab ntawd koj yuav tsum tau hloov kho qhov no hauv txoj cai, qhov kev hloov kho no yog siv los kho kom raug.
Sim muab ib yam khoom lossis koj txhais tes tso rau ntawm qhov deb, hais ib ncig 40cm ntawm lub ntsuas cua ultrasonic thiab thawb lub pob. Lub LED yuav tsum nyem ntsuab thiab tom qab ntawd liab thiab qhov kev ncua deb tshiab yuav raug teeb tsa. Tam sim no koj yuav tsum pom tias RGB LED hloov liab tag los ntawm 40cm es tsis yog 20cm thiab pib ntsais muag thaum qhov nrug tsawg dua 40cm.
Txhawm rau rov pib dua qhov deb, teeb tsa qhov khoom mus rau 20cm los ntawm lub sensor thiab nias lub pob dua.
Qhov chaw raug yog 20cm thiab qhov siab tshaj deb yog 80cm tsuas yog siv tus lej tsis raug siv rau qhov piv txwv no. Koj yuav tsum teeb tsa koj tus kheej txwv rau koj lub nkas -las thiab tsheb ua ntej koj siv nws.
Yog li ntawd, tam sim no koj tus neeg pabcuam chaw nres tsheb tuaj yeem raug teeb tsa rau hauv ib lub thaiv thiab ntsia rau ntawm phab ntsa hauv koj chav nres tsheb. Koj kuj tseem yuav xav tso LCD thiab LED me ntsis ntxiv ntawm phab ntsa dua li lub ntsuas hluav taws xob ultrasonic kom nws yooj yim pom.
Qhia rau kuv paub tias koj yuav hloov lossis ua txawv hauv nqe lus.
Pom zoo:
QHOV QHOV TSEEB QHOV TSEEB QHOV TSEEB TSHIAB (Pi Tsev Ruaj Ntseg): 7 Kauj Ruam
LOST COST IOT THEFT DETECTION DEVICE (Pi Home Security): Lub kaw lus tau tsim los txhawm rau txheeb xyuas kev nkag mus (tsis tau tso cai nkag mus) rau hauv lub tsev lossis lwm thaj chaw. Txoj haujlwm no tuaj yeem siv hauv thaj chaw nyob, kev lag luam, kev lag luam, thiab cov tub rog lub zog rau kev tiv thaiv kev nyiag khoom lossis khoom puas tsuaj, ib yam
Kev Txawj Ntse Alexa: Nyeem Qhov Tseeb Tseeb Tseeb (Hauv Qhov No, Vajtswv): 6 Kauj Ruam
Alexa Skill: Nyeem Qhov Tseeb Tseeb (Hauv Qhov No, Vajtswv): Kuv tau ua Alexa Skill los nyeem " Vajtswv Tseeb Tweet " - cov ntsiab lus, uas yog, los ntawm @TweetOfGod, 5 lab+ tus lej sau npe tus account tsim los ntawm yav dhau los Txhua Hnub Qhia Ua Yeeb Yaj Kiab. Nws siv IFTTT (Yog Qhov No Yog Li No), Google Daim Ntawv Qhia Tawm, thiab
Tig Koj Lub Qhov Rooj Hauv Qhov Rooj Mus Rau Hauv Qhov Rooj Ntse Nrog Lub Tsev Pabcuam: 6 Kauj Ruam
Tig Koj Lub Qhov Rooj Qhov Rooj Mus Rau Hauv Qhov Rooj Ntse Nrog Tus Pab Hauv Tsev: Hloov koj lub qhov rooj uas twb muaj lawm mus rau hauv lub qhov rooj ntse. Tau txais kev ceeb toom rau koj lub xov tooj lossis ua ke nrog koj lub koob yees duab lub qhov rooj uas twb muaj lawm kom tau txais daim duab lossis video ceeb toom txhua lub sijhawm ib tus neeg hu koj lub tswb
Yuav Ua Li Cas Tsim Ib Qhov Tseeb Tseeb Duab Los Ntawm Ntau Qhov Tseeb Tseeb: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tsim Ib Qhov Ua Kom Pom Dua Duab Los Ntawm Ntau Qhov Ua Ntej Ua Ntej: Kuv qhia kom siv Helicon Focus software. Windows thiab Mac version muaj nyob ntawm d-Stidio qhov chaw Cov program tau tsim los rau kev siv duab thaij duab, microphotography thiab duab toj roob hauv pes hyperfocal kom daws tau qhov teeb meem qhov tob ntawm qhov chaw.Hel
Txawb Xov Tooj Tswb rau Lub Tsheb Tsav Tsheb, Tsheb lossis Txhua Yam Koj Xav Tau: 7 Kauj Ruam (nrog Duab)
Txawb Xov Tooj Tswb rau Maus Taus, Tsheb lossis Txhua Yam Koj Xav Tau: Kuv tau txais kev ceeb toom ib txwm ua suab nrov ntau, thiab tsis muaj leej twg ua daim ntawv ceeb toom ntawm lawv ntxiv lawm. Tsis tas li tsis paub yog leej twg tau cuam tshuam nrog kuv lub tsheb kauj vab vim tias kuv nyob deb kom hnov lub tswb.Yog li kuv txiav txim siab ua lub tswb no siv lub xov tooj qub