Monday, 26 July 2010

LED Circuit

(Dancing Lamp # 2)

To test the program I’ve created in my previous tutorial, I use this circuit (see picture). But be careful while you connect this circuit to your parallel port. Make sure that every component is in the right place or connection, otherwise it will damage your PC !!!

I use 1 KOhm resistors. If you send an integer data = 15 to the parallel port, D0…D3 LED will be light on. And D4…D7 LED will be off.

You can arrange which LED is on or off by writing some codes in Delphi. And you can also set the delay of each step you turn on or off the LED using OnTimer event of Timer component in Delphi. I’ve created an example program for you.

Download the example program here.

Go to previous tutorial (Accessing your PC’s parallel port using Inpout32.dll in Delphi)

Go to next tutorial (The Complete Electronic Circuit)

4 comments:

  1. yang selau berusaha menyambung tali silaturahim mengunjungi anda.

    moga selalu sukses kawan

    ReplyDelete
  2. Interesting and informative post for us and its help me to get more better idea about to design led circuit bard.

    ReplyDelete
  3. Hmm.. Sounds like good. Can you please post more details about this circuit board.

    Have any of youse had any experience with any pcb assembly companies that do this?

    ReplyDelete
    Replies
    1. s The best and a lot of secret drop-shipping suppliers in the world which will provide your products globally available for you directly to your customers doors. Also get the best drop-shipping manufacturer on your organization.

      Delete

These links are part of a pay per click advertising program called Infolinks. Infolinks is an In Text advertising service; they take my text and create links within it. If you hover your mouse over these double underlined links, you will see a small dialog box containing an advertisement related to the text. You can choose to move the mouse away and go on with your browsing, or to click on the box and visit the relevant ad. Click here to learn more about Infolinks Double Underline Link Ads.