Cov txheej txheem:

TrojanBOT: 17 Cov kauj ruam
TrojanBOT: 17 Cov kauj ruam

Video: TrojanBOT: 17 Cov kauj ruam

Video: TrojanBOT: 17 Cov kauj ruam
Video: Amy Winehouse - Back To Black 2024, Kaum ib hlis
Anonim
TrojanBOT
TrojanBOT

Cov lus qhia no tau tsim los ua kom tau raws txoj haujlwm xav tau ntawm Makecourse ntawm University of South Florida (www.makecourse.com).

Kauj Ruam 1: Ua ntej Koj Pib, Koj Yuav Tsum:

ELECTRONICS

-Arduino Ib

-Adafruit Motorshield V2

-HC-05 bluetooth module rau Arduino

-4 pcs khoom ua si tsheb log nrog nrog dc lub cev muaj zog thiab lub thawv iav

-9V roj teeb

-Txiv neej rau poj niam jumper xov hlau

-mini qhob board

-USB 2.0 cable Hom-A rau Hom-B

HARDWARE

-Gorilla ciav kab xev

-Ob qhov epoxy

-Shaft couplers

-Skateboard bearings

-Soldering hlau

-3D tshuab luam ntawv

-kev sib txhuam daim kab xev

-txiab-me me hluav taws xob flathead scredriver

-Qhov me me allen ciaj ntswj

-Circular ntim cov hnab looj tes

SOFTWARE

-Arduino programming software

-3D Qauv Qauv

-Bluetooth electronics google ua si thov rau smartphone

Kauj ruam 2: 3D Qhov

3D Qhov
3D Qhov
3D Qhov
3D Qhov
3D Qhov
3D Qhov
3D Qhov
3D Qhov

TXHUA XEEM NTAWV YUAV TSUM YOG SOLIDWORKS PART FILES 2017. Hauv thawj ntu no peb muaj lub thawv hloov kho uas txhua yam ntawm peb cov khoom siv hluav taws xob yuav tuav. Qhov ntev ntawm cov ntu no tseem ceeb heev nrog chav me me rau kev ua siab ntev. Qhov ntev yog 190 mm X 125 mm. Lub thawv yog 60 hli siab. Lub thawv kuj muaj phab ntsa tuab ntawm 3 hli. Muaj plaub tus pegs ntawm lub npov uas lub hau yuav muab rau. Ceev faj, cov pegs tuaj yeem tawg tau yooj yim, tsis txhob yuam lub hau rau ntawm tus pas nrig.

Txoj Siv Conveyor yog qhov nyuaj tshaj plaws hauv txoj haujlwm no, muaj qhov ntev ntawm 91 mm ntev X 81 mm dav thiab qhov siab ntawm 46 mm.

Cov menyuam tau teev tseg rau lub hauv paus thauj khoom, koj yuav xav tau ob. Koj tseem yuav xav tau ob tus ncej. Cov kauj ruam tom ntej yuav qhia koj cov txheej txheem tsim.

Kauj Ruam 3: Kev Sib Ntsib ntawm Tus Neeg Soj Ntsuam: Yam Koj Yuav Tsum Tau

Kev sib dhos ntawm tus neeg nqa khoom: Koj Yuav Xav Li Cas
Kev sib dhos ntawm tus neeg nqa khoom: Koj Yuav Xav Li Cas

(Txhua yam koj yuav xav tau ntawm no yog nyob hauv ntu kho vajtse ntawm 'Ua ntej Koj Pib, Koj Yuav Xav Tau' kauj ruam)

-4x skateboard bearings

-1x Conveyor puag ib feem

-2 x 8 mm shafts

-2x Cov Menyuam

-Gorilla daim kab xev

-Loctite lossis Super Duper Glue

-Ntau daim kab xev

-Txais

-me me allen qhov tseem ceeb

Kauj Ruam 4: Sib dhos ntawm Txoj Siv Conveyor, Cov Menyuam

Sib dhos ntawm Conveyor Belt, Cov Menyuam
Sib dhos ntawm Conveyor Belt, Cov Menyuam
Sib dhos ntawm Conveyor Belt, Cov Menyuam
Sib dhos ntawm Conveyor Belt, Cov Menyuam

Qhov kev txiav txim ntawm yam koj ua hauv theem no tsis muaj teeb meem.

Ua ntej tshaj, nqa daim kab xev txhuam thiab yob nws ncig cov menyuam. (Qhov no yuav tso cai rau kev sib txhuam ntawm cov menyuam thiab txoj siv)

Tom qab ntawd, nqa tus ncej thiab ntxig nws rau hauv cov menyuam thiab ruaj ntseg nws nrog qee cov nplaum (super kua nplaum lossis Loctite)

Kauj Ruam 5: Npaj Koj Cov Bearings

Npaj Koj Cov Bearings
Npaj Koj Cov Bearings
Npaj Koj Cov Bearings
Npaj Koj Cov Bearings
Npaj Koj Cov Bearings
Npaj Koj Cov Bearings
Npaj Koj Cov Bearings
Npaj Koj Cov Bearings

Hauv cov kauj ruam no koj yuav xav tau koj 4 lub ntsej muag, kab xev qhwv, koj cov menyuam npaj ua ntej, koj lub hauv paus thauj khoom thiab qee cov txiab.

Ua ntej, nqa daim kab xev me me thiab txiav nws mus rau qhov dav ntawm cov kabmob. Qhwv nws ib ncig ntawm koj cov kabmob thiab rov ua qhov ntawd rau qhov seem ntawm cov kabmob

Tom ntej no, Muab swb ib qho kabmob ntawm ib sab ntawm txhua tus menyuam.

Tom qab ntawd, xaub koj cov kabmob + cov menyuam rau hauv ib sab ntawm lub hauv paus thauj khoom.

Thaum kawg, xaub koj cov kabmob los ntawm lub qhov ntawm lwm sab ntawm lub hauv paus thauj khoom thiab mus rau lwm sab ntawm tus ncej

Kauj Ruam 6: Kev Sib Ntsib Ntawm Txoj Siv Conveyor: Txoj Siv

Sib dhos ntawm Txoj Siv Conveyor: Txoj Siv
Sib dhos ntawm Txoj Siv Conveyor: Txoj Siv
Sib dhos ntawm Txoj Siv Conveyor: Txoj Siv
Sib dhos ntawm Txoj Siv Conveyor: Txoj Siv
Sib dhos ntawm Txoj Siv Conveyor: Txoj Siv
Sib dhos ntawm Txoj Siv Conveyor: Txoj Siv

-Ua ntej tshaj, kwv yees li 10 `` daim kab xev qhwv

-Qhov thib ob, quav ib kawg rau lwm qhov kom qhov 'nplaum' xaus kov.

-Thib peb, txiav daim no tawm thiab qhwv ib ncig ntawm cov menyuam. (Yuav muaj qee qhov sib tshooj uas zoo).

-Fourth, xyuas kom tseeb tias koj pom qhov twg ob qho kawg sib ntsib thiab txiav qhov twg sib ntsib no, thiab txiav cov ntu sib tshooj uas koj pinched ntawm.

Qhov thib tsib, siv daim kab xev me me (1.5 `` - 2.0 '') ntev thiab txiav nws tawm.

-Sixth, Siv daim kab xev me me, thiab tso ib nrab ntawm nws ib sab ntawm koj txoj siv. (Lwm qhov 'nplaum' ib nrab ntawm daim me me ntawm daim kab xev yuav tsum raug nthuav tawm)

-Saib xya, qhwv koj txoj siv ib ncig ntawm cov menyuam thiab ruaj ntseg lwm qhov 'nplaum' kawg ntawm daim kab xev me me rau lwm qhov kawg ntawm koj txoj siv.

-Thaum kawg, sim tawm koj txoj siv thauj khoom kom ntseeg tau tias nws txav mus. (Tej zaum koj yuav tsum tau rov ua cov txheej txheem no tag nrho kom txog thaum koj tau txais txoj cai, yog tias txoj siv tsis txav mus ntxiv tab sis sim ua kom txoj siv nruj dua).

Kauj Ruam 7: Sib dhos Cov Log: Npaj DC Lub Cev Tsav Tsheb

Los Ua Ke Ntawm Cov Log: Npaj DC Motor Casings
Los Ua Ke Ntawm Cov Log: Npaj DC Motor Casings
Los Ua Ke Ntawm Cov Log: Npaj DC Motor Casings
Los Ua Ke Ntawm Cov Log: Npaj DC Motor Casings
Los Ua Ke Ntawm Cov Log: Npaj DC Motor Casings
Los Ua Ke Ntawm Cov Log: Npaj DC Motor Casings

Koj yuav xav tau tag nrho 3 DC motors

Ua ntej tshaj, muab cov xov hlau txuas rau ntawm lub dav hlau DC

-Saib thib ob, tshem DC lub cav tawm ntawm cov casings thiab siv lub dremel tshem tawm cov clip los ua kom du

-Finally, dremel ib lub taub hau kom ua rau lwm qhov du

-Rov ua qhov txheej txheem no rau 5 lub cav sib txawv (4 casings rau lub log thiab 1 lub cas rau DC lub cev muaj zog tsav txoj siv txoj siv thauj khoom.

Kauj Ruam 8: Sib dhos Cov Log: Rhais Cov Tsav Tsheb Nrog DC Motors Txuas nrog

Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog
Los Ua Ke Ntawm Cov Log: Mount Lub Cev Tsav Tsheb Nrog DC Motors Txuas nrog

Hauv cov kauj ruam no koj tsuas yog siv 2 DC lub cav nrog lawv cov casings thiab 2 qhov hloov pauv ntau dua

-Ua ntej tso 2 DC lub cav rau hauv ob lub casings

-Saib thib ob, siv koj ob feem epoxy los npog cov nplaim du ntawm lub casing thiab tso lawv rau hauv ob sab xub ntiag nrog DC lub cev muaj zog xov hlau nthuav tawm (2 casings thiab 2 lub cev muaj zog)

-Txhob, teeb lub nraub qaum ob sab (ob lub rooj no yuav tsis muaj lub cav hauv lawv).

Kauj Ruam 9: Kev Sib Dhos ntawm Cov Tshuab Conveyor Nrog Lub Cev

Los ua ke ntawm Conveyor System Nrog Tsav
Los ua ke ntawm Conveyor System Nrog Tsav
Los ua ke ntawm Conveyor System Nrog Tsav
Los ua ke ntawm Conveyor System Nrog Tsav
Los ua ke ntawm Conveyor System Nrog Tsav
Los ua ke ntawm Conveyor System Nrog Tsav

Hauv theem no, koj yuav xav tau tus lej tseem ceeb, qee daim kab xev, koj txoj siv thauj khoom, thiab tus ncej txuas

-Pib los ntawm kev zawm lub hau ntswj taub hau kom pom qhov kawg ntawm txoj siv txoj siv thauj khoom

Qhov thib ob, ua si txoj siv thauj khoom sab hauv lub thawv

-Txhuaj, xaub lub ntsej muag nthuav tawm ntawm lub cev muaj zog mus rau lwm qhov kawg ntawm lub coupler (sim ua kom txhua yam ncaj ncaj li sai tau) thiab kaw lub qhov txuas txuas.

Thaum kawg, tau txais kev muaj tswv yim nrog cov kab xev, thiab kaw daim kab xev DC lub cev rau sab nrauv ntawm lub thawv. Xyuas kom nws ruaj ntseg tab sis tsis nruj heev! Thiab tsis txhob npog lub qhov tsim los rau qhov thaiv.

Kauj Ruam 10: Thaiv Diagram: Tus Cuam Tshuam rau Cov Khoom Siv Hluav Taws Xob

Thaiv Diagram: Tus Txheej Txheem rau Lub Tshuab Hluav Taws Xob
Thaiv Diagram: Tus Txheej Txheem rau Lub Tshuab Hluav Taws Xob

Lub cav tsheb yuav raug teeb tsa ncaj qha mus rau Arduino. Koj yuav siv txiv neej rau poj niam jumper xov hlau los ua kev sib txuas ncaj qha mus rau lub rooj tsav tsheb sib tsoo hauv peb qhov chaw rau koj li DC motors. Muaj Vin chaw nres nkoj uas koj yuav txuas ncaj qha rau lub roj teeb 9 Volt. Lub khob cij yuav siv los txuas HC-05 bluetooth module rau lub rooj tsav tsheb. Thiab thaum kawg koj yuav xav tau lub xov tooj smartphone los rub tawm Bluetooth Electronics daim ntawv thov thiab hloov kho RC tswj lub plhaub program los tswj tus bot

Kauj Ruam 11: Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob

Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob

Rau qhov kev sib dhos no, koj yuav xav tau:

-Motorshield thiab Arduino

-Six txiv neej rau poj niam jumper xov nrog txiv neej xaus stripped

-HC-05 bluetooth module

-Ib daim ntawv me me

-Four ntxiv txiv neej rau poj niam jumper xov hlau

-9 Volt roj teeb txuas nrog qhov kawg hle tawm

-2 cov xov hlau me

-Lub taub hau me me

-Ua ntej tshaj, Siv ob txoj hlua M-F jumper xov hlau thiab siv lub taub hau me me ntsia hlau txuas txuas qhov xaus ntawm cov xov hlau jumper mus rau M1 mus rau lub qhov rooj.

-Tom ntej no, siv lub hwj chim txuas xov hlau thiab txuas lawv mus rau hauv Vin ntawm lub qhov rooj tsheb (POLARITY yog qhov tseem ceeb !!!)

-Thaum kawg, txuas 2 txoj kab xov tooj mus rau hauv M3 thiab ob lub xov hlau rau hauv M4 ntawm daim iav.

Thaum nws tau hais thiab ua tiav, koj yuav tsum muaj cov kab ke uas zoo li daim duab 4 hauv theem no.

Kauj Ruam 12: Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv

Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv
Sib dhos ntawm Cov Khoom Siv Hluav Taws Xob txuas ntxiv

Tam sim no koj tuaj yeem teeb lub cav no ncaj qha mus rau Arduino

Tom ntej no, txuas koj HC-05 mus rau daim ntawv qhia zaub mov

-Connect 5 V ntawm HC-05 mus rau qhov zoo ntawm lub khob cij thiab GRND ntawm HC-05 mus rau qhov tsis zoo ntawm lub khob cij siv koj cov xov hlau me.

-Connect Txoj Kev Tsheb nqaj hlau Zoo rau ntawm daim phiaj rau 5 V ntawm daim iav, thiab txoj kev tsis zoo mus rau GND ntawm arduino siv ob txoj kab txuas tsis txuas MF

-Kev siv cov hlua txuas tsis txuas, txuas tus txiv neej kawg rau TX thiab lwm tus txiv neej rau RX ntawm HC-05 thiab khiav TX ntawm HC-05 rau RX ntawm lub qhov rooj tsheb, thiab RX ntawm HC-05 mus rau TX ntawm motorshield. (Cov no raug xaiv los ua 0 thiab 1 tus lej digital ntawm lub motorshield

Qhov no yog txhua qhov thaiv xav tau rau txoj haujlwm no.

Kauj ruam 13: Schematic

Schematic
Schematic

-Ntawm no koj tuaj yeem pom Bluetooth module txuas nrog lub khob cij. Nws muaj 4 tus pin uas peb yuav siv, TX, RX, Vcc, thiab GRND. Txuas GRND thiab VCC rau txoj kab tsis zoo thiab zoo, feem. Tom qab ntawd siv cov xov hlau txuas los txuas lub dav hlau tsis zoo rau GRND ntawm daim thaiv thiab txoj kev tsheb nqaj hlau zoo rau 5 V ntawm daim ntaub thaiv.

-TX los ntawm HC-05 mus rau RX ntawm lub motorshield, RX ntawm HC-05 mus rau TX ntawm arduino (Tsis meej pem, kuv paub).

-Hauv qhov txheej txheem nws tsis muaj lub cav qhov tseeb tab sis koj yuav txuas lub dav hlau ntawm DC lub cav mus rau M3, M4, thiab M1 ntawm daim ntaub thaiv.

Thaum kawg, txuas lub roj teeb 9V rau Vin lub dav hlau ntawm daim ntaub thaiv.

Kauj Ruam 14: Txuas Cov Hluav Taws Xob rau DC Motors

Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors
Txuas Cov Hluav Taws Xob rau DC Motors

-Ua ntej tshaj, khiav M1 cov xov hlau los ntawm lub tshuab hluav taws xob mus rau qhov muag DC cov dav hlau ntawm txoj siv thauj khoom (Tseem ceeb heev)

Qhov thib ob, khiav cov xov hlau los ntawm M4 ntawm lub cav tsheb mus rau DC lub tshuab hluav taws xob uas tau teeb tsa ntawm sab laug ntawm lub bot. (Qhov tseem ceeb heev uas M4 WIRES txuas rau LEFT MOUNTED MOTOR)

-Txhua, khiav M3 cov xov hlau mus rau lub tshuab teeb tsa kom raug (Qhov tseem ceeb heev uas M3 WIRES txuas rau lub RIGHT MOUNTED MOTOR)

-Thaum kawg, teeb lub mini breadboard nyob tom qab ntawm lub bot raws li qhia.

Kauj ruam 15: CODE !!

CODE !!!!
CODE !!!!
CODE !!!!
CODE !!!!
CODE !!!!
CODE !!!!

Txoj Cai tau muab rau ntawm qhov kuv txuas qhov no.

Nyem qhov no mus rub cov tsev qiv ntawv xav tau rau txoj haujlwm no

Mus rau Arduino program thiab ua raws cov duab saum toj no

Ua ntej tshaj, ntxiv cov tsev qiv ntawv zip uas koj rub tawm

Qhov thib ob, teeb tsa lub tsev qiv ntawv Adafruit V2

Thib peb, suav nrog cov tsev qiv ntawv

-Finally, txoj cai yuav tsum khiav yog tias koj tau ua raws cov theem mus txog qhov no.

Kauj Ruam 16: BLUETOOTH DAIM NTAWV THOV

BLUETOOTH DAIM NTAWV THOV
BLUETOOTH DAIM NTAWV THOV
BLUETOOTH DAIM NTAWV THOV
BLUETOOTH DAIM NTAWV THOV
BLUETOOTH DAIM NTAWV THOV
BLUETOOTH DAIM NTAWV THOV

-Ua ntej tshaj, txuas koj lub USB cable mus rau Arduino

-Qhov thib ob, Nyem upload nyob rau sab saum toj sab laug (Yog tias koj tau txais cov lus yuam kev, tshem lub motorshield tawm thiab upload nws)

Thib peb, mus rau Google Play Store ntawm koj lub smartphone thiab rub tawm lub app

-Tus plaub, qhib lub app thiab xyuas kom koj lub bluetooth txuas nrog thiab txuas rau HC-05 (thaum txuas, nws yuav nug koj txog tus lej ua ke, Pairing code yog: 1234).

-Fifth, ib zaug txuas nrog, mus rau RC tsheb demo thiab nyem 'EDIT'

-Sixth, luag khawm 'A' mus rau ntawm lub vaj huam sib luag.

-Seventh, Rov qab mus rau lub vijtsam tseem ceeb thiab nyem 'RUN'

Kauj Ruam 17: Kho Koj Tus Kheej ntawm Sab Nrauv

Koj ua tau !!!!!!! PAT koj tus kheej ntawm qhov rov qab thiab qhia koj cov phooj ywg !!!!

NCO TSEG: Ntawm qhov no qhov sib txawv ntawm DC lub zog suav, koj yuav tsum tau mus sim thiab yuam kev hloov cov xov hlau ntawm DC lub tshuab hluav taws xob kom tau txais kev xav tau ntawm lub tshuab.

Piv txwv li, yog tias kuv nias rau pem hauv ntej ntawm tus tswj hwm, thiab lub log tig rau hauv qhov kev coj rov qab, tsuas yog hloov tus poj niam kawg ntawm DC lub dav hlau.

Pom zoo: