Page 6 of 23 FirstFirst 12345678910111213141516 ... LastLast
Results 51 to 60 of 221

Thread: Velleman K8055 USB I/O Board Extension plugin

  1. #51
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,058
    gathering dust on my shelf at the moment.


    Will probably use to control lights or something and pssibly read temperatures.

  2. #52
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    Mine is installed in my car not connected to anything, not even USB. I've got to get myself a USB repeater cable to connect my USB hub too. For some reason my cheapo powered USB hub doesnt work on a standard 5m USB extension cable.
    Jarrod - Holden VX S!

  3. #53
    Low Bitrate mscar's Avatar
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    102
    HI, Is it possivel to use push button (skin command) in the relay skin?

    Ex: On Click -> open relay1 : On Release -> close relay1 (in the same botton)


    I want to use this command to open or close my electric car windows.

    Ex: Push botton -> open window : Release botton -> stop window.
    :: MSCAR ::
    .:: Multimedia System Car ::.

  4. #54
    Low Bitrate mscar's Avatar
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    102
    If not possivel: please reconsider to make a new command like:

    "k8055_do_switch_bit_1"
    "k8055_do_set_bit_1"
    "k8055_do_reset_bit_1"

    "k8055_do_push_bit_1" Set on and off relay

    Thanks
    :: MSCAR ::
    .:: Multimedia System Car ::.

  5. #55
    Variable Bitrate 307SW_NLD's Avatar
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    234
    Quote Originally Posted by mscar View Post
    If not possivel: please reconsider to make a new command like:

    "k8055_do_switch_bit_1"
    "k8055_do_set_bit_1"
    "k8055_do_reset_bit_1"

    "k8055_do_push_bit_1" Set on and off relay

    Thanks
    Well, it depends if there is a "button up" event in RR that is getting passed to the extension plugin. As far as I know it isn't there. So for now you're stuck with the k8055_do_switch_bitx which means 1 push start window going down, next push stop window going down.

    k8055_do_push_bit_1 is an idea but how long do the bit need to be set?
    My car: 2006 Hyundai Santa Fe 2.2 CRDI AUT
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

  6. #56
    Low Bitrate mscar's Avatar
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    102
    It may be less that a second.
    :: MSCAR ::
    .:: Multimedia System Car ::.

  7. #57
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,762
    Commands are only executed in RR when you let go of the button. This basically simulates the same functionality of any windows button (on purpose): If you click down a button, move the mouse out of it and let go of the mouse, the button will NOT execute giving you a chance to visually inspect if you pressed the right button in first place.

    However, if you make a clickable area or indicator, you should receive the event as soon as you click down on it, then you could easily monitor the mouse button via windows api: (GetAsyncKeyState(vbKeyLButton) and &h8000) which returns true/false if the mouse left button is down/up respectively. You'd probably have to make a timer on a reasonably short interval to control it though.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  8. #58
    Low Bitrate mscar's Avatar
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    102
    Thanks Guino, i made a change in RR CODE

    modK8055.bas

    ' changed by mscar
    Public Sub relays(Index As Integer)
    Dim i As Long
    Dim n As Long
    Dim valor As Integer
    n = 0
    If relays_State(Index) = False Then
    relays_State(Index) = True
    Else
    relays_State(Index) = False
    End If
    For i = 0 To 7
    If relays_State(i) = True Then valor = 1 Else valor = 0
    n = n + valor * (2 ^ i)
    Next
    WriteAllDigital n

    End Sub

    ' add by mscar
    Public Sub relaysPush(Index As Integer)
    Dim i As Long
    Dim n As Long
    Dim valor As Integer
    n = 0
    If relays_State(Index) = False Then
    relays_State(Index) = True
    Else
    relays_State(Index) = False
    End If
    For i = 0 To 7
    If relays_State(i) = True Then valor = 1 Else valor = 0
    n = n + valor * (2 ^ i)
    Next
    WriteAllDigital n

    Sleep (50)

    n = 0
    If relays_State(Index) = False Then
    relays_State(Index) = True
    Else
    relays_State(Index) = False
    End If
    For i = 0 To 7
    If relays_State(i) = True Then valor = 1 Else valor = 0
    n = n + valor * (2 ^ i)
    Next
    WriteAllDigital n

    End Sub
    ----

    and i add some code in exec

    Case "relaypush1"
    relaysPush 0
    Case "relaypush2"
    relaysPush 1
    Case "relaypush3"
    relaysPush 2
    Case "relaypush4"
    relaysPush 3
    Case "relaypush5"
    relaysPush 4
    Case "relaypush6"
    relaysPush 5
    Case "relaypush7"
    relaysPush 6
    Case "relaypush8"
    relaysPush 7


    Work Fine now
    :: MSCAR ::
    .:: Multimedia System Car ::.

  9. #59
    Variable Bitrate 307SW_NLD's Avatar
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    234
    Quote Originally Posted by mscar View Post
    Thanks Guino, i made a change in RR CODE

    modK8055.bas

    ' changed by mscar
    Public Sub relays(Index As Integer)
    Dim i As Long
    Dim n As Long
    Dim valor As Integer
    n = 0
    If relays_State(Index) = False Then
    relays_State(Index) = True
    Else
    relays_State(Index) = False
    End If
    For i = 0 To 7
    If relays_State(i) = True Then valor = 1 Else valor = 0
    n = n + valor * (2 ^ i)
    Next
    WriteAllDigital n

    End Sub

    ' add by mscar
    Public Sub relaysPush(Index As Integer)
    Dim i As Long
    Dim n As Long
    Dim valor As Integer
    n = 0
    If relays_State(Index) = False Then
    relays_State(Index) = True
    Else
    relays_State(Index) = False
    End If
    For i = 0 To 7
    If relays_State(i) = True Then valor = 1 Else valor = 0
    n = n + valor * (2 ^ i)
    Next
    WriteAllDigital n

    Sleep (50)

    n = 0
    If relays_State(Index) = False Then
    relays_State(Index) = True
    Else
    relays_State(Index) = False
    End If
    For i = 0 To 7
    If relays_State(i) = True Then valor = 1 Else valor = 0
    n = n + valor * (2 ^ i)
    Next
    WriteAllDigital n

    End Sub
    ----

    and i add some code in exec

    Case "relaypush1"
    relaysPush 0
    Case "relaypush2"
    relaysPush 1
    Case "relaypush3"
    relaysPush 2
    Case "relaypush4"
    relaysPush 3
    Case "relaypush5"
    relaysPush 4
    Case "relaypush6"
    relaysPush 5
    Case "relaypush7"
    relaysPush 6
    Case "relaypush8"
    relaysPush 7


    Work Fine now
    That must be an old version of RR. The newest version of RR does not have a modK8055.bas and the K8055 code was removed. This is now replaced by the RRK8055 Extension plugin
    My car: 2006 Hyundai Santa Fe 2.2 CRDI AUT
    Hardware: None at the moment
    Software: None at the moment
    See: Velleman K8055 Plugin for Road Runner

    Progress: [XXXXXXXXXX] 0 % DONE

  10. #60
    Low Bitrate mscar's Avatar
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    102
    I have the new version...It works with RR and your plugin, in the same time.

    Thanks.
    :: MSCAR ::
    .:: Multimedia System Car ::.

Similar Threads

  1. Replies: 10
    Last Post: 08-22-2008, 06:36 PM
  2. i think i burn my USB controller board
    By susuking in forum LCD/Display
    Replies: 0
    Last Post: 01-26-2006, 12:55 PM
  3. USB Control Board component burned
    By carfreak01 in forum LCD/Display
    Replies: 4
    Last Post: 08-24-2005, 03:43 PM
  4. Lilliput USB Circuit Board...
    By gleinz in forum LCD/Display
    Replies: 1
    Last Post: 01-18-2005, 05:09 PM
  5. Replies: 4
    Last Post: 04-06-2004, 10:52 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
  •