Cov txheej txheem:

GuGaplexed Valentine LED Lub Plawv: 3 Kauj Ruam
GuGaplexed Valentine LED Lub Plawv: 3 Kauj Ruam

Video: GuGaplexed Valentine LED Lub Plawv: 3 Kauj Ruam

Video: GuGaplexed Valentine LED Lub Plawv: 3 Kauj Ruam
Video: TSIS MUAJ LEEJ TWG PAUB HNUB YEXUS LOS || Xf Tshaj Sawm Huj || Lus Qhuab Qhia 2020 2024, Hlis ntuj nqeg
Anonim
GuGaplexed Valentine LED Lub Plawv
GuGaplexed Valentine LED Lub Plawv

GuGaplexing yog ib qho tshiab LED tso saib cov txheej txheem sib txuam. Piv rau Charlieplexing, GuGaplexing tso cai rau koj los tswj ob zaug ntau LEDs, nrog tsuas yog ob peb yam ntxiv. GuGaplexed Valentine LED Heart project muaj 40 LEDs tau teeb tsa hauv "Arrow Piercing a Heart" kev npaj siv tsuas yog 5 tus pin ntawm microcontroller. AVR ATTiny13V Microcontroller. Txhua qhov 6 I/O pins ntawm Tiny13 tau siv hauv txoj haujlwm no; 5 rau kev tswj 40 LEDs thiab tus lej thib 6 txhawm rau nyeem qhov hloov pauv.

Kauj ruam 1: Daim duab Circuit Court

Lub Circuit Court muaj Tiny13, 40 liab LEDs ntawm 3-mm loj, ib pawg BC547 (NPN) thiab BC557 (PNP) transistors, ob peb resistors thiab nias lub pob nyem. Lub Tiny13 tau teeb tsa hauv 8-pin qhov (socket). Schematic hauv pdf thiab hom dav dawb hau muaj nyob ntawm no.

Lub ntsiab lus tseem ceeb kom nco ntsoov yog qhov Circuit Court siv 5 transistor khub siv NPN thiab PNP transistors thiab cov transistors no yuav tsum tau sib phim rau lawv qhov txiaj ntsig beta, uas ua tiav tau yooj yim nrog tsim nyog multimeter nrog transistor kos ua haujlwm. Hauv cov lus luv luv, txoj kev GuGaplexing ua haujlwm yog raws li hauv qab no: Cov microcontroller pins ua haujlwm hauv ib ntawm peb lub xeev ua tau: 0, 1 lossis Z (lub xeev muaj kev tiv thaiv siab). Cov txheej txheem Charlieplexing ua rau siv qhov tseeb no txhawm rau nce cov naj npawb ntawm LEDs uas tuaj yeem tswj tau piv rau cov txheej txheem sib txuam ua ke, uas tsis siv lub xeev thib peb (piv txwv li lub xeev siab tsis txaus 'Z') ntawm tus pin. Yog li Charlieplexing tswj hwm N*(N-1) LEDs siv N digital pins. Tam sim no nrog 2 tus pin, muaj yim qhov sib xyaw ua ke: 00, 01, 0Z, 10, 11, 1Z, Z0, Z1 thiab ZZ. Yog li hauv txoj ntsiab cai nrog kev txiav txim siab tsim nyog ntawm cov xeev no, nws yuav tsum muaj peev xwm txuas tau 8 LEDs siv ob tus pin nkaus xwb, qhov tseeb ntawm tus nqi ntawm cov khoom siv sab nraud ntxiv rau txoj haujlwm txiav txim siab. GuGaplexing ua qhov kev txiav txim siab thiab siv ob khub ntawm transistors (NPN thiab PNP) ib tus pin los txiav txim plaub ntawm ntawm yim qhov ua tau ua ke. Qhov ntawd yog li cas, rau N pins, GuGaplexing ua tiav 2*N*(N-1), uas yog ob zaug ntau dua li Charlieplexing. Cov ncauj lus kom ntxaws ntxiv ntawm GuGaplexing LED tso saib cov txheej txheem sib txuam yuav muaj raws li Kev Tsim Qauv Tswv Yim ntawm EDN (www.edn.com) yav tom ntej.

Kauj Ruam 2: GuGaplexed LED Lub Plawv hauv Kev Ua

Nov yog youtube video ntawm qhov haujlwm ua.

Kauj ruam 3: Source Code

Nov yog qhov chaws ntawm txoj haujlwm no sau hauv C thiab suav sau siv winavr gcc. Qhov chaws, Makefile thiab cov ntaub ntawv hex tau txuas nrog.

Pom zoo: