Results 1 to 4 of 4

Thread: I Need advise

  1. #1
    Newbie slipmatt's Avatar
    Join Date
    May 2006
    Location
    South Africa
    Posts
    54

    I Need advise

    Is it at all possible to control a relay (Switch it on and off) via Visual Basic?

    Thank you.

    P.S No flame throwers please

    Just throw rotten tomatoes
    70% Completed

    You Are Unique...Like everyone else!


    My Worklog:

    http://www.mp3car.com/vbulletin/worklogs/88246-1997-mazda-mx6.html


    To do list:
    GPS
    Engine diagnostics

  2. #2
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    Sure, a simple way is use serialport and turn on/off the "DTR" (pin 4) and "RTS" (pin 7) that can be done by the Com Control in VB6.

    You can not connect a relay direcly to the comport you must have a transistor circut that "boost" the signal from the comport.

    Or use a USB realycard like this ($99) http://www.measurementcomputing.com/...TA7R6X6TTJ27C2

    That you can control from VB6 pretty easy.

  3. #3
    Newbie slipmatt's Avatar
    Join Date
    May 2006
    Location
    South Africa
    Posts
    54
    NEEeeaaatttt!!!!

    will the best place to get sample source to control the relay be like planet source code? Once i get the idea, i'll be fine from there
    70% Completed

    You Are Unique...Like everyone else!


    My Worklog:

    http://www.mp3car.com/vbulletin/showthread.php?t=88246


    To do list:
    GPS
    Engine diagnostics

  4. #4
    Newbie slipmatt's Avatar
    Join Date
    May 2006
    Location
    South Africa
    Posts
    54
    was a stupid question
    Quote Originally Posted by Jeep View Post
    turn on/off the "DTR" (pin 4) and "RTS" (pin 7) that can be done by the Com Control in VB6.

    cool, i'll work it from there.
    70% Completed

    You Are Unique...Like everyone else!


    My Worklog:

    http://www.mp3car.com/vbulletin/showthread.php?t=88246


    To do list:
    GPS
    Engine diagnostics

Similar Threads

  1. Quick Advise
    By stuartpug206 in forum Car Audio
    Replies: 12
    Last Post: 02-23-2006, 04:20 PM
  2. Please advise a newbie
    By adiwood in forum Newbie
    Replies: 12
    Last Post: 12-03-2004, 07:45 PM
  3. Newbie looking for advise.
    By sharrisct25 in forum Newbie
    Replies: 1
    Last Post: 08-21-2004, 04:28 PM
  4. Extreme Newb Questions... (please advise)
    By Mudfoot in forum Newbie
    Replies: 3
    Last Post: 05-04-2004, 10:10 AM
  5. Any advise for this noob?
    By nevide in forum General Hardware Discussion
    Replies: 8
    Last Post: 09-02-2003, 02:01 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
  •