Cov txheej txheem:
- Kauj Ruam 1: Teem Txhua Cheeb Tsam
- Kauj Ruam 2: Ua Qhov Hauv Lub Thawv
- Kauj Ruam 3: Kev thaiv kab hlau
- Kauj Ruam 4: Teem Potentiometer & Coding
- Kauj ruam 5: Kua nplaum
- Kauj ruam 6: Ua tiav
Video: Pib -Teeb: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Kuv muaj phau ntawv txee nyob rau ces kaum ntawm chav tsev. Thaj chaw tsis pom kev, thiab kuv tsis nyiam qhib lub teeb thiab tua txhua lub sijhawm kuv xav nqa phau ntawv.
Nrog qee yam khoom siv yooj yim thiab cov cai yooj yim, koj kuj tseem tuaj yeem ua lub teeb uas yuav pom lub teeb thaum koj xav tau, thiab tua thaum koj tsis xav tau.
Rau qhov haujlwm no kuv siv daim npav arduino nano.
Lub teeb muaj 2 lub ntsuas hluav taws xob: lub ntsuas hluav taws xob nrug deb deb thiab lub teeb pom kev zoo (LDR). Lub ntsuas hluav taws xob ultrasonic ceeb toom lub microcontroller thaum tus neeg mus rau lub teeb - yog li nws yuav tsum qhib. LDR sensor tshuaj xyuas yog tias chav tau teeb lawm - thaum twb muaj teeb pom kev txaus hauv chav lawm, lub teeb yuav tsis pom kev txawm tias thaum mus txog.
Lub teeb yuav tig nws tus kheej tawm ib leeg yog tias qee lub sijhawm tsis muaj leej twg hla nws mus.
Kauj Ruam 1: Teem Txhua Cheeb Tsam
Cov no yog cov khoom siv hauv kev tsim kho:
- Ultrasonic sensor (Amazon)
- Arduino board (Tsis muaj teeb meem dab tsi, kuv xaiv Nano vim tias nws loj) (Amazon)
- USB qhov (poj niam) - tsis xav tau, tab sis zoo dua kom muaj. (Amazon)
- USB cable uas haum rau Arduino board
- Cov xov hluav taws xob-ob peb txiv neej-poj niam thiab ob peb txiv neej-txiv neej. (Amazon)
- USB powered teeb (Amazon)
- Resistor - 10KΩ yog qhov zoo
- LDR (Amazon)
- Potentiometer (Amazon) Cov
- Lub thawv ntawv me me - txhua yam khoom yuav muab tso rau hauv
Cov cuab yeej siv hauv kev tsim kho:
- Soldering hlau + tin
- Phom phom
- riam riam
Yog tias koj muaj tag nrho cov no, koj tuaj yeem pib!
Kauj Ruam 2: Ua Qhov Hauv Lub Thawv
Muab lub ntsuas hluav taws xob ultrasonic tso rau ntawm lub npov thiab cim nws "qhov muag" nrog tus cwj mem.
Siv rab riam muaj txiaj ntsig, txiav 2 lub qhov hauv lub thawv kom koj tuaj yeem ntxig "qhov muag" ntawm lub tshuab ulltrasonic los ntawm daim duab los qhia.
Nrog rab koob, hle 2 lub qhov me me nyob rau sab saum toj ntawm lub thawv, los ntawm qhov uas koj yuav xov LDR xov tom qab.
Txiav ib lub qhov me me ntawm USB txuas ntawm lub hauv ntej / sab saum toj ntawm lub thawv.
Nyob tom qab - ua lub qhov kom koj tuaj yeem hla lub USB cable hla nws mus rau lub microcontroller.
Kauj Ruam 3: Kev thaiv kab hlau
Ua ntej, hla LDR ob txhais ceg hla lub qhov uas koj tau ua hauv cov kauj ruam dhau los.
Weld ib ceg ntawm LDR rau ib ceg ntawm tus tiv thaiv. Nyob rau tib qhov chaw, txuas ib tus txiv neej-txiv neej xov, zoo li hauv daim duab.
Cov txiv neej-poj niam xov tau ntxiv rau ob txhais ceg ntawm LDR, thiab ib qho ntxiv rau lwm ceg ntawm tus tiv thaiv.
Ntxig cov xaim txuas nrog GND tus pin ntawm Arduino board, xaim txuas nrog LDR ntsaws rau 5V, thiab xaim txuas nrog ob ntawm lawv rau A0.
Qhov no yuav tsim qhov ntsuas hluav taws xob poob rau ntawm tus tiv thaiv, kom muaj lub teeb pom kev ntau dua hauv chav - qhov siab dua qhov peb tau txais los ntawm cov xaim hluav taws xob.
Siv 3 tus txiv neej-poj niam xaim, txuas lawv mus rau ob txhais ceg ntawm lub zog ntsuas. Txuas ob txhais ceg sab nraud - ib qho rau 5 V thiab ib qho rau GND, nruab nrab ceg mus rau A1.
Siv 4 tus txiv neej-poj niam xov hlau, tom qab ntawd txuas ob txhais ceg ntawm lub ntsuas ultrasonic raws li no:
- Gnd (sensor)> Gnd (arduino)
- Trig (sensor)> tus pin 4 (arduino)
- Echo (sensor)> tus pin 5 (arduino)
- Vcc (sensor)> 5V (arduino)
Weld 2 txiv neej xov rau 2 sab ceg sab nraud ntawm USB nkaus.
Txuas ib qho ntawm lawv mus rau GND thiab lwm tus ntawm tus pin 6. Koj yuav paub qhov twg los txuas rau tus pin tom qab koj ua qhov kev xeem hauv qab no:
Sim txuas ib qho ntawm lawv rau GND thiab ib qho rau 5V, thiab ntsaws lub teeb rau hauv USB nkaus. Yog tias nws tsis pom kev - tig cov xov hlau los ntawm GND mus rau 5V thiab hloov pauv. Thaum lub teeb tuaj - txav cov hlau los ntawm 5V tus pin thiab muab tso rau hauv 6 tus lej digital.
Kauj Ruam 4: Teem Potentiometer & Coding
Rub cov kab ntawv txuas thiab xa nws mus rau arduino.
Muab lub rooj tsavxwm uas koj xav tias 'tsaus'.
Qhib tus lej saib (ctrl + M) - Koj yuav pom 2 tus lej luam tawm ntau zaus. Kho lub potentiometer kom txog thaum ob tus lej hais txog sib npaug.
Rub tawm cov cai los ntawm github.com. Qhib cov ntawv 'AutoLamp.ino' thiab xa nws mus rau arduino. (Koj yuav tsum rho cov ntawv ua ntej).
Kauj ruam 5: Kua nplaum
Ntxig tag nrho cov khoom rau hauv lub thawv.
Muab lub ntsuas hluav taws xob tso rau sab xub ntiag, sab hauv lub qhov uas koj txiav, thiab muab lo rau hauv qhov chaw nrog rab yaj phom.
Muab cov LDR tso rau hauv qhov chaw, tab sis tsis txhob npog nws.
Kua lub USB qhov nyob ib sab ntawm lub qhov uas koj tau ua rau nws kom nws tau ntsib.
Dhau tus USB cable hla lub qhov uas koj tau ua rau nws, thiab lo nws kom nws tsis txav mus.
Kaw thiab lo lub thawv kom nws tsis qhib.
Kauj ruam 6: Ua tiav
Txuas lub xov tooj mus rau lub charger USB thiab muab lub thawv tso rau qhov tsaus ntuj. Txuas lub teeb rau lub qhov (socket) USB.
yog li ntawd! Tam sim no thaum koj hla ntawm nws lub teeb yuav ci.
Yog tias koj tsis hla ntawm nws ib pliag, nws yuav tawm ib leeg.
Pom zoo:
Pib Pib Nrog Bascom AVR: 5 Kauj Ruam
Pib Pib Nrog Bascom AVR: Nov yog qhov pib ntawm kev qhia koj li program koj AVR microcontroller nrog Bascom AVR.Why kuv ua qhov no.Muaj feem ntau ntawm cov qauv kev qhia hauv kab ntawv no koj tuaj yeem ua nrog Arduino. Qee qhov yooj yim dua thiab qee qhov nyuaj dua, tab sis thaum kawg ob leeg yuav
Tau txais Neopixel Tshiab? Nov yog Phau Ntawv Qhia Pib Pib!: 5 Kauj Ruam
Tau txais Neopixel Tshiab? Nov Yog Phau Ntawv Qhia Pib Sai!: Kuv paub tias hauv kuv qhov kev qhia zaum kawg kuv hais tias kuv yuav ua ntu zus, tab sis kuv tsis tau ua. Zoo, kuv tau sim, tab sis kuv tsis muaj lub tswv yim zoo: Ciab npog sib phim: KABOOM
DC Lub Cev Pib Pib, Ceev thiab Kev Taw Qhia Siv Tus Kheej Potentiometer, OLED Zaub & Khawm: 6 Cov Kauj Ruam
DC Motor Smooth Start, Speed and Direction Siv Tus Kheej Potentiometer, OLED Display & Buttons: Hauv qhov kev qhia no peb yuav kawm paub siv L298N DC MOTOR CONTROL tus tsav tsheb thiab lub hwj chim kom tswj tau DC lub zog pib zoo, nrawm thiab qhia nrog ob lub khawm thiab tso saib tus nqi potentiometer ntawm OLED Zaub. Saib cov yeeb yaj kiab
Pib Pib Rau Hauv FPV Drone Racing: 11 Kauj Ruam
Pib Pib Rau FPV Drone Racing: FPV Drone Racing muaj ntau yam sib txawv. Muaj sab hauv tsev aka Tiny Whoop sib tw uas siv quads uas qis dua 50 grams, tsis loj dua 50mm cov khoom siv, lawv muaj cov kav dej, thiab yuav luag ib txwm khiav ntawm 1s sab hauv tsev. Tom qab ntawd muaj chav kawm loj dua uas
Nab hab sej rau Tsis Yog-Pib Pib Pib: 7 Kauj Ruam
Nab hab sej rau Tsis -Yog li Pib Pib: Nyob zoo, zaum kawg, yog tias koj tau mob siab rau, peb tau kov ntawm qhov pib ntawm nab nab - luam tawm, thaum thiab rau loops, nkag & tso tawm, yog, thiab pib ntawm easygui. kuj yog kev faib dawb pub dawb ntawm easygui thiab pycal-kuv tus kheej module.this nyeem yuav suav nrog: ntau dua