leqephe_banner

Litaba

Molao-motheo le ho phethahala ha transmitter ea remote control ea infrared

Kakaretso ea litaba:

1 Molao-motheo oa transmitter ea mats'oao a infrared

2 Ho ngollana pakeng tsa mochine o fetisang molaetsa oa infrared le moamoheli

3 Mohlala oa ts'ebetso ea transmitter ea infrared

 

1 Molao-motheo oa transmitter ea mats'oao a infrared

Ea pele ke sesebelisoa ka boeona se hlahisang lets'oao la infrared, leo hangata le shebahalang tjena:

dfhd (1)

Bophara ba diode ea infrared setšoantšong ke 3mm, 'me e' ngoe ke 5mm.

Li batla li tšoana hantle le li-LED tse hlahisang leseli, kahoo lithapo tse telele li kopantsoe le palo e ntle, 'me e' ngoe e amana le palo e mpe.

Potoloho e bonolo ka ho fetisisa ea ho khanna ke ho eketsa mohanyetsi oa 1k oa hona joale oa moeli ho 3.3v e ntle, ebe o hokahanya electrode e mpe ho IO ea micro controller.Joalokaha ho bontšitsoe ka tlase:

dfhd (2)

2 Ho ngollana pakeng tsa mochine o fetisang molaetsa oa infrared le moamoheli

Ha ke se ke boletse joalo, ke hloka ho lokisa phoso sehloohong se latelang le uena.

dfhd (3)

Setšoantšong se ka holimo, ho boleloa hore maemo a pontšo ea transmitter le ea amohelang a fapane.Ke hore, ho tšoana le litaba tse pota-potiloeng ka har'a mabokose a khubelu le a maputsoa setšoantšong se ka holimo.

Ebile, ka sebopeho sa 'nete sa maqhubu, karolo e putsoa ea transmitter ha se boemo bo phahameng ba 0.56ms.Sebakeng seo, ke 0.56ms pwm wave ea 38kHz.

Sebopeho sa waveform se lekantsoeng ke se latelang:

dfhd (4)

Lintlha tsa mofuta oa wave oa karolo ea 'mala oa wave oa transmitter setšoantšong ke tse latelang:

dfhd (5)

Hoa hlokomeleha hore maqhubu a leqhubu lena le teteaneng la lisekoere ke 38kHz.

Kakaretso ke ena: ngollano lipakeng tsa transmitter le moamoheli oa taolo e hole ea infrared:

Ha transmitter e hlahisa 38kHz square wave, moamoheli o tlase, ho seng joalo moamoheli o phahame.

3 Mohlala oa ts'ebetso ea transmitter ea infrared

Joale ha re tsoeleng pele ho itloaetsa ho etsa mananeo.

Ho ea ka selelekela se fetileng, rea tseba hore ho hlokomela tšebetso ea "remote control" ea infrared, re tlameha ho qala ka ho hlokomela mesebetsi e 'meli ea mantlha:

1 38kHz square wave wave

2 Laola 38kHz square wave ho bulela le ho tima ka nako eo u e batlang

Ea pele ke tlhahiso ea 38kHz square wave.Re sebelisa feela pwm wave ho e hlahisa.Mona, re hloka ho sebelisa ts'ebetso ea pwm ea nako.Ke sebelisa chip ea matla a tlase ea STM32L011F4P6 mona.

Qala ka ho sebelisa cube ea "code generation tool" ho hlahisa khoutu:

Khouto ea ho qala:

Joale ho na le mosebetsi oa ho bulela kapa ho tima leqhubu la pwm ho ea ka melao ea coding, e sebelisoang ho sebelisoa nako ea nako, ebe e fetola bolelele ba nako eo leqhubu la pwm le buloang kapa le tima ka ho fetola nako ea ho fihla ea e latelang. sitisa:

Ho ntse ho na le lintlha tse ling tsa data tse kentsoeng tse ke keng tsa behoa mona.Haeba o hloka khoutu e eketsehileng ea mohloli, o amohelehile ho siea molaetsa, 'me ke tla u fa khoutu e qaqileng kapele kamoo ho ka khonehang.


Nako ea poso: Feb-24-2022