Cov txheej txheem:

CPE 133 Tus Neeg Pov Tseg Pov Tseg: 14 Kauj Ruam
CPE 133 Tus Neeg Pov Tseg Pov Tseg: 14 Kauj Ruam

Video: CPE 133 Tus Neeg Pov Tseg Pov Tseg: 14 Kauj Ruam

Video: CPE 133 Tus Neeg Pov Tseg Pov Tseg: 14 Kauj Ruam
Video: 2021 고카프 캠핑🏕 박람회 일산 킨텍스 6월4일(금) ~ 6월6일(일)│구석구석 캠핑용품 가격보고 방문하세요│안방에서 보는 캠핑박람회│제드│위오│캠핑퍼스트│크로리치│블랙몬스터 2024, Hlis ntuj nqeg
Anonim
CPE 133 Lub Khib Nyiab Tsawg
CPE 133 Lub Khib Nyiab Tsawg

Rau peb CPE 133 chav kawm ntawm Cal Poly peb tau hais kom tsim VHDL/Basys 3 txoj haujlwm uas yuav pab ib puag ncig thiab yooj yim txaus uas peb tuaj yeem siv nws nrog peb qhov kev paub tshiab ntawm kev tsim digital. Lub tswv yim tom qab peb txoj haujlwm uas, feem ntau, tib neeg tsis xav txog qhov lawv pov lawv cov thoob khib nyiab. Peb txiav txim siab tsim lub tshuab uas yuav yuam kom tib neeg tso kev xav mus rau qhov chaw lawv tso lawv cov thoob khib nyiab. Peb tus neeg nqa cov thoob khib nyiab nqa cov neeg siv khoom siv los ntawm peb tus lej, txhua tus sawv cev xws li cov thoob khib nyiab, rov ua dua tshiab lossis ua zaub mov noj. Thaum tus neeg siv tau xaiv lawv hom pov tseg (s) lawv xav muab pov tseg ntawm lawv nias lub pob. Lub pob no yuav ua rau lub hau ntim sib luag qhib. Lub tshuab tseem siv cov zaub ntawm Basys 3 los qhia yog tias ib qho ntawm lub hau tau qhib tam sim no. Thaum lub pob raug tso tawm lub hau yuav rov kaw dua kom lub tshuab yuav npaj tau rau cov neeg siv tom ntej.

Kauj ruam 1: Cov ntaub ntawv

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

Cov ntaub ntawv xav tau rau txoj haujlwm no yog:

Basis 3 pawg

Khoos phis tawj nrog Vivado teeb tsa

3 x servo*

3 ko taw tooj liab hlau

Hlau Cutter/Stripper

Soldering hlau thiab solder

*vim tias servos kim thiab peb yog cov tub ntxhais kawm qib siab peb tau hloov 68 ohm resistor thiab LED rau txhua qhov kev pabcuam raws li tus qauv (cov cai ua haujlwm ib yam nkaus)

Kauj ruam 2: Pib Coding

Pib Coding
Pib Coding
Pib Coding
Pib Coding
Pib Coding
Pib Coding

Muaj ntau txoj cai los sau rau txoj haujlwm no. Peb yuav siv tus lej VHDL sau hauv Vivado. Txhawm rau pib peb yuav xav tsim txoj haujlwm tshiab. Ua ntej koj yuav sau npe qhov project thiab qhia meej txog hom haujlwm. Nco ntsoov xaiv tib qhov chaw raws li daim duab. Thaum koj tau mus rau qhov chaw tshuaj ntsuam koj yuav xav ntxiv rau rau qhov chaw hu ua "saum", "flip_flop", "ntu", "servo_top", "servo_sig" thiab "clk_div". Nco ntsoov xaiv VHDL rau cov lus ntawm txhua cov ntaub ntawv, tsis yog Verilog. Ntawm qhov vijtsam txwv koj yuav tsum tsim ib daim ntawv rau tus lej ua haujlwm. Lub npe ntawm cov ntawv no tsis tseem ceeb. Tom qab ntawd koj yuav raug hais kom xaiv lub rooj tsav xwm uas koj yuav siv. Nco ntsoov tias koj xaiv qhov raug. Siv cov duab rau xaiv kom raug. Kauj ruam kawg yuav nug koj kom qhia meej cov tswv yim thiab cov txiaj ntsig ntawm txhua qhov ntaub ntawv. Cov kauj ruam no tuaj yeem cim tom qab yog li nyem tom ntej.

Kauj Ruam 3: Cov Ntaub Ntawv Txwv

Cov ntaub ntawv txwv
Cov ntaub ntawv txwv
Cov ntaub ntawv txwv
Cov ntaub ntawv txwv

Hauv qib no peb yuav sau cov ntaub ntawv txwv. Qhov no qhia Vivado cov pins twg yuav xa/tau txais cov cim qhia los ntawm kev siv hluav taws xob. Peb yuav xav tau lub moos, peb qhov hloov pauv, xya ntu tso saib (xya cathodes thiab plaub qhov anodes), lub pob thiab peb qhov tso tawm PMOD pins uas servo/LED yuav siv. Siv cov duab rau yuav ua li cas tus lej yuav tsum zoo li.

Kauj Ruam 4: Flip Flop File

Flip Flop Cov Ntaub Ntawv
Flip Flop Cov Ntaub Ntawv

Cov ntaub ntawv tom ntej peb yuav sau yog flip_flip cov ntaub ntawv. Qhov no yuav yog VHDL kev siv D flip flop. Hauv lwm lo lus nws tsuas yog dhau nws cov tswv yim rau qhov tso tawm ntawm qhov nce ntawm lub moos teeb liab thiab thaum lub pob nyem. Nws yuav siv sijhawm, D thiab khawm ua lub tswv yim thiab yuav tso tawm Q. siv cov duab rau tus lej. Lub hom phiaj ntawm cov ntaub ntawv no yog tso cai rau lub thoob qhib tsuas yog thaum lub pob raug nias ntau dua li qhib ncaj qha txhua lub sijhawm hloov pauv thiab tsuas yog kaw thaum qhov hloov pauv rov qab.

Kauj Ruam 5: Segments File

Segments Cov Ntaub Ntawv
Segments Cov Ntaub Ntawv

Cov ntaub ntawv tom ntej yuav tsum tau sau yog ntu ntawv. Qhov no yuav siv lub pob raws li kev nkag thiab tso tawm qhov tseem ceeb rau xya cathodes thiab plaub qhov anodes ntawm Basys 3's xya ntu ntu. Cov ntaub ntawv no ua rau xya ntu ntu qhia pom "C" thaum lub thoob ntim kaw thiab "O" thaum lub thoob qhib. Rau txoj cai saib daim duab txuas nrog.

Kauj Ruam 6: Clock Divider File

Clock Divider File
Clock Divider File

Servos ua haujlwm los ntawm kev siv PWM teeb liab nrog zaus ntawm 64k Hz thaum lub moos ua rau hauv Basys 3 ua haujlwm ntawm 50M Hz. Cov ntaub ntawv faib lub moos yuav hloov pauv lub moos tsis raug rau tus phooj ywg zaus rau servo. Cov ntaub ntawv yuav siv lub moos thiab teeb tsa lub cim teeb tsa ua lub tswv yim thiab yuav tso tawm lub moos tshiab. Saib daim duab txuas rau tus lej.

Kauj Ruam 7: Cov ntaub ntawv teeb tsa Servo

Servo Cov Ntaub Ntawv Teeb Meem
Servo Cov Ntaub Ntawv Teeb Meem

Cov ntaub ntawv teeb tsa servo yuav siv lub moos nkag, rov pib nkag thiab xav tau txoj haujlwm nkag. Nws yuav tso tawm PWM teeb liab uas yuav tsav lub servo mus rau txoj haujlwm xav tau. Cov ntaub ntawv no siv lub moos teeb liab tsim hauv cov ntaub ntawv kawg los tsim lub PWM teeb liab rau cov servo nrog kev ua haujlwm sib txawv raws li txoj haujlwm xav tau. Qhov no tso cai rau peb tig cov servos uas tswj lub hau ntawm lub thoob khib nyiab. Saib daim duab txuas nrog rau txoj cai.

Kauj Ruam 8: Servo Cov Ntaub Ntawv Sab Saum Toj

Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus

Lub hom phiaj ntawm cov ntaub ntawv no yog txhawm rau sau ob daim ntawv kawg rau hauv kev ua haujlwm servo tsav tsheb. Nws yuav siv sijhawm ib teev, rov pib dua thiab ua haujlwm raws li kev tawm tswv yim thiab yuav tso tawm servo PWM teeb liab. Nws yuav siv ob lub moos faib thiab cov ntaub ntawv teeb tsa servo ua cov khoom siv thiab yuav suav nrog lub moos teeb liab sab hauv kom dhau lub sijhawm hloov pauv los ntawm lub moos faib mus rau cov ntaub ntawv teeb tsa servo. Saib cov duab ntawm

Kauj ruam 9: Cov ntaub ntawv saum toj kawg nkaus

Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus
Cov ntaub ntawv saum toj kawg nkaus

Nov yog cov ntaub ntawv tseem ceeb tshaj plaws ntawm txoj haujlwm vim nws qhwv txhua yam peb tau tsim ua ke. Nws yuav siv lub pob, peb lub hloov pauv thiab lub moos raws li kev nkag. Nws yuav muab xya lub cathodes, plaub qhov anodes thiab peb qhov servo/LED teeb liab raws li kev tso tawm. Nws yuav siv cov flip flop, ntu thiab servo_top cov ntaub ntawv ua cov khoom siv thiab yuav muaj qhov hloov pauv sab hauv thiab sab hauv servo teeb liab.

Kauj Ruam 10: Xeem hauv Vivado

Khiav Synthesis, siv thiab sau bitsream hauv Vivado. Yog tias koj ntsib cov lus yuam kev pom qhov chaw yuam kev thiab tom qab ntawd sib piv rau cov cai muab. Ua haujlwm los ntawm ib qho yuam kev kom txog thaum tag nrho cov haujlwm no ua tiav.

Kauj Ruam 11: Tsim Kho Vajtse Intro

Hauv cov kauj ruam no koj yuav tsim lub khoos phis tawj LED uas peb siv hauv peb tsab ntawv. Yog tias siv servos txoj haujlwm yuav tsum npaj kom mus ntev li ntev tau siv cov pins raug. Yog tias siv LEDs ua raws cov theem hauv qab no.

Kauj ruam 12: Npaj

Txiav cov hlau mus rau rau hauv txawm tias daim. Seem qhov xaus ntawm txhua daim hlau kom txaus kom tuaj yeem siv tau. Cais cov LEDs, cov tiv thaiv thiab cov xov hlau rau hauv peb pawg. Ua kom sov cov hlau txuas.

Kauj Ruam 13: Soldering

Soldering
Soldering
Soldering
Soldering

Solder txhua ntawm 68 ohm resistors rau sab tsis zoo ntawm lawv cov coj LED. Siv lub xaim txuas mus rau sab zoo ntawm LED thiab lwm lub xaim mus rau sab ntawm tus tiv thaiv tsis tau txuas rau lub coj. Koj yuav tsum muaj peb qho ntawm qhov tsis sib xws ntawm LED duab saum toj no.

Kauj ruam 14: Qhov kawg

Thaum kawg
Thaum kawg

Ntxig txhua lub xov hlau zoo rau hauv tus lej PMOD tus lej thiab txhua qhov tsis zoo rau hauv av PMOD tus pin. Xaiv tau ntxiv cov thawv ntawv los sawv cev rau cov thoob khib nyiab thiab zais koj qhov muag tsis zoo. Thaum cov xov hlau tau raug ntsaws rau hauv thiab cov cai raug xa mus rau lub rooj tsavxwm yam tsis raug lub tshuab yuav tsum ua haujlwm raws li tau npaj tseg. Yog tias muaj dab tsi tsis raug rov qab mus rau cov kauj ruam dhau los txhawm rau daws teeb meem. Muaj kev lom zem nrog koj tus tshiab "lub thoob khib nyiab".

Pom zoo: