Uqhagamshelo lwentambo yokubonisa i-LED

Ukusilela okuninzi kwesiboniso se-LED esinombala ogcweleyo kubangelwa kukufakwa ngokungafanelekanga.Ngoko ke, amanyathelo kufuneka alandelwe ngokungqongqo ngexesha lokufakwa kwenkqubo, ngakumbi ngexesha lofakelo lokuqala.Ukunciphisa ukwenzeka kweempazamo, makhe sijonge i-LED enemibala egcweleyo.Umzobo wocingo lwesikrini sokubonisa kunye neendlela zocingo zokunyathela ukufakwa kwesiboniso se-LED esinombala ogcweleyo.

1. Umzobo ogcweleyo we-LED woqhagamshelo lwentambo yokubonisa

Ababini, amanyathelo endlela

1. Jonga ukuba umbane wombane wesiboniso se-LED esinemibala epheleleyo siqhelekile.

Fumana ukunikezelwa kwamandla okutshintsha kunye noqhagamshelwano olulungileyo kunye nolubi lwe-DC, qhagamshela i-220V intambo yamandla kwi-switching power supply, (qiniseka ukuba ixhunyiwe ngokuchanekileyo, qhagamshela i-AC okanye i-NL terminal), kwaye udibanise umbane.Emva koko sebenzisa i-multimeter kunye nemodi ye-DC ukulinganisa i-voltage ukuqinisekisa ukuba i-voltage iphakathi kwe-4.8V-5.1V, kwaye kukho iqhoshana ecaleni kwayo, elinokulungiswa yi-screwdriver ye-Phillips, kwaye imo ye-DC isetyenziselwa ukulinganisa i-screwdriver. I-Voltage.Ukuze kuncitshiswe ukushisa kwesikrini kunye nokwandisa ubomi bawo, i-voltage inokulungiswa kwi-4.5V-4.8 apho imfuno yokukhanya ingekho phezulu.Emva kokuqinisekisa ukuba akukho ngxaki nge-voltage, cima umbane kwaye uqhubeke nokuhlanganisa ezinye iindawo.

2. Cima amandla omboniso okhokelwayo ogcwele umbala.

Xhuma i-V + kwintambo ebomvu, i-V + kwintambo emnyama, ngokulandelanayo udibanise ikhadi elipheleleyo lokulawula umboniso we-LED kunye nephaneli ye-LED, kunye nocingo olumnyama kwikhadi lokulawula kunye nokunikezelwa kwamandla e-GND.Ubomvu udibanisa ikhadi lokulawula + i-voltage ye-5V kunye nebhodi yeyunithi yeVCC.Ibhodi nganye inocingo.Xa ugqibile, khangela ukuba unxibelelwano luchanekile.

3. Qhagamshela isilawuli se-LED esinombala ogcweleyo kunye nebhodi yeyunithi.

Sebenzisa iingcingo ezifanelekileyo kunye noqhagamshelwano.Nceda unikele ingqalelo kwisalathiso kwaye ungalubuyiseli umva uqhagamshelwano.Ibhodi yeyunithi ekhokelwayo yombala ogcweleyo ine-interfaces ezimbini ze-16PIN, i-1 igalelo, i-1 iphuma, kunye nommandla we-74HC245 / 244 igalelo, kwaye ikhadi lokulawula lixhunyiwe kwigalelo.Imveliso ixhunyiwe kwigalelo lebhodi yeyunithi elandelayo.

4. Qhagamshela umgca wedatha we-RS232 wesiboniso se-LED esinombala ogcweleyo.

Qhagamshela isiphelo esinye sekhebula ledatha eyenziweyo kwikhompyuter ye-DB9 ye-serial port, kunye nesinye isiphelo kwikhadi lokulawula elikhokelela kumbala ogcweleyo, qhagamshela i-5 pin (brown) ye-DB9 kwi-GND yekhadi lokulawula, kwaye uqhagamshele i-3. i-pin (brown) ye-DB9 kulawulo lwe-RS232-RX yekhadi.Ukuba i-PC yakho ayinayo i-serial port, ungathenga i-USB ukuya kwi-RS232 ye-serial port yokuguqula intambo kwi-Computer Store.

5. Jonga udibaniso lwesiboniso esikhokelwayo esinombala ogcweleyo kwakhona.

Ingaba ucingo olumnyama ludityaniswe ngokuchanekileyo kwi--V kunye ne-GND, kwaye ucingo olubomvu luqhagamshelwe kwi-+V kunye ne-VCC+5V.

6. Vula unikezelo lwamandla lwe-220V kwaye uvule isoftware ekhutshelwe ngombala opheleleyo we-LED.

Ngokuqhelekileyo, ukukhanya kwamandla kuvuliwe, ikhadi lokulawula livuliwe, kunye nomboniso ogcweleyo we-LED ubonisa.Ukuba kukho into engaqhelekanga, nceda ujonge umdibaniso.Okanye jonga ukulungisa ingxaki.Seta iiparamitha zesikrini kwaye uthumele izihlokwana.Nceda ubhekisele kwimiyalelo yesoftware.


Ixesha lokuposa: Nov-02-2021
Incoko ka-WhatsApp kwi-Intanethi!