Cov txheej txheem:

LED Binary Moos: 6 Cov Kauj Ruam (nrog Duab)
LED Binary Moos: 6 Cov Kauj Ruam (nrog Duab)

Video: LED Binary Moos: 6 Cov Kauj Ruam (nrog Duab)

Video: LED Binary Moos: 6 Cov Kauj Ruam (nrog Duab)
Video: Hunter Education with Kong Pheng Yang 3-25-2019 2024, Kaum ib hlis
Anonim
LED Binary Moos
LED Binary Moos

Nov yog qhov kev kho dua zaum ob ntawm kuv PIC raws li LED binary moos. Thawj qhov ntawv yog thawj PIC qhov kuv tau sim, nws tau siv PIC16F84A los ua ob lub sijhawm khaws thiab tswj cov zaub matrix, hmoov tsis nws tsis khaws sijhawm zoo thiab tau txais txog li ib feeb txhua lub lim tiam. PIC16F628A khiav ntawm 4MHz los tswj cov zaub, nws tseem siv DS1307 lub sijhawm tiag tiag nti los ua lub sijhawm khaws cia. Txhua thib ob DS1307 xa cov mem tes mus rau PIC nti, PIC tom qab ntawv nyeem lub sijhawm sab hauv los ntawm DS1307 hla I2C tsheb npav thiab tom qab ntawd qhia lub sijhawm nyob rau hauv binary ntawm LED zaub. Kab hauv qab ntawm LEDs tso tawm vib nas this, nruab nrab kab qhia cov feeb thiab kab sab saum toj yog rau teev. Lub sijhawm tso tawm hauv daim duab yog 01100: 010011: 011011 lossis hauv zauv 12:19:27. Lub sijhawm nyob hauv 24 teev hom ntawv yog li mus txog 10111: 111011: 111011 lossis 23: 59: 59 Cov PCB tuaj yeem ua ob tog, lossis raws li kuv tau ua ntawm no ib leeg ib sab nrog 7 xaim txuas txuas hauv qhov chaw tsis yog txheej txheej tooj liab sab saum toj. Nws muaj tus tswj hwm 5 volt yog li tuaj yeem siv tau los ntawm ib qho 9 - 15 volt DC fais fab mov.

Kauj Ruam 1: Qhov Chaw / Cov Cuab Yeej

Raws li cov txheej txheem PCB yooj yim thiab siv cov khoom siv koj yuav xav tau cov khoom siv hauv qab no: 1x PIC16F628A & programmer1x DS1307 lub sijhawm tiag tiag chip1x 32.768kHz saib crystal3x BC548 (lossis zoo sib xws) transistor2x PTM pushbuttons1x 78L05 regulator2x 220uF electrolytic capacitors17x Surface mount LEDs1x DC lub qhov hluav taws xob 8 x 100 ohm nto mount resistors1x 2k deg mount resistor12x xoom ohm txuas (Los yog 11 xoom ohm txuas thiab CR2016 cov roj teeb thaub qab) 1x 100nF nto mount capacitor50cm ib leeg tso tseg tswb xaim1x 9v - 15v DC fais fab mov nrog DC nkaus

Kauj Ruam 2: Ua PCBs & Program PIC

Ua PCBs & Program PIC
Ua PCBs & Program PIC
Ua PCBs & Program PIC
Ua PCBs & Program PIC
Ua PCBs & Program PIC
Ua PCBs & Program PIC
Ua PCBs & Program PIC
Ua PCBs & Program PIC

Thawj kauj ruam yog ua kom PCBs, txheej txheej PCB thiab kos duab rau lub moos tseem ceeb thiab lub rooj tsav xwm saib pom tau muab ua hauv Eagle hom. Lub moos PCB yog ob tog, tab sis txheej txheej saum toj kawg nkaus tsuas yog 7 qhov txuas, qhov no txhais tau tias PCB kuj tseem tuaj yeem ua ua ib txheej nrog 7 txoj kab txuas sib txuas, qhov no yog qhov kuv tau xaiv los ua raws li kuv tsis tuaj yeem ua ob zaug cov laug cam. Qhov PCB siv tshwj xeeb rau cov khoom siv saum npoo thaum lub sijhawm tseem ceeb PCB siv kev sib xyaw ntawm cov ntu saum toj thiab dhau los ntawm cov khoom sib xws. ICSP kev sib txuas ntawm lub rooj tsavxwm.

Kauj Ruam 3: Cov Txheej Txheem Hauv Qab

Cov Cuab Yeej Hauv Qab
Cov Cuab Yeej Hauv Qab

Solder lub 8 tus tiv thaiv, 1 lub tshuab hluav taws xob thiab xoom ohm txuas / thaub qab roj teeb raws li qhia rau sab hauv qab ntawm lub ntsiab PCB moos.

Kauj Ruam 4: Cov Cuab Yeej Sab saum toj

Cov Cuab Yeej Sab saum toj
Cov Cuab Yeej Sab saum toj

Txuas ntxiv tom ntej los ntawm cov khoom sib txuas kom ntseeg tau tias yuav tsum tau taw qhia rau 2 daim npav, 2 lub capacitors thiab tus tswj hwm kom raug.

Kauj Ruam 5: Cov Zaub Zaub

Cov Zaub Zaub
Cov Zaub Zaub

Rau cov zaub koj xav tau 17 nto mount LEDs, 6 100 ohm nto mount resistors, 11 xoom ohm txuas thiab 9 2cm ntev ntawm lub tswb xaim. Muab lawv tso rau PCB raws li daim duab hauv qab no, ua kom koj tau muab cov kab hluav taws xob LED tso rau hauv qhov kev qhia kom raug. Lub rooj tsav xwm pom ntawm no yog qhov hloov tshiab dua li siv nyob hauv cov duab hauv cov lus qhia no, nws muaj tsawg dua resistors yog li yooj yim dua thiab pheej yig dua kom ua. Kev saib xyuas yuav tsum tau ua thaum txhim kho xoom ohm txuas (resistors nrog xoom tsis kam) raws li muaj cov ciav hlau ntawm PCB khiav ntawm 2 cov kab laug sab, cov txuas yuav tsum tau muab tso rau kom tsis muaj cov hlau txuas mus rau PCB taug qab ntawm cov ntaub qhwv.

Kauj ruam 6: Ua tiav

Tiav
Tiav

Solder cov zaub PCB mus rau lub moos tseem ceeb PCB tom qab ntawd txhua yam uas yog sab laug yog txhawm rau txuas lub zog. PSU xav tau yam tsawg 9v DC thiab xav tau tsuas yog ntsuas ntawm kwv yees li 200mA lossis yog li, qhov nruab nrab txuas ntawm DC jack xav tau. zoo thiab sab nrauv yuav tsum yog 0v. Ua ntej lub zog txuas nrog lub moos yuav tsum tso tawm 22:03:00 thiab tam sim pib suav cov vib nas this. Tom qab ntawd txhua yam uas tshuav yog teeb tsa lub sijhawm, ib qho ntawm cov nyees khawm tau siv los teev cov feeb thiab lwm qhov teev cov sijhawm, sai li ob lub khawm tau nias nws teeb tsa lub vib nas this rau 0 thiab nce cov lus sib xws los ntawm 1.

Pom zoo: