Results 1 to 5 of 5

Thread: Controlling a Lamp Circuit

  1. #1

    Thread Starter
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Controlling a Lamp Circuit

    So I have a simple circuit - just a lamp and a battery. I want to put something inbetween said lamp and battery that will connect to my pc (LPT/COM) so I can switch it on and off via my C# application.

    Do any libraries exist for communicating with such devices? And I've never made anything to interface with a computer, so does anyone have any idea how to do the electronics part of it?

    I've searched the forum for COM and LPT connections and come accross a load of VB6 stuff and people go on about creating a driver circuit.... can anyone help?

    Thanks,
    -Tom
    Last edited by TomGibbons; Oct 26th, 2004 at 02:49 PM.

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Apologies I can't help, but once I had a request to be able to open a security gate from my program. I started to look into it, but then the client dropped the idea. I had no idea where to start so I talked to a electronics geek at Radio Shack. He started pulling out stuff that I could plug into a COM port (IIRC) that would do that. Of course .NET has no classes yet for serial communications.

    Edit: Looks like you're from the UK. Not sure if they have Radio Shack stores there, but in the US, they're all over the place and generally, the people that work there are serious electronics geeks.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Originally posted by Mike Hildner
    Apologies I can't help, but once I had a request to be able to open a security gate from my program. I started to look into it, but then the client dropped the idea. I had no idea where to start so I talked to a electronics geek at Radio Shack. He started pulling out stuff that I could plug into a COM port (IIRC) that would do that. Of course .NET has no classes yet for serial communications.

    Edit: Looks like you're from the UK. Not sure if they have Radio Shack stores there, but in the US, they're all over the place and generally, the people that work there are serious electronics geeks.
    The nearest thing to radio shack we have is Maplin, there should be one near you Tom.

    I once soldered up an LTP port blinker (8 LEDs and a few resistors in parallel plugged into a pass thru lpt cable. It could easily be adapted to supply a small current across up to 8 transistors and thus power any device you like from stepper motors to lightbulbs. Supplying a byte to the LPT sets the 8 LEDs to display the binary of that number, say sending the number 29 (00011101 in binary) as a byte will display @@@@@@@@

    Google for "LPT LED circuit" and you should dig up a suitably adaptable circuit. I'm available for PCB engraving commissions if you need one thrown together.
    Last edited by wossname; Nov 1st, 2004 at 06:44 AM.
    I don't live here any more.

  4. #4

    Thread Starter
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Oh okay thank you both.

    Wossname: That's great. I'll start looking in to that. I may well contact you again soon

  5. #5
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099
    take a look at

    I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port
    http://www.codeproject.com/csharp/cspplcds.asp

    I/O Ports Uncensored Part 2 - Controlling LCDs (Liquid Crystal Displays) and VFDs (Vacuum Fluorescent Displays) with Parallel Port
    http://www.codeproject.com/csharp/cspplcds.asp

    been reading though them, havent tried them, but thats becuase im skint at the moment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width