Cov txheej txheem:

Tsab ntawv tsa suab Teeb: 5 Kauj Ruam
Tsab ntawv tsa suab Teeb: 5 Kauj Ruam

Video: Tsab ntawv tsa suab Teeb: 5 Kauj Ruam

Video: Tsab ntawv tsa suab Teeb: 5 Kauj Ruam
Video: Xyw By Nquab Tsab New Song 2022-2023 2024, Hlis ntuj nqeg
Anonim
Tsab ntawv tsa suab teeb
Tsab ntawv tsa suab teeb

Phau ntawv qhia no yuav qhia koj yuav siv FPGA li cas los tsim lub suab txav txav lub teeb ntawm cov xim sib txawv kom ntev li ntev tau muaj cov lus tsa suab. Cov qib liab, xiav, thiab ntsuab yog txhua qhov kev tswj los ntawm latching tus nqi rau txhua tus neeg xim. Txoj haujlwm no tau tsim los ntawm Timmy Nguyen thiab Ryan Luke rau CPE 133 chav kawm kawg qhov haujlwm.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov
Qhov
Qhov
Qhov
Qhov

Sau cov ntu hauv qab no:

-1 Basys 3 FPGA board

-1 Daim ntawv qhia zaub mov

-1 RGB analog LED

-3 npn/n-channel MOSFETs

-1 220 ohm resistor

-1 PIR tsab ntawv tsa suab sensor

-ntau lub jumper cables

Kauj Ruam 2: Ua Haujlwm FPGA Basys 3

Program FPGA Basys 3
Program FPGA Basys 3

Txog qhov haujlwm no, peb siv Pulse Width Modulation (PWM) los tswj qhov ci thiab xim ntawm RGB LED, uas qhib thiab tawm raws qhov tso tawm ntawm lub suab ntsuas PIR sensor. Yog tias lub ntsuas pom pom lub zog txav, LED yuav qhib rau li 4 vib nas this, uas yog lub luag haujlwm ntawm lub ntsuas.

Txhua cov ntaub ntawv tsim nyog rau txoj haujlwm no suav nrog hauv ntu no.

Cov Qauv:

Clock divider: Basys 3's onboard moos muaj zaus 100 MHz, yog li peb xav coj qhov zaus ntawd mus rau 10 KHz kom tswj tau zoo hauv lub txee.

Txee: Lub txee siv qhov txo 10 KHz raws li cov tswv yim thiab suav rau 255 thaum nws tau qhib los ntawm lub suab ntsuas.

3 D Flip Flops: Tus neeg siv yuav ntxeev ntau yam ntawm 8 qhov hloov pauv ntawm lub rooj tsavxwm thiab cov flip flops, thaum qhib los ntawm kev nias ntawm lub flip flop lub khawm pab tau, yuav muab tus nqi ntawm qhov hloov pauv mus rau hauv tus sib piv. Tus nqi ntsuas no yuav txiav txim siab lub voj voog ua haujlwm, lossis qhov dav ntawm lub plawv, ntawm cov teeb liab tso tawm mus rau LED.

3 Cov Sib Piv: 8 qhov tso tawm los ntawm lub txee mus rau txhua tus sib piv sib cais thiab sib piv nrog 8 qhov tso tawm ntawm lub flip flop. Yog tias lub txee tso tawm tsawg dua tus nqi ntsuas los ntawm D Flip Flop, tus sib piv yuav tso tawm ib tus me ntsis Tus nqi siab; yog tias lub txee tso tawm ntau dua li tus nqi kaw, tus sib piv yuav tso tawm ib qho me ntsis Tus nqi qis. Tus sib piv tom qab ntawd tso nws cov txiaj ntsig rau hauv lub cim txiav txim siab.

3 Sensor Decoders: Lub cim txiav txim siab yuav tso tawm tus nqi ntawm tus sib piv yog tias muaj cov lus tsa suab pom los ntawm lub ntsuas (1) lossis qis qis (0) yog tias tsis muaj qhov txav. Cov txiaj ntsig no mus ncaj qha rau RGB LED.

Tom qab rub tawm VHD cov ntaub ntawv:

Thaum cov ntaub ntawv rub tawm thiab muab tso rau hauv ib qhov haujlwm, sib sau ua ke, siv, thiab sau cov ntawv me me rau txoj haujlwm. Tom qab ntawd, txuas lub hauv paus 3 pawg thawj coj thiab teeb tsa lub cuab yeej.

Kauj Ruam 3: Tsim Circuit Court ntawm Breadboard

Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard
Tsim Circuit Court ntawm Breadboard

Koj tuaj yeem ua raws schematic thiab cov duab tsim lub Circuit Court. Cov av ib txwm muaj nyob thoob plaws hauv Circuit Court, thiab tuaj yeem ntxiv cov tshuaj tiv thaiv ntxiv hauv kab nrog mosfets kom dim ntxiv qhov liab, xiav, lossis ntsuab cim.

Kauj Ruam 4: Txuas Cov Cheeb Tsam rau Basys 3 Board

Txuas Cov Cheeb Tsam rau Basys 3 Board
Txuas Cov Cheeb Tsam rau Basys 3 Board
Txuas Cov Cheeb Tsam rau Basys 3 Board
Txuas Cov Cheeb Tsam rau Basys 3 Board
Txuas Cov Cheeb Tsam rau Basys 3 Board
Txuas Cov Cheeb Tsam rau Basys 3 Board

Koj tuaj yeem siv cov txheej txheem thiab cov ntawv ua pov thawj hauv cov duab los txuas koj lub Rooj Sib Tham Basys 3 mus rau lub khob cij.

Kauj Ruam 5: Yuav Siv Li Cas

Koj tuaj yeem tawm tswv yim tus lej binary sawv cev los ntawm cov hloov pauv SW0-SW7. Thaum koj muaj tus nqi no, koj tuaj yeem nias lub pob BTN_L (liab), BTN_C (xiav), thiab BTN_R (ntsuab) txhawm rau txhawm rau tus nqi ntawd rau xim xaiv los ntawm lub pob. Lub caij no, lub ntsuas suab yuav ua rau lub teeb pom kev zoo nrog txhua qhov txav mus.

Pom zoo: