Cov txheej txheem:

Cov Kab Yooj Yooj Yooj Yim Siv Arduino: 5 Kauj Ruam
Cov Kab Yooj Yooj Yooj Yim Siv Arduino: 5 Kauj Ruam

Video: Cov Kab Yooj Yooj Yooj Yim Siv Arduino: 5 Kauj Ruam

Video: Cov Kab Yooj Yooj Yooj Yim Siv Arduino: 5 Kauj Ruam
Video: Qhia Siv Program Screen Capture Camtasia Studio 8 Tutorial 2024, Kaum ib hlis
Anonim
Cov Kab Yooj Yim Yooj Yim Siv Arduino
Cov Kab Yooj Yim Yooj Yim Siv Arduino

Arduino Line Follower Robot

Hauv qhov kev qhia no, peb yuav tham txog kev ua haujlwm ntawm Arduino kab hauv qab cov neeg hlau uas yuav ua raws kab dub nyob hauv keeb kwm yav dhau dawb thiab ua qhov hloov pauv raug thaum twg nws mus txog qhov nkhaus hauv nws txoj kev.

Arduino Line Follower Components

  1. Arduino
  2. IR Sensor (Array Sensor lossis 2 Tus Kheej Sensors)
  3. DC Tsav
  4. Roj teeb LIPO
  5. Neeg Hlau
  6. Arduino IDE Cov

Arduino

Koj txhua tus yuav paub nrog Arduino; uas yog qhov kev siv dav tshaj plaws thiab hloov pauv sai hauv tshuab hluav taws xob nrog ntau lub microcontroller boards thiab software. Rau peb kab hauv qab cov neeg hlau, Kuv yuav siv Arduino UNO uas yog pawg thawj coj saib feem ntau siv.

Arduino Nano yog qhov kev xaiv zoo tshaj plaws los pib nrog cov khoom siv hluav taws xob thiab coding yog tias qhov no yog koj thawj zaug kev paub nrog Arduino Platform. Koj tuaj yeem siv ib qho Arduino Board rau txoj haujlwm no.

IR Sensor

Raws li tau hais ua ntej, peb kab hauv qab neeg hlau yuav ua raws kab dub hauv keeb kwm dawb. Yog li peb xav tau qee yam uas yuav 'pom' kab thiab qhia rau tus ua raws kab ntawv kom ua raws kab lossis tig rov qab yog tias nws yuav mus deb ntawm kab. Rau lub hom phiaj no, peb yuav siv IR (Infra Red) Sensor.

Kauj Ruam 1: Pib Nrog PCB

Pib Nrog PCB
Pib Nrog PCB
Pib Nrog PCB
Pib Nrog PCB

Tau txais PCB los ntawm JLCPCB

EasyEDA yog qhov yooj yim tab sis muaj zog online PCB tsim cov cuab yeej uas tso cai rau cov kws tsim khoom siv hluav taws xob, hackers, kws qhia ntawv, nyiam ua haujlwm, tsim khoom, thiab txaus siab rau tsim thiab sib qhia lawv cov phiaj xwm kev ua haujlwm zoo li PCB txheej txheem. Nov yog cov cuab yeej tsim ua ke ua ke LCSC cov khoom teev npe thiab JLCPCB PCB kev pabcuam uas pab cov neeg siv kom txuag sijhawm los ua lawv cov tswv yim rau hauv cov khoom lag luam tiag.

Hais lus yooj yim, PCB txheej txheem zoo ib yam li daim duab qhia chaw. Ib daim duab qhia chaw uas txuas txhua lub Cheebtsam rau ib leeg siv kev coj ua. Nws yog qhov kev tsim qauv no peb luam tawm ntawm lub rooj tsav tooj liab uas tau tsim los rau PCB. Surface Mount Technology yog cov txheej txheem ntawm kev sib sau PCBs los ntawm kev teeb tsa cov khoom sib txuas ntawm cov npoo ntawm lub rooj tsavxwm. Tsis zoo li cov txheej txheem ib txwm tso cov khoom sib txuas los ntawm lub qhov thiab muab tshuaj txhuam rau ntawm lwm sab, hauv SMT, cov khoom siv tau muab tso rau saum lub rooj tsavxwm thiab cov hlau lead tau muab muag rau tib sab.

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

