Cov txheej txheem:

Tswj DC Motors Nrog Arduino thiab L293: 5 Cov Kauj Ruam (nrog Duab)
Tswj DC Motors Nrog Arduino thiab L293: 5 Cov Kauj Ruam (nrog Duab)

Video: Tswj DC Motors Nrog Arduino thiab L293: 5 Cov Kauj Ruam (nrog Duab)

Video: Tswj DC Motors Nrog Arduino thiab L293: 5 Cov Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Lub Xya hli ntuj
Anonim
Tswj DC Motors Nrog Arduino thiab L293
Tswj DC Motors Nrog Arduino thiab L293
Tswj DC Motors Nrog Arduino thiab L293
Tswj DC Motors Nrog Arduino thiab L293
Tswj DC Motors Nrog Arduino thiab L293
Tswj DC Motors Nrog Arduino thiab L293

Txoj hauv kev yooj yim los tswj DC lub cav. Txhua yam koj xav tau yog kev paub txog hluav taws xob thiab kev ua haujlwm

Yog tias koj muaj lus nug lossis teeb meem koj tuaj yeem tiv tauj kuv ntawm kuv tus email: [email protected]

Mus ntsib kuv tus youtube channel:

Yog li cia pib.

Kauj ruam 1: Saib Video

Koj tseem tuaj yeem pom tias txoj haujlwm no ua haujlwm li cas

www.youtube.com/watch?v=tm69V7npSg8

Kauj ruam 2: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Txhua yam ntaub ntawv koj xav tau tuaj yeem nrhiav tau ntawm ebay lossis amazon. Tab sis yog tias koj muaj cov khoom siv hluav taws xob qub xws li tshuab luam ntawv lossis lwm yam koj tuaj yeem tau txais cov ntaub ntawv los ntawm qhov ntawd.

Tus Neeg Pab Txhawb Txuas: UTSource.net Xyuas Nws yog lub vev xaib ntseeg tau rau kev xaj cov khoom siv hluav taws xob nrog pheej yig

tus nqi thiab zoo heev

Rau qhov haujlwm no koj yuav xav tau:

-motor tsav L293D

-Arduino Mega 2560 lossis Uno

-daim ntawv qhia

-9V roj teeb

-DC lub cev muaj zog

-9V roj teeb rooj

-qee cov xov hlau

-Green thiab liab LED diodes

-Ob lub laub khawm

-two 10k ohm resistors

Tsav tsheb L293D

Koj tuaj yeem siv cov nti no los tswj ib lossis ob lub cav sib txawv Nws nyob hauv TTL tsev neeg, uas txhais tau tias nws khiav ntawm 5V+.

Nws muaj 16 tus pin

Pin 1 no connect

Pin 2 yog cov tswv yim

Pin 3 yog qhov tso tawm rau lub cev muaj zog

Pin 4 thiab 5 txuas nrog GND ntawm roj teeb

Pin 6 yog qhov tso tawm thib ob rau lub cev muaj zog

Tus Pin 7 yog lub tswv yim thib ob

Pin 8 yog V+ los ntawm roj teeb (9V)

Ntawm lwm sab yog tib yam tsuas yog:

Tus pin 16 yog Vcc+

Pin 9 no connect

Kauj Ruam 3: Kev thaiv kab hlau

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Yog tias koj yuav muaj teeb meem nrog thaiv koj tuaj yeem pab koj tus kheej nrog cov duab. Ntau saum toj no muaj kev tswj hwm lub cev 1 lub zog thiab nqes qis yog kev tswj hwm 2 lub cav. Kuv ua piv txwv nrog tsuas yog ib lub cav.

Cov tswv yim digital 2 txuas nrog ON khawm (khawm nrog lub hau xiav)

Cov tswv yim digital 3 txuas nrog OFF khawm (khawm nrog lub hau liab)

Nrog ob lub khawm no koj tuaj yeem hloov kev taw qhia ntawm kev sib tw

Koj yuav tsum txuas 10k ohm resistor ntawm GND los ntawm Arduino kom thawb khawm tus pin.

Ntsuab LED diode txuas nrog cov khoom siv digital 5

Liab LED diode txuas nrog cov khoom siv digital 4

Txuas L293D

Pin 1 tsis txuas yog li koj cia nws khoob.

Tom ntej no yog Pin 2 uas yog txuas rau digital tso tawm ntawm Arduino (koj tuaj yeem xaiv ib qho digital tso tawm los ntawm 2 txog 53)

Pin 3 txuas ncaj qha rau lub cav

Pin 4 thiab 5 txuas nrog roj teeb GND

Pin 6 txuas ncaj qha rau lub cav

Tus Pin 7 yog txuas rau cov khoom siv digital ntawm Arduino

Pin 8 yog V+ los ntawm roj teeb. Kuv qhia koj kom siv roj teeb 9V yog li lub cav yuav ua haujlwm tau zoo

Yog tias koj xav tau sijhawm koj tuaj yeem tsim hluav taws xob.

Koj yuav tsum tau ceev faj tias koj txuas GND ntawm Arduino nrog GND ntawm roj teeb

Yog tias koj xav tswj ob lub cav koj yuav tsum xaim lwm sab ntawm L293D

Pin 16 yog Vcc+. Koj tau txais 5V qhov hluav taws xob los ntawm Arduino

Tus Pin 15 txuas nrog digital tso tawm ntawm Arduino

Tus Pin 14 txuas nrog ncaj qha rau lub cav

Pin 13 thiab tus pin 12 txuas nrog GND ntawm roj teeb

Tus Pin 11 txuas nrog ncaj qha rau lub cav

Tus Pin 10 txuas nrog digital tso tawm ntawm Arduino

Pin 9 no connect

Kauj Ruam 4: Tsim Lub Rooj Tswjhwm Saib Circuit

Tsim cov Circuit Board
Tsim cov Circuit Board

Kuv tau ua qhov Circuit no los ntawm kuv tus kheej. Rau qhov kos rau hauv Circuit yog siv SprintLayout. Qhov no yog qhov program rau kos cov kab hluav taws xob, hauv txoj haujlwm no koj muaj txhua qhov ntev ntawm cov khoom siv hluav taws xob yog li yooj yim koj tuaj yeem ua Circuit rau txhua yam uas koj xav tau.

Rau kev kos duab lub rooj tsavxwm no siv CNC engraving milling tshuab. Kuv siv lub rooj tsav xwm ib txwm rau cov kab hluav taws xob uas tau pom nrog tooj liab ntawm ib sab. Thaum lub rooj tsavxwm tiav kuv tau txhuam nws nrog cov xuab zeb zoo heev. Kuv siv cov cawv thiab cov paj ntoo ua hmoov. qhov sib xyaw no kuv tau coatted tooj liab sab los tiv thaiv nws.

Kauj ruam 5: Code

Kuv ua peb tus lej sib txawv.

Tsav tswj:

Tom qab txhua 5 vib nas this lub cev muaj zog hloov txoj hauv kev tig

Tsav tswj nrog 1 khawm:

Thaum koj ntaus khawm thawj zaug lub cev muaj zog tig rau hauv ib qho kev taw qhia, thaum koj tsoo lub pob thib ob lub cev muaj zog pib tig rau lwm sab

Tsav tswj nrog 2 khawm:

Thaum koj tsoo ON khawm lub cev muaj zog tig rau hauv ib qho kev taw qhia, thaum koj tsoo OFF khawm lub cev muaj zog tig rau lwm txoj kev.

Pom zoo: