USB Relay Controller

Discussion in 'The Projects Forum' started by thinkengineer, Jun 17, 2011.

  1. thinkengineer

    Thread Starter New Member

    Jul 12, 2009
    6
    0
    Hi
    I am working on home automation project (for fun :)) and trying to control appliances using this Relay Controller by Protosmart in Visual basic. I have tested the board with provided software & it all works fine.
    Also, I tried controlling the relays using hyper terminal and they worked as expected.
    Now, I am programming in visual basic (am a beginner) to control the Relays and dont know how to send <ENTER> ?

    Relays can be controller by sending very simple commands. For example,

    O0=1<ENTER> turns on Relay 1

    and I am not sure how to send "enter" key?

    I will appreciate any help in this regards.

    Thanks
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,388
    1,605
    The VB code for that is: vbCrLf

    Append that to the end of the string you send.
     
  3. thinkengineer

    Thread Starter New Member

    Jul 12, 2009
    6
    0
    It worked. It actually needed only <CR> (vbCr)

    Thanks.
     
  4. adventtech

    Member

    Feb 10, 2009
    22
    0
    Hi thinkengineer,
    That looks like a nice USB Relay controller. Would you mind telling where did you purchase it?

    Thanks in advance
     
Loading...