Results 1 to 6 of 6

Thread: Relay source code

  1. #1
    Constant Bitrate
    Join Date
    May 2002
    Posts
    146

    Relay source code

    Is there any realay source code for the parallel port written in C or make it really simple Basic? There was alot of talk about the relay setups but it never really got off the ground. Just code to read a signal and a code to send a signal to a relay.

  2. #2
    Maximum Bitrate mushin's Avatar
    Join Date
    Aug 2004
    Location
    SE Michigan
    Posts
    750
    Google for "dlportio", you'll find a C library for raw access to the parallel port under Windows. The code will be *really* basic, since all you're going to be doing is setting particular bits high for each relay.

  3. #3
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    I got a parrallel port based relay card and wrote my own control software using dlportio, the problem is its absolutly unusable in the car since random bits will get sent to the parallel port when booting and trigger the relays on the port. You could perhaps get around this by using a relay to trigger the power going to the parrallel port card only when the computer is finished booting, problem is you now need another relay card to start your first relay card.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  4. #4
    Maximum Bitrate Marsupial's Avatar
    Join Date
    Feb 2004
    Location
    Montreal
    Posts
    763
    what if you use a USB parallel port... it theory it won't send anything to tbe LPT port until the PC is booted and the USB has kicked in... or maybe I am wrong.

    just an idea
    -Mars

  5. #5
    Low Bitrate
    Join Date
    Jan 2002
    Location
    Frederick, MD
    Posts
    99
    Do a search for the "Mini SSC II" servo controller card. It's about $40, is a couple inches square, controls 8 servos (chainable up to 256), and takes 3-byte commands from a serial port. There's plenty of free software for controlling it. If you're dead-set on it using the parallel port, you can use an adapter.

  6. #6
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Quote Originally Posted by Marsupial
    what if you use a USB parallel port... it theory it won't send anything to tbe LPT port until the PC is booted and the USB has kicked in... or maybe I am wrong.

    just an idea
    That would be too easy... I haven't tried it myself but someone else on here said they don't work with the USB converters.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

Similar Threads

  1. GPS/MapPoint VB Source Code
    By stevieg in forum Software & Software Development
    Replies: 7
    Last Post: 01-28-2011, 03:59 PM
  2. Alpha Release: XMPC-CAR for XM
    By gork in forum Software & Software Development
    Replies: 88
    Last Post: 01-11-2006, 12:19 PM
  3. XMPC-CAR source code now available!
    By gork in forum Software & Software Development
    Replies: 6
    Last Post: 04-06-2004, 12:33 PM
  4. Will someone help me program my relay control module
    By cproaudio in forum Software & Software Development
    Replies: 6
    Last Post: 09-04-2002, 04:50 AM
  5. Dos MP3 player/decoder source code?
    By Fosgate in forum Software & Software Development
    Replies: 4
    Last Post: 03-23-2000, 03:46 AM

Bookmarks

Posting Permissions

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