Cov txheej txheem:

YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm Teeb LED): 8 Kauj Ruam
YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm Teeb LED): 8 Kauj Ruam

Video: YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm Teeb LED): 8 Kauj Ruam

Video: YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm Teeb LED): 8 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm LED)
YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm LED)
YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm LED)
YAFLC (Tseem Muaj Lwm Qhov Teeb Tswm LED)

Muaj ntau cov lus tshaj tawm ntawm Cov Lus Qhia txog yuav ua li cas thiaj ua rau taws tswm ciab LED. Nov yog kuv cov ntawv. Txoj haujlwm xav tau cov hauv qab no: 1. Tiny45 AVR Microcontroller (Tiny13 kuj yuav ua tau) 2. 1W sov dawb (lossis daj) LED3. Perspex cev 4. AA lossis AAA cov roj teeb loj- 4 (alkaline lossis NiMH) 5. PCB cov khoom lag luam (lossis lub hom phiaj dav dav veroboard) 6. Cov roj teeb tuav 7. 1/4W resistors 50 Ohm- 4 thiab 10K -1.8. On/Off hloov 9. Txuas xov hlau 10. daim ntoo rau lub hauv paus 11. Masking daim kab xevTools: 1. Cov hlau thiab cov laug2. Kub kua nplaum phom 3. AVR ISP Programmer 4. tus ntsia hlau, cov ntaub ntawv, lub tshuab drilling thiab cov khoom tsim nyog.

Kauj ruam 1: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court

Daim duab qhia chaw xav tau rau tswm ciab nyob ntawm no. Kuj pom yog lub rooj teeb tsa. Hauv kev teeb tsa pawg thawj coj, cov ciav hlau xiav tau ua haujlwm raws li cov xov hlau txuas. Kev ua tiav Circuit Court tau faib ua ob pawg, ib qho muaj cov tswj thiab muaj 1-W LED. Ob lub rooj tsavxwm tau teeb tsa hauv ob chav decker, ncig PCBs. Lub tswv yim yog kom muaj qhov dav me me rau lub voj voog. plaub 2-tus pin txuas tau siv los txuas lub rooj tswj hwm rau LED board. Qhov txuas thib tsib ntawm lub rooj tswj hwm yog rau lub zog siv.

Kauj Ruam 2: Ua PCBs

Ua cov PCBs
Ua cov PCBs

Kuv siv Modela Milling tshuab Modela Milling tshuab los zeb thiab txiav kuv cov laug cam. Koj tuaj yeem tau txais cov laug cam no tsim los ntawm kev lag luam PCB tuam txhab xws li PCB ExpressPCB Express lossis koj tuaj yeem ua rau lawv nyob hauv tsev raws li tau piav qhia ntawm no.

Kauj Ruam 3: Soldering PCBs

Soldering cov PCBs
Soldering cov PCBs
Soldering cov PCBs
Soldering cov PCBs
Soldering cov PCBs
Soldering cov PCBs
Soldering cov PCBs
Soldering cov PCBs

Kuv soldered tag nrho cov khoom raws li pom hauv cov duab. Los ntawm kev faib cov kab hluav taws xob ntawm ob lub rooj sib tham, ib qho rau tus tswj hwm thiab lwm tus rau LED tsis yog tsuas yog muaj txiaj ntsig hauv kev txo txoj kab uas hla ntawm pawg thawj coj saib tab sis tseem yuav xyuas kom meej tias thaum tswj lub rooj tsav xwm tau teeb tsa los ntawm ISP txuas (los ntawm kev txiav thawj qhov txuas ntawm pawg thawj coj saib LED) los ntawm lub rooj tswj hwm), LED tsis thauj cov ISP cov cim. Kuv muab tag nrho cov SMD cov khoom ua ntej, ua raws los ntawm cov xov hlau jumper thiab tom qab ntawd cov khoom seem.

Kauj Ruam 4: Npaj lub Rooj Tswjhwm Saib LED

Npaj lub Rooj Tswjhwm Saib LED
Npaj lub Rooj Tswjhwm Saib LED

Tom qab lub rooj tsavxwm LED tau muag lawm, Kuv tau siv cov kua nplaum kub los nchuav qee cov kua nplaum rau ntawm LED. Raws li cov kua nplaum kub pib txias, Kuv kos cov kua nplaum tawm raws li ib hom 'ntsaum'. Cov kua nplaum ua haujlwm rau ob lub hom phiaj: nws nthuav lub teeb thiab lub 'ntsaum' muab kev xav ntawm tswm ciab tiag.

Kauj Ruam 5: Program Tus Tswj

Cov cai rau txoj haujlwm yog me me heev. Cov lej suav nrog AVRGCC. Txoj cai tau teeb tsa rau hauv tus tswj hwm los ntawm ISP txuas ntawm tus tswj hwm PCB. /*Code rau qhov project tswm ciab flickering*//*Txuas 1 -W Daj/Sov Dawb LED rau*//*Pin 2 - PB3 LED Cathode*//*Pin 3 - PB4 LED Cathode*//*Pin 5 - PB0 LED Cathode*//*Pin 6 - PB1 LED Cathode*//*Pin 7 - PB2 LED Cathode*//*LED Anode rau Vcc/*Teeb max tam sim no ua 30 mA rau txhua LED*//*LFSR Source: https://en.wikipedia.org/wiki/Linear_feedback_shift_register*/#include#includemain(){unsigned ntev lfsr = 1; unsigned char temp; DDRB = 255; rau (; (-(lfsr & 1u) & 0xd0000001u); / * kais 32 31 29 1 */temp = (unsigned char) lfsr; DDRB = ~ temp; PORTB = temp; temp = (unsigned char) (lfsr >> 24); _ delay_loop_2 (temp << 7); }}

Kauj Ruam 6: Txhim Kho Cov Ntaub Ntawv

Kev Tsim Cov Ntaub Ntawv
Kev Tsim Cov Ntaub Ntawv
Kev Tsim Cov Ntaub Ntawv
Kev Tsim Cov Ntaub Ntawv
Kev Tsim Cov Ntaub Ntawv
Kev Tsim Cov Ntaub Ntawv

Ib txoj kab 6-inch ntev, 2.2-inch dav perspex raj tau xaiv los qhwv lub tswm ciab. Lub rooj ntoo tau ua los txhawm rau txhawm rau lub raj perspex. Tus tswj hwm PCB thiab LED PCB tau teeb tsa sab hauv lub raj rau lwm tus 'tuav' PCB uas tseem muaj qhov qhib/Tawm hloov.

Kauj Ruam 7: Tswmciab Pedestal

Candle Pedestal
Candle Pedestal
Candle Pedestal
Candle Pedestal

Lub tswm ciab ntoo ntawm tus ncej tau ua haujlwm. Ob lub roj teeb tuav, txhua tus nrog 2 x 1.2V Eneloop (:)) roj teeb tau teeb rau ntawm tus ncej thiab tuav ua ke nrog cov kua nplaum kub.

Kauj ruam 8: Qhib

Qhwv
Qhwv
Qhwv
Qhwv

Thaum kawg, lub raj perspex tau npog nrog daim kab xev daj kom zais sab hauv thiab tseem muab qhov ua kom pom kev ntawm cov tswm ciab ciab … tej zaum kuv yuav pleev xim nws tom qab.. Tab sis qhov no yog li cas nws sawv tam sim no. yuav ib yam …

Pom zoo: