Page 8 of 12 FirstFirst 123456789101112 LastLast
Results 71 to 80 of 118

Thread: USB Relay Controller

  1. #71
    Low Bitrate
    Join Date
    May 2005
    Posts
    89
    Another thing that would be really nice would be an ISCP header and access to the UART.

    Yes i agree make a win32 DLL API an we will be happy. If you give source or at least ive some info on the USB comm protocol, i would be willing to help with this.

    some GPIO or at the very least Digital ins are essential. You said you have all of PORTA and PORTC so why not take advantage of it. How much room do you have on the PCB? Can you fit optoisolators? Can you at the very least fit some screw in terminals or pin headers?

    There are making PICs with all sorts of spiffy peripherals these days. I like that chip

  2. #72
    Maximum Bitrate DeltaFX's Avatar
    Join Date
    Sep 2004
    Location
    France
    Posts
    499
    ULN2803A have onboard diodes.

  3. #73
    Newbie
    Join Date
    Jul 2004
    Posts
    53
    can this be used just to turn things on and off? like control aux lights door locks etc. etc.

  4. #74
    Zac
    Zac is offline
    Constant Bitrate
    Join Date
    Feb 2004
    Location
    VA
    Posts
    192
    Yes. That's basically all this is designed for....turning electronic devices on and off.

  5. #75
    Zac
    Zac is offline
    Constant Bitrate
    Join Date
    Feb 2004
    Location
    VA
    Posts
    192
    Summary:
    - Not done but getting there (summer courses, work, etc)
    - Unlimited # of buttons (actually only the first 1000 will do anything when clicked ) configured from a simple to read and edit XML file
    - You pick location for all buttons and image and which relay(s) it activates
    - Button types - On while pushed, Timed on, Toggle
    - App does not bound check (for now) - if you really want you can put 2 buttons on each other and whichever was on top will do it's job.
    - Screenshot below is horrible but it was my results of learning all this - the CObArray of my button class was what took so long...
    - No expected done date - I promise it won't be all that long :P


    Update on the software to control the relays - The buttons are dynamically created as they are read from the simple XML config file.
    The XML file basically defines the x,y,width,height,style (push/time/toggle),what relay(s) it controls,normal img,active image.
    This way each button can have a different size, each can control multiple relays, etc. My next goal now that I've got the buttons working is to allow for text on the buttons (of course color/size/font/etc defined) so you don't have to make 2 images for each button (unless you want to use pictures instead of text then it's perfect as-is :-P)

    I've attached a screenshot of the "GUI Test" - Don't worry the final thing will actually look good
    Attached Images Attached Images  

  6. #76
    Variable Bitrate kamikaze2112's Avatar
    Join Date
    Feb 2005
    Location
    Barrie Ontario
    Posts
    406
    Is there the possibility of a VB port for this? I'd love to help if i could, but I wouldn't even know where to start

  7. #77
    FLAC TheLlama's Avatar
    Join Date
    Jul 2004
    Location
    All over the world
    Posts
    970
    VB Sucks, sorry.

  8. #78
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Oh, VB isn't that bad. It's really pretty quick to develop something and runs quite fast. The only problem is finding components to do what you need. So for something like this all you need is a DLL unless you can get to the SetupDi API or find the USB pipes in the registry. Uh, that's hard to explain. Here's some test code I've been using with the 18F2455 (hidsdc.zip). hidsdc.h just finds and opens it like a file and writes to it. Just ignore the whole thread and reading, and it will look easier. If its' a non-HID device, I think it requires a driver, but Microchip probably provides that and an API for it. I'm still a mega newb at this PIC stuff, so I don't know a whole lot yet.

  9. #79
    Zac
    Zac is offline
    Constant Bitrate
    Join Date
    Feb 2004
    Location
    VA
    Posts
    192
    Don't expect a VB port - I'm not learning a language that I'll never use again. The relay controls uses Microchip's own USB driver and sample code and DLL. Once I finish this I'll just let ya know what commands to send using their code and that's basically all you need to do to make your own controller software for it (but again that's whats taking this so long to make - I'm trying to make sure that the software that comes with it is so capable and easily customizible that you won't have to worry about it.)

  10. #80
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Well, a DLL should work too. I think in VB, all you need to do is know how to prototype the functions and link with the .lib file just like in C. I just prefer bypassing the driver install part.

Similar Threads

  1. FAQ: Everything you need to know about your Xenarc
    By frodobaggins in forum LCD/Display
    Replies: 43
    Last Post: 10-24-2009, 05:44 PM
  2. WTB: Opus 120-150, DSSC controller, ITPS, USB TV, 256 Memory
    By clean customs in forum Classified Archive
    Replies: 17
    Last Post: 03-21-2005, 04:47 AM
  3. ATX shutdown controller kit / assembled for sale
    By Mastero in forum Classified Archive
    Replies: 22
    Last Post: 01-27-2004, 01:33 PM
  4. 7" touch overlays with usb controller any interest
    By pogue1000 in forum LCD/Display
    Replies: 5
    Last Post: 01-14-2004, 02:35 PM
  5. 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

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
  •