Cov txheej txheem:

Pimp Koj Lub Teeb LED: 4 Kauj Ruam
Pimp Koj Lub Teeb LED: 4 Kauj Ruam

Video: Pimp Koj Lub Teeb LED: 4 Kauj Ruam

Video: Pimp Koj Lub Teeb LED: 4 Kauj Ruam
Video: Нормальный перевод 2024, Hlis ntuj nqeg
Anonim
Pimp Koj Lub Teeb LED
Pimp Koj Lub Teeb LED

Thaum yuav khoom noj khoom haus ntawm Lidl lub tsev lag luam hauv tebchaws Netherlands, kuv tus poj niam tau khiav mus rau qhov pheej yig heev (2.99 Euro) LED Teeb nrog cov fibers nyob saum toj. Hauv Lub Teeb LED no muaj peb lub LED, ib lub Liab, ib qho ntsuab thiab ib lub Xiav uas tsim qhov yooj yim tab sis muaj txiaj ntsig zoo. Daim duab qhia pom tias LED Teeb zoo li cas. Lub teeb LED siv peb lub roj teeb AA ua lub zog.

LED Teeb tau muaj qhov tsis zoo. Hauv qab ntawm LED Teeb muaj qhov hloov pauv yog li qhib thiab tawm txhais tau tias koj yuav tsum nqa lub Teeb LED, nrog rau txoj hauv kev los tsoo LED Teeb. Qhov tsis zoo no tau pib ua txoj haujlwm no 'Pimp koj lub Teeb LED'.

Lub tswv yim yog ua kom Lub Teeb Teeb LED tuaj yeem tswj tau kom koj tsis tas yuav nqa nws - tsuas yog thaum hloov lub roj teeb - txhua lub sijhawm koj xav hloov nws rau lossis tawm. Thiab thaum kuv tab tom ua haujlwm rau nws, kuv kuj tau hloov peb tus kheej Liab, Ntsuab thiab Xiav LED los ntawm peb lub RGB LEDs yog li kuv tuaj yeem tsim xim ntau dua thiab ntau tus qauv.

Yog li tom qab ua tiav txoj haujlwm no Pimped LED Teeb tau xaus nrog cov yam ntxwv hauv qab no uas txhua tus tuaj yeem tswj tau ntawm Philips RC5/RC6 chaw taws teeb tswj:

  • Standby = On/Standby
  • Mute = Factory Defaults
  • Volume Up = Brightness Up
  • Volume Down = Brightness Down
  • Program Up = Ceev
  • Program Down = Speed Down
  • Tus lej 0 = LEDs nyob rau hauv cov xim dawb
  • Zauv 1 = Thawj LED Teeb qauv, hloov pauv ntawm Liab mus Xiav rau Ntsuab
  • Tus lej 2 = Tsiv tus qauv xim dawb
  • Tus lej 3 = Tsiv tus qauv xim RGB
  • Tus lej 4 = Zaj sawv xim xim
  • Tus lej 5 = Cov xim tsis zoo ploj
  • Tus lej 6 = Tsiv cov xim sib txawv
  • Zauv 7 = Fading RGB xim qauv
  • Tus lej 8 = Ntsuas tus qauv

Kuv yog tus kiv cua loj ntawm PIC microcontroller thiab nyiam kom muaj kev tswj hwm txhua yam uas kuv tau tsim yog li kuv tsis tau siv ib lub tsev qiv ntawv tab sis tsim txhua feem ntawm software kuv tus kheej. Qhov no tseem xav tau vim tias tswj txhua lub LEDs ntawm Pulse Width Modulation (PWM) n software tau siv sijhawm ntev yog li cov cai tau ua kom nrawm rau qee qhov. Arduino cov kiv cua tuaj yeem siv tau txhua lub tsev qiv ntawv uas muaj tab sis kuv xav tias koj yuav tsum sau qee yam koj tus kheej los tswj 9 (3 zaug RGB) LEDs ntawm PWM.

Cov khoom siv hluav taws xob tau yooj yim heev thiab tsis xav tau ntau yam khoom siv yog li nws tuaj yeem tsim txhua lub tsev qub ntawm LED Teeb.

Kauj Ruam 1: Kauj Ruam 1: Cov Khoom Siv Teeb

Koj yuav tsum muaj cov hauv qab no txhawm rau txhawm rau lub teeb LED:

  • 1 * LED Teeb
  • 3 * RGB LEDs
  • 1 * PIC microcontroller 16F1825 + 14 tus pin IC qhov (socket)
  • 1 * TSOP4836 IR tus txais
  • 2 * 100nF ceramic capacitor
  • 1 * 33k resistor
  • 3 * 150 Ohm resistor
  • 6 * 120 Ohm resistor
  • 3 * AA (roj teeb rov tau) roj teeb
  • 1 * Daim me me ntawm daim txiag ntoo

Kauj Ruam 2: Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob

Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 2: Tsim Cov Khoom Siv Hluav Taws Xob

Saib daim duab qhia chaw thiab cov duab.

Cov khoom siv hluav taws xob muaj ob daim ntawv me me, ib qho rau RGB LEDs tshiab thiab ib qho rau lub microcontroller. Pawg thawj coj tshiab nrog RGB LEDs hloov pauv lub rooj tsav xwm yav dhau los nrog Liab, Ntsuab thiab Xiav LED. Hauv daim duab koj pom ob qho tib si tshiab RGB LED breadboard thiab thawj LED board.

Lub rooj tswj hwm lub microcontroller tau teeb tsa nyob rau sab ntawm sab hauv ntawm LED Teeb vaj tsev thiab txuas nrog rau RGB LED pawg thawj coj ntawm cov xov hlau.

Txij li thaum kuv kuj tau teeb tsa PIC tus tswj hwm thaum kuv tab tom txhim kho LED Teeb muaj lub taub hau ntawm lub rooj tsavxwm tab sis qhov ntawd tsis xav tau rau kev ua haujlwm ib txwm muaj.

Thaum kawg IR tau txais yog lo rau sab saum toj ntawm RGB LED board. Kuv tsis xav ua lub qhov nyob hauv vaj tse ntawm LED Teeb thiab hauv txoj kev no nws tseem ua haujlwm tau zoo. Tau kawg koj yuav tsum nyob ze dua ntawm LED Teeb yog tias koj xav tswj nws.

Kauj Ruam 3: Kauj Ruam 3: Software

Raws li tau hais dhau los, software tau sau rau PIC16F1825. Nws tau sau hauv JAL. Lub software ua cov haujlwm tseem ceeb hauv qab no:

  • Tswj kev ci ci ntawm LEDs siv Pulse Width Modulation. Txog qhov no nws siv ob lub sijhawm, ib qho rau tsim qhov hloov pauv tshiab thiab ib lub sijhawm rau tsim lub sijhawm ntawm cov mem tes, lub sijhawm ntawm LED. Qhov hloov tshiab yog kwv yees li 70 Hz uas txaus kom tsis txhob hnov qab los ntawm tib neeg qhov muag. Cov LEDs tuaj yeem dim hauv 255 qib. Qhov no txhais tau tias lub sijhawm teem rau tswj lub sijhawm ua haujlwm ntawm 255 zaus 70 Hz yog txog 18 kHz. Vim tias qhov no kuj muaj ntau zaus ib feem ntawm cov cai tau ua kom nrawm dua.
  • Txiav txim siab cov lus tswj chaw taws teeb. Txog qhov no nws siv lub sijhawm ntes uas ntes lub sijhawm ntawm cov khoom ntawm txhua qhov kev hloov pauv. Philips Cov Chaw Tswj Chaw Taws Teeb siv bi-phase coding thiab tib txoj hauv kev los txiav txim cov lus yam tsis tau txhais lus tsis raug thaum raug cuam tshuam yog los ntawm kev ntsuas ob lub sijhawm siab thiab qis.
  • Kev ua haujlwm tsis raug los tsim qee qhov qauv tsis sib xws.
  • Tsim cov qauv sib txawv.
  • Software khaws thiab khaws cov ntaub ntawv los ntawm EEPROM.
  • Hom pw tsaug zog kom nres tus txheej txheem thaum lub teeb LED nyob hauv hom tos.
  • Qhov kawg tab sis tsis tsawg kawg ua ke txhua qhov ua ke kom nws ua haujlwm.

Tus tswj PIC khiav ntawm lub moos sab hauv nrog zaus ntawm 32 MHz. Cov ntaub ntawv Intel Hex tau txuas rau kev teeb tsa PIC tus tswj hwm.

Kauj Ruam 4: Kauj Ruam 4: Ua Haujlwm Teeb LED

Thaum koj qhib lub Teeb LED thawj zaug, yog siv tus qauv qub, uas sib npaug nias tus lej 1 ntawm Chaw Taws Teeb. Txhua txoj haujlwm uas tau hais ua ntej tuaj yeem siv tau. Hom kev ua haujlwm no tseem raug xaiv yog tias koj nias lub pob Mute vim qhov no rov teeb lub Teeb LED rau nws qhov qub.

Yog tias LED Teeb tau muab tso rau hauv kev tos, nws txuas ntxiv qhov uas nws tau tom qab nws tau rov qhib dua. Lub Teeb LED ib txwm nco txog hom kev ua haujlwm kawg ua ntej nkag mus rau hauv tos txij li qhov ntawd tau khaws cia hauv EEPROM sab hauv ntawm PIC Controller yog li txawm tias tom qab hloov roj teeb nws txuas ntxiv nrog hom kev xaiv zaum kawg.

Cov vis dis aus qhia txog kev ua haujlwm ntawm thawj LED Teeb ntawm sab laug thiab kev ua haujlwm ntawm Pimped LED Teeb ntawm sab xis. Hauv cov vis dis aus qee hom kev ua haujlwm tau qhia tab sis tsis yog txhua qhov. Cov nyhuv pom tau zoo dua hauv qhov tsaus ntuj thiab ntsais ntawm LEDs tsis pom nrog tib neeg qhov muag.

Tau kawg koj tuaj yeem siv lwm Lub Teeb LED rau koj txoj haujlwm thiab kuv vam tias txoj haujlwm no tau tshoov siab koj los tsim ib qho ntawm koj tus kheej.

Pom zoo: