Cov txheej txheem:

Infrared NEC Protocol Encoder thiab Decoder Board: 5 Cov Kauj Ruam
Infrared NEC Protocol Encoder thiab Decoder Board: 5 Cov Kauj Ruam

Video: Infrared NEC Protocol Encoder thiab Decoder Board: 5 Cov Kauj Ruam

Video: Infrared NEC Protocol Encoder thiab Decoder Board: 5 Cov Kauj Ruam
Video: EEVblog #506 - IR Remote Control Arduino Protocol Tutorial 2024, Kaum ib hlis
Anonim
Infrared NEC Protocol Encoder thiab Decoder Board
Infrared NEC Protocol Encoder thiab Decoder Board
Infrared NEC Protocol Encoder thiab Decoder Board
Infrared NEC Protocol Encoder thiab Decoder Board

Tau txais qhov hloov pauv lossis hloov pauv tshiab NEC IR teeb liab thiab hloov nws mus rau hauv bytes uas tau xa tawm qhov chaw nres nkoj. Tus lej baud tus lej tuaj yeem xaiv los ntawm ob qhov nrawm nrawm. Lub hom phiaj siv tsis raug xa tawm cov lus hais ua ntu zus nrog cov thav duab bytes, chaw nyob siab, chaw nyob qis, thiab qhov siv tau hais kom ua byte. Cov cuab yeej no tau tsim los tshem tawm cov haujlwm ua haujlwm ntawm cov txheej txheem txiav txim siab los ntawm cov txheej txheem tseem ceeb, uas tuaj yeem yog PIC, Arduino, FTDI, lossis lwm yam khoom siv muaj peev xwm zoo sib xws. Nws txhawb nqa kev sib txuas lus ob tog thaum siv I. R. transceiver.

Cov txheej txheem tso tawm tau sau kom yooj yim txais. Tus nqi 255 & 254 rau byte thav duab ua raws los ntawm cov ntaub ntawv bytes, cov lej rov ua haujlwm tau qhia los ntawm 250 & 253. Tsis muaj ib qho ntawm cov txiaj ntsig no ib txwm nyob hauv NEC cov lus txib ib qib zuj zus, lossis tsawg kawg tsis nyob hauv qhov kev txiav txim ntawd. Cov cuab yeej xav kom ncua NEC raws tu qauv, nrog 16-ntsis Chaw Nyob, ntau dua li qhov tau teev tseg 8-ntsis chaw nyob nrog 8-ntsis thim rov qab.

Cov ntawv muaj ntau cov ntaub ntawv thiab cov ntsiab lus. Download Daim Ntawv Teev Npe

Cov phiaj xwm cov ntaub ntawv tuaj yeem rub tawm ua ZIP los ntawm cov kauj ruam no, lossis Mus ntsib GitHub kom rub tawm.

Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej

Qhov: Qee qhov tsis xav tau rau kev txais tos tsuas yog siv.

  • Cov khoom siv sib dhos muaj tsawg - NLEDshop.com
  • Luam Circuit Board - Cov ntaub ntawv dav dawb hau muaj nyob hauv Cov Ntawv Teev Npe lossis GitHub
  • PIC12F1572 lossis PIC12F1822/PIC12F1840 (txais tos nkaus xwb)
  • 38KHz Infra-red receiver xws li TSOP38238 LOS YOG TFBS4711 transceiver.
  • 1x 5mm Infrared LED haum rau IR kis tau tus mob
  • 2x 0.1uF 0805 SMD capacitor
  • 2x 47ohm 0805 SMD resistor
  • 1x NPN Transistor, SMD SOT -23 - BSR17A lossis zoo sib xws
  • Infrared chaw taws teeb tswj uas siv N. E. C. raws tu qauv - uas yog tus tswj hwm Suav pheej yig tshaj plaws - Nrhiav Qee Qhov Ntawm No

Cov Cuab Yeej:

  • Cov cuab yeej hluav taws xob
  • Tweezers
  • Ib txoj hauv kev kom rov qab SMD cov laug cam - phom cua kub, rov ua kom sov lub qhov cub, ua kom sov

Kauj ruam 2: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Thov siv cov tshuaj txhuam hniav tso, tso cov seem, thiab rov ua dua.

Txais Txais Kev Pab:

  • Nruab TSOP38238 lossis zoo sib xws
  • R1, R2, R3, thiab T1 tsis xav tau.
  • Tie CONFIG jumper rau "PIN" lossis tawm mus tsis tau.
  • Ib qho ntawm cov microcontrollers sib xws tuaj yeem siv tau.

Tag Nrho Duplex / Bi-Directional Siv Nrog Transceiver:

  • Nruab TFBS4711 lossis zoo ib yam li IR transceiver
  • R2, R3, thiab T1 tsis xav tau.
  • Khi CONFIG jumper rau "GND"
  • Tsuas yog PIC12F1572 yog sib xws.

Tag Nrho Duplex / Bi-Directional Siv Nrog LED thiab Txais:

  • Nruab TSOP38238 lossis zoo sib xws
  • Nruab ib lub Infra -Red LED - 5mm domed lossis zoo sib xws.
  • R1 tsis xav tau.
  • Tie CONFIG jumper rau "PIN" lossis tawm mus tsis tau Tsuas yog PIC12F1572 yog sib xws.

Kev Tswj Chaw Taws Teeb: Feem ntau ntawm cov pheej yig me me suav cov duab hluav taws xob tuaj yeem ua haujlwm. Lawv tuaj hauv cov duab sib txawv, qhov ntau thiab tsawg ntawm cov yuam sij. Siv ntawm no yog 24-qhov tseem ceeb nyob deb, tab sis kev qhia nrog ntau lossis tsawg tus yuam sij yuav ua haujlwm zoo ib yam.

Qee qhov kev cai txiav txim siab tau luam tawm uas tau muab tso rau ntawm cov chaw taws teeb nrog kev cai khawm duab. Qhov no tsis yog necassary tab sis ua rau nws yooj yim dua rau siv. Tus qauv rau 24-qhov tseem ceeb (4x6 yuam sij) muaj.

Kauj ruam 3: Firmware Paub meej thiab Programming

Firmware Paub meej thiab Programming
Firmware Paub meej thiab Programming
Firmware Paub meej thiab Programming
Firmware Paub meej thiab Programming

Lub khoos phis tawj tau sau rau hauv Kev Sib Tham rau PIC12 series ntawm cov txheej txheem. Kev sib dhos tau xav kom ua tiav txoj cai xav tau ua haujlwm siv lub zog qis (thiab pheej yig) microcontrollers. Cov ntaub ntawv phiaj xwm suav nrog MPLABX txoj haujlwm thiab nws siv tus txheej txheem MPASM tus neeg sau.

Raws li tau hais hauv kauj ruam 1, cov cuab yeej no yooj yim nyeem NEC cov txheej txheem raws li cov lus txib thiab hloov lawv mus rau hauv tus qauv 8-N-1 cov lej bytes uas yooj yim nyeem tau los ntawm cov khoom siv txuas nrog xws li PICs, Arduninos, lossis lwm yam khoom siv/COM raws li.

Txoj Cai Txaus:

Zoo nkauj yooj yim tag nrho tab sis nyuab rau saib. Ob qho kev hloov pauv thiab hloov pauv lub teeb liab tau nyeem thiab ncua sijhawm los ntawm kev cuam tshuam. Thaum ua tiav cov lej hais kom ua tau raug txais qhov firmware teeb tsa tus chij rau qhov tau txais cov lus txib kom hloov pauv mus rau hauv cov lej lej thiab xa tawm lub cuab yeej UART.

Xaiv Xaiv:

Cov cuab yeej no muaj ob lub tshuab txuas txuas uas tuaj yeem siv los txheeb xyuas cov khoom siv. BAUD jumper xaiv qhov qeeb lossis nrawm baud tus nqi, uas tau teeb tsa los ntawm lub neej ntawd rau 19, 200 thiab 250, 000. Lub khoos phis tawj tuaj yeem hloov pauv tau yooj yim los siv tus nqi sib txawv. CONFIG jumper tau siv los xaiv yog tias lub cuab yeej yuav tsum cia siab tias yuav tau txais qhov hloov pauv lossis hloov pauv lub teeb liab. Ob qho no tau piav qhia ntxaws ntxiv ntawm Daim Ntawv Qhia.

Kauj Ruam 4: Tus Tswv Qhia Kev Sib Txuas Lus

Cov ntsiab lus sib tham tswv
Cov ntsiab lus sib tham tswv
Cov ntsiab lus sib tham tswv
Cov ntsiab lus sib tham tswv

Tus tswv cuab tuaj yeem yog txhua yam nrog TTL (3.3v lossis 5v) qib chaw nres nkoj (UART). Txhua yam zoo li FTDI, PIC, Arduino, ATMEL, thiab lwm yam tuaj yeem siv los cuam tshuam nrog cov cuab yeej no.

Cov phiaj xwm phiaj xwm muaj cov ntawv TXT nrog piv txwv C code. Thaum cov cai tau sau rau XC16 thiab PIC24F cov txheej txheem, cov syntax yog qhov ncaj ncees yog li kev xa mus rau koj cov lus/tus neeg sau cov lus xaiv yuav tsum tsis tseem ceeb.

Yog tias koj sau/hloov kho cov cai rau koj tus kheej thiab xav qhia nws, xa xov rau kuv thiab kuv yuav muab nws tshaj tawm ntawm no.

Kauj Ruam 5: Ua tiav thiab Siv

Ua tiav thiab Siv
Ua tiav thiab Siv

Thaum lub cuab yeej no tau tsim los txhim kho txoj cai qub NLED cov tswj hwm rau kev sib raug zoo nrog lub teeb pom kev deb. Nws tuaj yeem muaj ntau lwm yam siv nrog lwm cov khoom siv, tshwj xeeb tshaj yog cov uas tsis muaj kev ua haujlwm ua ntej rau lub sijhawm thiab txiav txim siab NEC cov txheej txheem nyob deb. Tau txais txoj hlua ntawm cov lej bytes tau nrawm thiab yooj yim rau feem ntau cov txheej txheem.

NLED cov tswj hwm thiab software tau txhim kho tas li thiab hloov kho tas li. Tiv tauj nrog txhua qhov kev thov lossis kab lus ceeb toom.

Ua tsaug rau kev nyeem ntawv, thov mus saib www. NLEDshop.com rau Ua Hauv Tebchaws Asmeskas LED Tswj thiab LED Khoom. Los yog nrhiav ntau txoj haujlwm uas siv NLED cov khoom lag luam ntawm peb Cov Ntawv Qhia Qhia lossis Nplooj Ntawv Cov Haujlwm ntawm peb lub vev xaib.

Txog xov xwm, hloov tshiab, thiab cov npe khoom thov mus saib www.n Northernlightselectronicdesign.com Thov Tiv Tauj Peb nrog cov lus nug, lus pom, lossis kab lus ceeb toom.

NLED muaj rau kev teeb tsa kev teeb tsa, tsim qauv software, tsim kho vajtse, teeb tsa LED, tsim khoom, thiab sab laj. Thov hu rau peb los tham txog koj qhov project.

Pom zoo: