Cov txheej txheem:

TV Rov Qab Teeb: 5 Kauj Ruam
TV Rov Qab Teeb: 5 Kauj Ruam

Video: TV Rov Qab Teeb: 5 Kauj Ruam

Video: TV Rov Qab Teeb: 5 Kauj Ruam
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Kaum ib hlis
Anonim
TV Back Light
TV Back Light

Hauv qhov haujlwm no kuv yuav qhia koj yuav ua li cas tswj lub teeb nraub qaum ntawm koj lub TV siv koj lub TV tej thaj chaw deb.

Khoom siv

Txoj haujlwm no yuav tsum muaj cov hauv qab no: -1. Arduino lossis Atmega 328p

2. 2 x 10k resistor (3 rau sawv ib leeg version)

3. 2 x MOSFET (Kuv siv IRF 540)

4. Ir tus txais (VS 1838)

5. 16 MHz siv lead ua (Rau ib leeg kheej kheej)

6. 2 x 22pF ceramic capacitor (Rau ib leeg xwb version)

7. 100nf Ceramic capacitor (2 rau ib leeg xwb version)

8. 12V 2 amp fais fab mov

9. 470nf capacitor (Rau ib leeg xwb version)

10. FTDI Programmer (Yog tias siv Arduino pro mini)

Kauj Ruam 1: Npaj Micocontroller

Yog tias siv Arduino board ua raws cov lus qhia hauv qab no:-

1. Muab tus IR txais rau ntawm lub khob cij thiab txuas vcc rau +5V ntawm Arduino, GND rau GND ntawm arduino thiab tawm mus rau tus pin D3 ntawm Arduino

2. Txuas Arduino rau koj lub khoos phis tawj thiab qhib Arduino IDE

3. Rub tawm IRremote lub tsev qiv ntawv los ntawm Nyem qhov no

4. Tshaj tawm cov cai hauv qab no thiab qhib qhov saib ua ntej

5. Siv koj lub TV tej thaj chaw deb Nias lub pob uas koj xav kom muab tso rau thiab tua, hloov qhov ci thiab qhov kub ntawm cov coj.

6. Ntawm qhov ntsuas saib yuav tshwm HEX qhov tseem ceeb sau rau lawv thiab sau qhov twg yog tus lej twg

yog tias siv tus qauv ib leeg ua raws cov lus qhia hauv qab no:-

1. ntsaws lub microcontroller rau hauv lub khob cij, nrog rau lub resonator, tus tswj hluav taws xob, IR tus txais.

2. txuas tus FTDI programmer mus rau lub microcontroller.

3. ua raws kauj ruam 3 hauv qab no.

Kauj Ruam 2: Program Microcontroller

Program lub Microcontroller
Program lub Microcontroller

Tshaj tawm cov cai muab thiab hloov pauv cov lej hex deb ntawm cov uas koj tau sau tseg ua ntej, nrog qhov uas tau hais tias software ib feem ua tiav thiab nws lub sijhawm rau kho vajtse.

Kauj ruam 3: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court
Tsim Circuit Court

Ntawm ib daim ntawm cov ntawv ntoo tso cov khoom sib xyaw kom haum thiab txuas lawv siv tooj liab xaim thiab cov laug txuas. Nov yog ob peb daim duab ntawm kuv lub voj voog nrog cov txheej txheem, ib qho rau Arduino thiab ib qho rau tus qauv ib leeg.

Lub Circuit Court suav nrog lub microcontroller thiab IR tus txais lub receiver nkag siab lub teeb liab ntawm tv thiab muab nws rau microcontroller los ua cov microcontroller tom qab ntawd tsim PWM teeb liab los tswj lub qhov rooj ntawm 2 MOSFET uas thaum kawg tswj qhov ci ntawm cov coj.

Tom qab ntawd muaj rub tawm tus tiv thaiv rau lub rooj vag ntawm MOSFET txhawm rau tiv thaiv lub latch, rub tawm tus tiv thaiv rau microcontroller rov pib dua tus pin, 16 MHz resonator thiab thaum kawg 5 volt tus tswj hwm nrog ua kom lub zog ua kom muaj zog tswj hluav taws xob.

Kauj Ruam 4: Ua ke nrog cov LEDs

Instrall cov LEDs
Instrall cov LEDs
Instrall cov LEDs
Instrall cov LEDs

Siv daim kab xev nplaum rau sab nraum qab ntawm qhov txias thiab sov sov coj cov hlua khi lawv tom qab rau koj lub TV. tom qab ntawd siv cov laug txuas cov anode (lossis +ve davhlau ya nyob twg) ntawm ob qho tib si coj mus rau ib leeg txhawm rau txhawm rau tsim ib qho anode ntau thiab tom qab ntawd txuas cov anode sib xws rau +ve davhlau ya nyob twg ntawm koj lub zog siv. Lub cathode (lossis -ve davhlau ya nyob twg) ntawm txhua tus LED txuas rau ntws ntawm ob MOSFETS.

Kauj ruam 5: Ua tiav

yog li nws thaum kawg ua tiav thiab koj tuaj yeem tswj tus coj yam tsis tau tawm ntawm txaj. Tam sim no yog tias nws tsis ua haujlwm rau koj ces cov lus hais tawm ib txwm qhib. Tsis tas li kuv tsis zoo ntawm tus programmer yog tias ib tus ntawm koj tuaj yeem txhim kho th code thov qhia rau peb.

Pom zoo: