visual basic LED printer port

vb LED, Printer Port, Parallel Port, 8255, 888, visual basic, inpout32.dll, db25, controlling printer port, light emitting diode
Yet another article about how to light Up the led through parallel port/Printer port, okey at these case, we using inpout32.dll to accessing the hardware, because visual basic can not access the printer port by directly, so we use inpout32.dll which compiled in C++ and it also supported windows Xp, read carefully and take a seat…be cool and take some coffee.Prerequisite
1. Make sure your PC/Laptop have a db25 Female printer port at the backside(take a look them), and all pin are fine.
2. DB25 Male (buy it from electronics shop), we need one for this
3. cable(or if you have TCP cable, use it)
4. LED
5. Inpout32.dll
6. Visual Basic 6.0
7. and some snack with coffee :)

Lets we start
1. assembly the led and cable with db25 male, like picture bellow

2. when it done, plug the db25 male into the female, and make sure all pin are inserted
3. copy the Inpout32.dll into c:\windows\system32\ or same directory with your project
4. Open the visual basic 6.0 and select the standart application
5. add module into the project and paste this code into the module

Option Explicit
Public Declare Sub Out Lib “inpout32.dll” Alias “Out32″ _
(ByVal PortAddress As Integer, ByVal Value As Integer)

6. after it done, take a look into the form, add one CheckButton and insert this code

Private Sub Check1_Click()
If Check1.Value = 0 Then
Out 888, 255
Else
Out 888, 0
End If
End Sub

7. run it by pressing F5
8. Press the button and take a look your LED

Download

LED
Inpout32.dll

11 Responses to “visual basic LED printer port”


  1. 1 zulkarnaen arsi 2 February, 2008 at 6:43 am

    ohh gitu tohh mas ^^,
    tengkyu2..

  2. 2 arizane 2 February, 2008 at 9:25 am

    iya bos..makasih yah udah mampir..btw ditunggu artikelnya juga hehehe

  3. 3 adit 2 February, 2008 at 2:03 pm

    bahas lebih detail……..please
    butuh buat 2 hari lagi(senin tanggal 4 februari 2008)

    DEAD OR ALIVE
    I NEED IT IMMEDIATELY
    PLEASE REPLY AS SOON AS POSSIBLE

    kalo gak IP gw turun malah bisa kena DO
    HELP………………………

  4. 4 arizane 2 February, 2008 at 11:13 pm

    coba link ini deh mas adit
    http://www.4shared.com/file/36676692/c6f676aa/PaperProjectSmstr1.html

    paper saya wktu semeter 1 kuliah

    mudah2an IPnya ga turun..hehehe

  5. 5 beaaan 22 March, 2008 at 11:47 am

    maz aris ak dah coba langkah demi langkah dari aplikasi diatas ko waktu ak jalankan mash ada errornya yah,

    “expected: string constant ”

    pada inpout32.dll di code modulnya

    tolong dong ak br aja mau blajar pemrograman dngn vb konek ke hardware….???!!!

  6. 6 arizane 25 March, 2008 at 1:25 pm

    masa gitu yah??

    hmm coba dikompile dikomputer lain…

  7. 7 erwin 10 September, 2008 at 5:25 am

    asslkm,terimakasih banyak ya mas,u projectny, oya mas saya mau minta tolong donk mas,tolong ditambahin fasilitas timer u/tiap2 tombolnya,baik itu Timer u/ON atau u/OFF,jujur aja saya ini baru2 aja belajar VB,soalnya ditempat kuliah saya ga ada mata kualiah VB,tapi jujur seudah saya pelajarin project dari mas saya jadi sedikit mengerti,saya berharap banget mas aris bisa bantu,kalo bisa yg terperinci ya mas,soalnya ini bakal saya jadiin u/bahan skripsi saya,mohon maaf ya mas saya udah ngerepotin mas,terimakasih banyak sebelumnya,semoga mas diberi inspirasi lagi,AMIN,dan saya tunggu jawabannya

  8. 8 Reza Azri Ramlee 14 October, 2008 at 3:29 pm

    Assalam, Arizane, salam sejahtera. Saya Reza dari Malaysia ingin mengucapkan terimakasih kerana program vb yg di paparkan dalam blog ini amat berguna, taniah dan terimakasih. Saya nak tanya ada tak vb program untuk mengawal serial port kalau ada tolong email saya di reza2613@yahoo.com

  9. 9 zasa 16 March, 2009 at 4:33 pm

    Salam Kenal Mas…
    Thanks tutorialnya mengenai led…
    jadi menampah pengetahuan saya.

  10. 10 cylock 12 June, 2009 at 2:55 pm

    terima kasih..
    artikel yang bermanfaat,terutama bagi tugas kuliahku

  11. 11 Itachi 19 June, 2009 at 9:14 pm

    Thanks sob !!!

    artikel u dah sngat membantu Q

    krna artikel u Q bsa menylesaikan Tugas Akhir Q

    thank you fery much sob


Leave a Reply




Official Of Arizane Blog

Komunitas

Indonesian Muslim Blogger KampungBlog.com - Kumpulan Blog-Blog Indonesia

a

Top Browsers

Mozilla

Visitor