Cov txheej txheem:

Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM: 3 Kauj Ruam
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM: 3 Kauj Ruam

Video: Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM: 3 Kauj Ruam

Video: Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM: 3 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM
Kab Tom Qab Neeg Hlau Siv TIVA Microcontroller TM4C1233H6PM

Cov kab hauv qab cov neeg hlau yog lub tshuab muaj ntau yam siv los tshuaj xyuas thiab ua tom qab

cov kab tsaus nti uas tau kos rau ntawm qhov dawb. Raws li tus neeg hlau no tau tsim los siv lub rooj noj mov, nws yuav yooj yim tshwj xeeb los tsim. Cov kab ke no tuaj yeem sib xyaw rau hauv Automated Guided Vehicles (AGV) rau muab txoj hauv kev yooj yim rau kev ua. Los ntawm thiab loj, AGV tau suav nrog cov nti thiab PCs rau kev tswj hwm nws lub moj khaum. Nws ib yam nkaus li siv txoj haujlwm txheej txheem nkag mus rau qhov xav tau. Tsis tas li ntawd, cov pa hluav taws xob tseem ceeb, kev sib tham RF xav tau rau kev hais lus nrog lub tsheb thiab lub moj khaum tswj. Cov peev txheej hnyav li no tsis tas yuav tsum tau ua hauv kab no hauv qab cov neeg hlau, thiab nws tsuas yog siv IR cov cim kom txav ntawm kab tsaus ntuj. Qhov sib txawv ntawm chav-tshawb xyuas cov neeg hlau uas niaj hnub tawm tsam cov rooj zaum thiab npog cov npoo, koj tsis tas yuav ua raws txoj kev npaj ntau heev tom qab cov neeg hlau. Feem ntau cov kab hauv qab cov neeg hlau muaj ob lub cav, ob lub ntsej muag ua ntej, thiab cov khoom siv hluav taws xob tseem ceeb rau kev tswj tus kheej. Txawm li cas los xij, qhov txaus ntshai txog hom neeg hlau no yog qhov nws yooj yim los nthuav tawm me ntsis kev txhim kho rau suav nrog ntau yam zoo ib yam. Kev hloov pauv ncaj qha yog qhia cov neeg hlau hauv cov khoom siv dai kom zoo nkauj, nrog rau LEDs zoo nkauj. Cov txheej txheem tsim tawm ntxiv suav nrog cov cuab yeej tuag thiab lub programmable microcontroller Tiva kom nrawm dua, ua kom du dua.

Kauj Ruam 1: Cov Khoom Kho Vajtse

Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
Kho vajtse Cheebtsam
Kho vajtse Cheebtsam

1. Microcontroller TM4C123GH6PM

Cortex-M microcontroller xaiv rau khoos phis tawj-raws txoj haujlwm thiab cuam tshuam cov lus piav qhia yog TM4C123 los ntawm Texas Instruments. Lub microcontroller no yog rau qhov ua tau zoo ARM Cortex-M4F raws cov qauv thiab muaj cov txheej txheej sab nrauv sib xyaw ua ke.

2. 5 IR Sensor thiab Obstacle

Qhov no yog Tsib IR Sensor Qhia nrog Obstacle thiab Knock Sensor. Ib qho 5 IR sensor siv nrog TCRT5000 muaj kev txhim kho kev txhim kho qhov twg ua lub teeb pom kev zoo thiab tus nrhiav pom yog tus tswv ib txoj hauv kev zoo ib yam los txheeb xyuas qhov ze ntawm cov lus nug los ntawm kev siv ntse IR-beam los ntawm qhov khoom. Qhov haujlwm ua haujlwm ntev yog 5 cm. Tus cim suav nrog tus phototransistor. Xav paub ntxiv ?? Cov tswv yim hluav taws xob: 5V DC VCC, GND Pins. Cov zis: 5 los ntawm TCRT5000 yog S1, S2, S3, S4, S5 digital. Cov zis: 1 los ntawm Pob Hloov yog CLP digital. Cov Zis Tawm: 1 los ntawm IR Obstacle sensor Nyob ze digital.

3. DC Motors

Lub cav yog lub tshuab hluav taws xob uas hloov hluav taws xob hluav taws xob mus rau lub zog loj.

4. H-Choj L298N

Siv L298N los ua kev tswj hwm, tus qauv muaj cov yam ntxwv zoo li kev muaj peev xwm tsav tsheb, tsis muaj caloric hwm thiab muaj kev tawm tsam rau lub peev xwm tsis muaj peev xwm. Cov qauv no tuaj yeem siv ua haujlwm hauv 78M05 rau kev ua haujlwm hluav taws xob los ntawm kev siv lub zog tsav tsheb. Ua li ntawd, kom nyob deb ntawm qhov raug mob ntawm qhov ntsuas hluav taws xob ntsuas tawm nti, thov siv cov txheej txheem 5V sab nraud thaum siv ntau dua 12V tsav tsheb qhov hluav taws xob. Kev siv lub dav hlau txwv tsis pub ntau tshaj, cov qauv no tuaj yeem siv tom qab tam sim no kom ruaj ntseg diodes, thiab txhim kho qhov tsis zoo. L298N Ob Chav H Choj Tsav Tsav Tsav Tsheb: Xa mus rau qhov zoo ?? Tswj nti: L298N Logical voltage: 5V Tsav voltage: 5V - 35V Logical tam sim no: 0mA - 36mA Tsav tam sim no: 2A (MAX ib leeg choj) Cia kub: -20C txog +135C Max zog: 25W Loj: 43 x 43 x 27mm

5. Power Bank

lub txhab nyiaj hluav taws xob yog lub roj teeb me me lossis lub zog siv hluav taws xob uas tuaj yeem them tau los ntawm ib qho khoom siv USB txhawb nqa (tshwj tsis yog qhia qhov sib txawv los ntawm tus tsim khoom). Feem ntau lub txhab nyiaj fais fab yog rau qib siab tshaj, cov koob yees duab lossis cov ntsiav tshuaj zoo li Ipads. Lub txhab nyiaj hluav taws xob tau tsim los siv ultra-thickness A+ Li-polymer roj teeb hlwb thiab hwm microchips. Nws muaj cov cim teeb pom kev zoo ntawm lub teeb roj teeb LED thiab cov lus pom zoo.

Kauj Ruam 2: Kev Tsim Kho Cov Hluav Taws Xob Optocoupler

Optocoupler Circuit Tsim
Optocoupler Circuit Tsim

Lub Circuit Court no suav nrog plaub IC 4N35703 Muaj ob lub hauv paus ib qho txuas nrog

av ntawm Tiva microcontroller thiab lwm qhov hauv av txuas nrog Tus Tsav Tsheb. Cov tswv yim ntawm Tiva pins PA2-PA5 txuas nrog IC 4N35703 anode thiab peb tab tom siv ob hom kev tiv thaiv tus nqi 330k thiab 10k. Tus emitter raws li tus pin tso tawm ntawm IC txuas nrog Plaub tus pin ntawm H-Choj (Cov tswv yim 1-Cov tswv yim 4) thaum cov tswv yim 1 yog ntawm cov laj thawj siab lub log txoj cai txav mus rau tom ntej, thaum cov tswv yim 2 yog ntawm logic siab lub log sab xis txav rov qab thaum cov tswv yim 3 yog logic siab lub log tsheb sab laug txav rov qab thaum lub tswv yim 4 yog logic siab lub log tsheb sab laug txav mus rau tom ntej thiab thaum cov tswv yim 1 thiab cov tswv yim 2 ob qho tib si yog tib lub logic txoj cai log tsheb nyob ruaj khov thiab thaum cov tswv yim 3 thiab 4 nyob ntawm tib lub logic sab laug log tsheb nyob ruaj ruaj.

Kauj Ruam 3: Coding thiab Qhia Cov Ntaub Ntawv

Tsis Yog Rau Thov Thov

Pom zoo: