Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. LED connected to parallel port and flashes Morse Code

LED connected to parallel port and flashes Morse Code

Scheduled Pinned Locked Moved The Lounge
comadobe
13 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Marc Clifton

    Retro! BTW, your blog says: Now, I'm planning to connect relays to my parallel port. This way, I'd be able to control electrical devices inside my house by using my computer! First, you'll probably fry the parallel port trying to drive a relay off it. Second, you should never connect anything that's got 120VAC to a low voltage system, even if you think it's isolated by a relay. I'd look at the BSR modules, or whatever they're called--I know people have written programs to control devices using those, and you can use your existing house wiring to send commands to the modules. Marc

    Thyme In The Country

    People are just notoriously impossible. --DavidCrow
    There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
    People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith

    A Offline
    A Offline
    Ashish Derhgawen
    wrote on last edited by
    #4

    Yeah, I also thought that could be possible. Now I'm planning to use an LDR. So, there won't be any physical contact with the power line. I'll just cello tape an LDR and LED together. This way I'll just have to control the LEDs. Ashish

    Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

    D L 2 Replies Last reply
    0
    • A Ashish Derhgawen

      Hello everyone, Yesterday I connected an LED to my parallel port. Then, I created a program which controls it makes it flash Morse Code! Check it out on my blog: http://ashishrd.blogspot.com[^]. I hope you find it interesting. :) Ashish

      Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

      M Offline
      M Offline
      MatthysDT
      wrote on last edited by
      #5

      Hi Ashish What language did you use to do this? I programmed a LCD screen to display any text via the parallel port, I did this in assembler in DOS because windows XP kinda dominates the access to that port. I would like to make my LCD driver windows-compatible. Interesting thing.... I accidentally executed my assembler program with my HP Deskjet Printer plugged into the port and it actually printed the text that the LCD would have displayed, just shows how much device drivers have in common!

      you can't forget something you never knew...
      "Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann

      A 2 Replies Last reply
      0
      • A Ashish Derhgawen

        Yeah, I also thought that could be possible. Now I'm planning to use an LDR. So, there won't be any physical contact with the power line. I'll just cello tape an LDR and LED together. This way I'll just have to control the LEDs. Ashish

        Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #6

        You might want to look into X10 stuff. A bit more pricey, but the electrical system in your house becomes the network for communicating with the controls. There's some examples here[^].

        Dave Kreskowiak Microsoft MVP - Visual Basic

        A J 2 Replies Last reply
        0
        • M MatthysDT

          Hi Ashish What language did you use to do this? I programmed a LCD screen to display any text via the parallel port, I did this in assembler in DOS because windows XP kinda dominates the access to that port. I would like to make my LCD driver windows-compatible. Interesting thing.... I accidentally executed my assembler program with my HP Deskjet Printer plugged into the port and it actually printed the text that the LCD would have displayed, just shows how much device drivers have in common!

          you can't forget something you never knew...
          "Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann

          A Offline
          A Offline
          Ashish Derhgawen
          wrote on last edited by
          #7

          Hi, I created the program in C# 2005 Express. Yeah, its a bit hard to reach the ports in Windows 2000 and XP. I used inpout32.dll for communicating with the parallel port. Check it out: http://www.logix4u.net/inpout32.htm[^] . :) Ashish

          Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

          M 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You might want to look into X10 stuff. A bit more pricey, but the electrical system in your house becomes the network for communicating with the controls. There's some examples here[^].

            Dave Kreskowiak Microsoft MVP - Visual Basic

            A Offline
            A Offline
            Ashish Derhgawen
            wrote on last edited by
            #8

            I'd love get X10. Its a bit pricey..I'll have to wait till I start earning. :laugh: Ashish

            Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

            1 Reply Last reply
            0
            • M MatthysDT

              Hi Ashish What language did you use to do this? I programmed a LCD screen to display any text via the parallel port, I did this in assembler in DOS because windows XP kinda dominates the access to that port. I would like to make my LCD driver windows-compatible. Interesting thing.... I accidentally executed my assembler program with my HP Deskjet Printer plugged into the port and it actually printed the text that the LCD would have displayed, just shows how much device drivers have in common!

              you can't forget something you never knew...
              "Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann

              A Offline
              A Offline
              Ashish Derhgawen
              wrote on last edited by
              #9

              Also check out this article: I/O Ports Uncensored Part 2 - Controlling LCDs (Liquid Crystal Displays) and VFDs (Vacuum Fluorescent Displays) with Parallel Port by Levent Saltuklaroglu: http://www.codeproject.com/csharp/cspplcds.asp[^]

              Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

              1 Reply Last reply
              0
              • A Ashish Derhgawen

                Hi, I created the program in C# 2005 Express. Yeah, its a bit hard to reach the ports in Windows 2000 and XP. I used inpout32.dll for communicating with the parallel port. Check it out: http://www.logix4u.net/inpout32.htm[^] . :) Ashish

                Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                M Offline
                M Offline
                MatthysDT
                wrote on last edited by
                #10

                Thanks! I'll try it out! BTW - great blog! It's added to my favourites!

                you can't forget something you never knew...
                "Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann

                A 1 Reply Last reply
                0
                • A Ashish Derhgawen

                  Yeah, I also thought that could be possible. Now I'm planning to use an LDR. So, there won't be any physical contact with the power line. I'll just cello tape an LDR and LED together. This way I'll just have to control the LEDs. Ashish

                  Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #11

                  Use an opto isolator, they are designed for just this job. Also, you can get high sensitivity ones which can drive AC mains directly, often referred to as solid state relays. There is one rule - the low voltage input is on one side and the high voltage AC output is on the other, keep the two sets of wiring physically spearated. Elaine :rose:

                  The tigress is here :-D

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    You might want to look into X10 stuff. A bit more pricey, but the electrical system in your house becomes the network for communicating with the controls. There's some examples here[^].

                    Dave Kreskowiak Microsoft MVP - Visual Basic

                    J Offline
                    J Offline
                    Jorgen Sigvardsson
                    wrote on last edited by
                    #12

                    Ah X10.. I still remember the ad popup terror. X|

                    -- If not entertaining, write your congressman

                    1 Reply Last reply
                    0
                    • M MatthysDT

                      Thanks! I'll try it out! BTW - great blog! It's added to my favourites!

                      you can't forget something you never knew...
                      "Watching Migthy Joe Young made me hate my life..................................I want a gorilla!" A. Havemann

                      A Offline
                      A Offline
                      Ashish Derhgawen
                      wrote on last edited by
                      #13

                      Thanks. I'm overwhelmed with joy. :)

                      Time flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups