Le projekthi ichaza indlela injini yeDC enokuhanjiswa ngayo iye phambili okanye ibuye umva kusetyenziswa iTV okanye iDVD elawulwa kude.Injongo kukwakha i-bi-directional motor driver elula esebenzisa imodulated infrared (IR) 38kHz pulse train ngeenjongo ngaphandle kokusebenzisa nayiphi na imicrocontroller okanye inkqubo.
Iprototype yombhali iboniswe kwiFig.
Ukujikeleza kunye nokusebenza
Umzobo wesekethe yeprojekthi iboniswe kuMfanekiso 2. Yakhiwe malunga nemodyuli yommkeli we-IR TSOP1738 (IRRX1), i-counter counter 4017B (IC2), umqhubi wemoto L293D (IC3), PNP transistor BC557 (T1), ezimbini ze-BC547 NPN transistors ( I-T2 kunye ne-T3), i-5V elawulwayo yombane (IC1), kunye nebhetri ye-9V.
Ibhetri ye-9V idityaniswe nge-diode D1 kwi-voltage regulator 7805 ukuvelisa i-5V DC efunekayo kwiprojekthi.I-Capacitor C2 (100µF, 16V) isetyenziselwa ukwala i-ripple.
Ngaphantsi kwemeko eqhelekileyo, i-pin ye-3 ye-IR yemodyuli ye-IRX1 ikwi-logic ephezulu, oku kuthetha ukuba i-transistor T1 eqhagamshelwe kuyo inqunyulwe kwaye ngoko i-terminal yayo yomqokeleli iphantsi kwengqiqo.Umqokeleli we-T1 uqhuba i-clock pulse ye-counter counter IC2.
Xa ukhomba indawo ekude kwimodyuli ye-IR kwaye ucofa naliphi na isitshixo, imodyuli ifumana i-38kHz IR pulses ukusuka kulawulo olude.Ezi pulses ziguqulelwe kumqokeleli we-T1 kwaye zinikwe i-clock input pin 14 yeshumi le-counter IC2.
Ukufika kwe-IR pulses yonyusa ikhawuntara yeshumi ngesantya esifanayo (38kHz) kodwa ngenxa yobukho besihluzo se-RC (R2=150k kunye ne-C3=1µF) kwi-clock input pin 14 ye-IC2, uloliwe we-pulses ubonakala njenge-pulse enye ikhawuntara.Ngoko ke, xa ucofa iqhosha ngalinye, ikhawuntara iqhubela phambili ngokubalo olunye kuphela.
Xa isitshixo se-remote sikhutshwa, i-capacitor C3 ikhupha nge-resistor R2 kwaye umgca wewotshi uba ngu-zero.Ke ngalo lonke ixesha umsebenzisi ecofa kwaye ekhupha isitshixo kwindawo ekude, ikhawuntara ifumana ukubetha kwewotshi enye kunye nokukhanya kwe-LED1 ukuqinisekisa ukuba i-pulse ifunyenwe.
Ngexesha lokusebenza kunokubakho izinto ezintlanu ezinokwenzeka:
Ityala loku-1
Xa iqhosha le-remote licinezelwe, i-pulse yokuqala ifika kwaye i-O0 imveliso ye-counter counter (IC2) iya phezulu ngelixa izikhonkwane ze-O1 nge-O9 ziphantsi, oku kuthetha ukuba i-transistors T2 kunye ne-T3 zikwimo yokunqunyulwa.Abaqokeleli bezo zombini ii-transistors batsalwa kwindawo ephakamileyo nge-1-kilo-ohm resistors (R4 kunye ne-R6), ngoko zombini ii-terminal zokufaka i-IN1 kunye ne-IN2 yomqhubi we-motor L293D (IC3) ibe phezulu.Kweli nqanaba, injini ikwimo engasebenziyo.
Ityala lesi-2
Xa iqhosha licinezelwa kwakhona, i-pulse yesibini efika kumgca we-CLK yonyusa ikhawunta nganye.Oko kukuthi, xa i-pulse yesibini ifika, i-O1 imveliso ye-IC2 iya phezulu, ngelixa iziphumo eziseleyo ziphantsi.Ke, i-transistor T2 iqhuba kwaye i-T3 iyanqunyulwa.Oko kuthetha ukuba amandla ombane kumqokeleli we-T2 aye ezantsi (IN1 ye-IC3) kwaye amandla ombane kumqokeleli we-T3 abe phezulu (IN2 ye-IC3) kunye namagalelo e-IN1 kunye ne-IN2 yomqhubi we-motor IC3 abe ngu-0 kunye no-1, ngokulandelelanayo.Kule meko, i-motor ijikeleza phambili.
Ityala lesi-3
Xa iqhosha licofa kwakhona, i-pulse yesithathu ifika kumgca we-CLK yonyusa ikhawunta ngenye kwakhona.Ke imveliso ye-O2 ye-IC2 iya phezulu.Njengoko akukho nto iqhagamshelwe kwi-O2 pin kunye nezikhonkwane eziphumayo i-O1 kunye ne-O3 ziphantsi, ngoko ke zombini ii-transistors T2 kunye ne-T3 ziya kwi-cut-off state.
Iitheminali zomqokeleli wazo zombini ii-transistors zitsalwa kwindawo ephezulu nge-1-kilo-ohm resistors i-R4 kunye ne-R6, oku kuthetha ukuba iitheminali ze-input IN1 kunye ne-IN2 ye-IC3 ziba phezulu.Kweli nqanaba, injini iphinda ikwimo engasebenziyo.
Ityala lesi-4
Xa isitshixo sicinezelwe kwakhona, i-pulse yesine efika kumgca we-CLK inyusa i-counter ngesinye okwesine.Ngoku imveliso ye-O3 ye-IC2 iya phezulu, ngelixa iziphumo eziseleyo ziphantsi, ngoko i-transistor T3 iqhuba.Oko kuthetha ukuba i-voltage kumqokeleli we-T2 iba phezulu (IN1 ye-IC3) kwaye i-voltage kumqokeleli we-T3 iba phantsi (IN2 ye-IC3).Ngoko ke, amagalelo IN1 kunye ne-IN2 ye-IC3 akwinqanaba le-1 kunye ne-0, ngokulandelelanayo.Kule meko, i-motor ijikeleza kwicala elingasemva.
Ityala lesi-5
Xa isitshixo sicinezelwe okwesihlanu, i-pulse yesihlanu efika kumgca we-CLK inyusa ikhawunta enye kwakhona.Ekubeni i-O4 (i-pin 10 ye-IC2) ifakwe kwi-Seta kwakhona i-pin yokufaka i-15 ye-IC2, ukucinezela okwesihlanu kuzisa i-counter IC yeshumi leminyaka kwi-power-on-reset condition kunye ne-O0 ephezulu.
Ke, isekethe isebenza njengomqhubi we-bi-directional motor olawulwa nge-infrared remote control.
Ulwakhiwo kunye novavanyo
Isekethe inokudityaniswa kwiVeroboard okanye kwiPCB ebukhulu bayo bobume bokwenyani buboniswe kuMfanekiso 3. Uyilo lwamacandelo ePCB lubonisiwe kuMfanekiso 4.
Khuphela iPCB kunye noyilo lweCandelo lePDF:Cofa apha
Emva kokudibanisa isiphaluka, qhagamshela ibhetri ye-9V kwi-BATT.1.Jonga iTheyibhile yeNyaniso (iThebhile 1) ukuze usebenze kwaye ulandele amanyathelo achazwe kwiCase 1 ukuya kwiCase 5 ngasentla.
Ihlelwe nguLisa
Ixesha lokuposa: Sep-29-2021