isibhengezo_sekhasi

Izindaba

Umgomo kanye nokufezeka kwe-infrared remote control transmitter

Uhlolojikelele lokuqukethwe:

1 Isimiso se-infrared signal transmitter

2 Ukuxhumana phakathi kwe-infrared signal transmitter nomamukeli

3 Isibonelo sokusebenzisa isidlulisi se-infrared

 

1 Isimiso se-infrared signal transmitter

Eyokuqala idivayisi ngokwayo ekhipha isignali ye-infrared, ngokuvamile ebukeka kanje:

dfhd (1)

Ububanzi be-infrared diode esithombeni buyi-3mm, kanti enye ingu-5mm.

Acishe afane ncamashi nama-LED akhipha ukukhanya, ngakho-ke izikhonkwane ezinde zixhunywe esigxotsheni esihle, kanti enye ixhunywe esigxotsheni esibi.

Umjikelezo wokushayela olula ukungeza i-1k yamanje yokuvimbela imikhawulo ku-positive street 3.3v, bese uxhuma i-electrode eyinegethivu ku-IO yesilawuli esincane.Njengoba kuboniswe ngezansi:

dfhd (2)

2 Ukuxhumana phakathi kwe-infrared signal transmitter nomamukeli

Sengikushilo lokho, ngidinga ukulungisa iphutha esihlokweni esilandelayo nawe.

dfhd (3)

Esithombeni esingenhla, kushiwo ukuthi amazinga esignali we-transmitter nomamukeli aphambene.Okungukuthi, okufanayo nokuqukethwe okuzungezwe emabhokisini abomvu naluhlaza okwesibhakabhaka esithombeni esingenhla.

Eqinisweni, ku-waveform yangempela, ingxenye eluhlaza okwesibhakabhaka yesidluliseli ayilona izinga eliphakeme elilula lika-0.56ms.Kunalokho, igagasi elingu-0.56ms pwm lika-38kHz.

I-waveform elinganisiwe yangempela imi kanje:

dfhd (4)

Imininingwane ye-waveform yengxenye yombala wegagasi yesidluliseli esithombeni imi kanje:

dfhd (5)

Kuyabonakala ukuthi imvamisa yaleli gagasi lesikwele eliminyene lingu-38kHz.

Nasi isifinyezo: ukuxhumana phakathi komthumeli nomamukeli wesilawuli kude se-infrared:

Lapho isidlulisi sikhipha igagasi lesikwele esingu-38kHz, umamukeli uphansi, ngaphandle kwalokho umamukeli uphakeme.

3 Isibonelo sokusebenzisa isidlulisi se-infrared

Manje ake siqhubekele ekusebenzeni kwezinhlelo.

Ngokwesethulo esedlule, siyazi ukuthi ukuze sibone umsebenzi wesilawulikude se-infrared, kufanele siqale sibone imisebenzi emibili eyisisekelo:

1 38kHz okukhipha igagasi lesikwele

2 Lawula igagasi lesikwele elingu-38kHz ukuze uvule futhi uvale ngesikhathi osithandayo

Eyokuqala iwukukhipha igagasi lesikwele esingu-38kHz.Sisebenzisa i-pwm wave ukuyikhiqiza.Lapha, sidinga ukusebenzisa umsebenzi we-pwm we-timer.Ngisebenzisa i-STM32L011F4P6 yamandla aphansi chip lapha.

Okokuqala sebenzisa ikhiyubhu ye-artifact yethuluzi lokukhiqiza ikhodi ukuze ukhiqize ikhodi:

Ikhodi yokuqalisa:

Bese kuba nomsebenzi wokuvula noma ukuvala igagasi le-pwm ngokuya ngemithetho yokufaka amakhodi, esetshenziswa kusetshenziswa iziphazamiso zesikhathi, bese ulungisa ubude besikhathi lapho i-pwm wave ivulwa noma ivaliwe ngokushintsha isikhathi sokufika esilandelayo. phazamisa:

Kusenemininingwane ethile yedatha efakwe ikhodi engeke ithunyelwe lapha.Uma udinga ikhodi yomthombo eyengeziwe, wamukelekile ukuthi ushiye umlayezo, futhi ngizokunikeza ikhodi enemininingwane ngokushesha ngangokunokwenzeka.


Isikhathi sokuthumela: Feb-24-2022