Txhawm rau Pib, Ua ntej Mus rau EasyEDA lub vev xaib thiab tsim tus as khauj dawb. Mus rau "Editor" thiab tsim txoj haujlwm tshiab. Txog tam sim no, JLCPCB muaj 689 cov khoom siv yooj yim thiab 30k+ Cov khoom txuas ntxiv ntawm koj qhov pov tseg. Saib daim ntawv teev cov khoom ua tiav ntawm no. Nco ntsoov tias koj ntxiv cov khoom siv los ntawm cov npe no thaum kos cov lej hauv EasyEDA. Koj tuaj yeem tshawb nrhiav cov khoom siv thiab tshawb xyuas nws muaj.

Tam sim no koj tuaj yeem tau txais koj cov txheej txheem ua tiav siv cov cuab yeej inbuilt hauv EasyEDA. Tam sim no koj tuaj yeem rub tawm Gerber cov ntaub ntawv thiab siv nws los tsim koj li PCB los ntawm JLCPCB.

Gerber Cov Ntaub Ntawv muaj cov ntaub ntawv hais txog koj li PCB xws li PCB txheej xwm txheej, Cov ntaub ntawv txheej, cov ntaub ntawv sib nrug, cov npe rau ob peb tus. BOM Cov Ntaub Ntawv lossis Cov Nqi Ntawm Cov Khoom muaj cov npe ntawm txhua feem hauv Txheej Txheem. CPL cov ntaub ntawv (Cov Npe Sau Npe / Xaiv & Muab Cov Ntaub Ntawv (PNP) cov ntaub ntawv), nws tau siv los ntawm kev siv tshuab SMT sib dhos los txiav txim siab qhov twg txhua ntu yuav tsum nyob ntawm lub rooj tsavxwm.

Kauj Ruam 3: Txiav txim rau PCB

Kev txiav txim rau PCB
Kev txiav txim rau PCB
Kev txiav txim rau PCB
Kev txiav txim rau PCB
Kev txiav txim rau PCB
Kev txiav txim rau PCB
Kev txiav txim rau PCB
Kev txiav txim rau PCB

Mus rau JLCPCBs lub vev xaib thiab Nyem rau "Hais Tam Sim No" thiab xa koj cov ntaub ntawv Gerber. Thaum cov ntaub ntawv Gerber tau rub tawm, nws yuav qhia koj ua ntej ntawm koj lub rooj tsav xwm hauv Circuit Court. Nco ntsoov qhov no yog PCB Txheej Txheem ntawm lub rooj tsavxwm uas koj xav tau. Hauv qab PCB saib ua ntej, koj yuav pom ntau txoj kev xaiv xws li PCB Quantity, Texture, Thickness, Color etc. Xaiv txhua yam uas tsim nyog rau koj.

Nyem rau ntawm "Sib sau koj cov laug cam PCB".

Tam sim no, koj yuav tsum xa cov ntaub ntawv BOM thiab CPL uas peb tau rub tawm ua ntej. Xaiv tag nrho cov khoom koj xav kom JLCPCB sib sau ua ke hauv koj li PCB. Tsuas yog nyem rau ntawm lub thawv lees paub los xaiv cov khoom.

Hauv nplooj ntawv no, koj tuaj yeem tshuaj xyuas koj daim ntawv xaj. Koj tuaj yeem tshawb xyuas qhov txheej txheem, pom txhua yam khoom siv thiab yog tias muaj teeb meem, koj tuaj yeem nyem rau "Rov Qab" txhawm rau kho koj li kev xaj.

Thaum txhua yam ua tiav, nyem rau "Txuag Rau Lub Laub". Hauv nplooj ntawv tom ntej, koj tuaj yeem xaiv kev xa khoom thiab them nyiaj xaiv thiab Txheeb Xyuas Kom Ruaj Ntseg. Koj tuaj yeem siv Paypal lossis Credit/Debit Card los them.

PCB yuav raug tsim thiab xa tawm tsis pub dhau hnub thiab yuav xa mus rau koj lub qhov rooj tsis pub dhau lub sijhawm teev tseg.

Kauj Ruam 4: Sib Sau Cov Neeg Hlau

Tam sim no cia peb pib tsim Tus Neeg Hlau ntawm peb Arduino Line Follower. Ntawm no peb tab tom tsim 4 lub log neeg hlau, nrog 2 DC Motors txuas nrog ntawm ob sab (pem hauv ntej) thiab ob lub log dummy nyob sab nraub qaum. Raws li tau hais ua ntej, peb yuav siv Arduino UNO pawg thawj coj kom tau txais cov tswv yim los ntawm cov ntsuas, ua haujlwm lawv thiab xa cov cim rau L293D lub cev muaj zog tsav tsheb IC kom tsav DC lub cev muaj zog ntawm Kab Tom Qab Neeg Hlau Arduino.

L293DB Hauv qab no koj tuaj yeem pin tawm daim duab ntawm L293D IC. Raws li koj tuaj yeem pom nws muaj ob tus pin rau kev nkag mus rau qhov hluav taws xob. Ib ntawm lawv yog txhawm rau txhawb lub zog sab hauv ntawm IC thiab lwm qhov rau kev tsav lub cav.

Pin 8 - Tsav Tsheb - 4.5 V txog 33 V Pin 16 - Ua haujlwm ntawm IC– 5V Yog tias koj rov thim qhov kev sib txuas no yam tsis raug, koj yuav hlawv lub nti. Qhov IC no muaj ob H Choj txuas thiab yog li nws muaj peev xwm tswj tau ob lub cav ib tus zuj zus tib lub sijhawm. Ib sab ntawm IC no tswj hwm ib lub cav thiab lwm sab tswj lub cav thib ob. Rau lub cav ua haujlwm, Pab kom tus pin ntawm sab ntawd yuav tsum siab.

Cov pins uas siv tau kuj tseem tuaj yeem siv los tswj qhov nrawm ntawm lub cav siv PWM (Pulse Width Modulation). Yog tias koj xav paub ntau ntxiv txog L293D thiab ua haujlwm ntawm H-Choj, ua raws qhov txuas hauv qab no. Nyem rau qhov no Kawm paub ua haujlwm ntawm H Choj Tsav Tsav Tsheb Yog li peb muaj ob lub log.

Tus neeg taug txoj kab no mus tom ntej, thim rov qab, sab laug lossis sab xis li cas?

Logic yog yooj yim zoo nkauj. Thaum ob lub tshuab hluav taws xob tig tib txoj kev taw qhia (moos txawj ntse lossis tiv thaiv lub moos ntse), cov kab hauv qab ntawm arduino yuav txav mus rau tom ntej lossis rov qab. Yog tias ob qho tib si txav mus rau qhov tsis sib thooj, cov kab hauv qab no neeg hlau yuav tig sab laug lossis sab xis.

Koj yuav tau txais daim duab sib txuas ua tiav ntawm no -> Kab Follower Ua tiav Tutorial

Kauj Ruam 5: Tso Cai thiab Ua Ntej Ua Ntej

Uploading Code thiab Thawj Khiav
Uploading Code thiab Thawj Khiav

Txoj cai yog yooj yim to taub thiab yog tias koj muaj lus nug txog cov lej, thov hu rau nws hauv cov lus lossis hauv peb lub zej zog. Koj yuav tau txais cov lej tiav los ntawm no.

Tshaj tawm cov cai, ua kom muaj zog, thiab tso koj Arduino Line Follower Robot hauv kab dub thiab pom tus neeg hlau ua haujlwm.

Muaj kev lom zem? Hauv tshooj lus tom ntej, kuv yuav qhia koj yuav suav nrog PID Algorithm hauv peb Arduino Line Follower kom ua rau peb cov neeg hlau yooj yim dua thiab nrawm dua los ntawm kev tswj qhov ceev ntawm lub cav. Sau npe RootSaid rau ntau qhov haujlwm txaus.

Pom zoo: