Page 5 of 55 FirstFirst 123456789101112131415 ... LastLast
Results 41 to 50 of 541

Thread: Anyone interested in serial controlled Relay/Input card?

  1. #41
    Maximum Bitrate Danceheaven's Avatar
    Join Date
    May 2002
    Location
    Essex, UK'er
    Posts
    664
    Quote Originally Posted by kingtut
    Ricky, "no more ideas" , you mean you are not going to give me a button wherby if pressed the windows go up and the AC kicks in at a preset temp! oh....well....
    That will be all based on the software controlling the card plus the actual wiring and where it connects too, also dont forget that just because the card has 8 relays doesnt mean 8 outputs think of it more or 8x8 = 64 if the card can source enough current then we could have 64 outputs, am i right in saying this ricky?
    Also if this is the case then i would fit a 8 way connector on the card that is connected to the drive circuitry before the relays that way we could just use the signal lines rather than relay outputs, you could fit jumpers to enable the relay outputs or diable them for example
    Co Develper of A.I.M.E.E Automotive Intelligent Multimedia Entertainment Engine
    www.aimee.cc

  2. #42
    Self proclaimed spoon feeder TruckinMP3's Avatar
    Join Date
    Jun 2002
    Location
    Colorado
    Posts
    2,742
    Is it ready? Would someone build them that I could purchase? What OS would the software work on?

    Thanks
    TruckinMP3
    D201GLY2, DC-DC power, 3.5 inch SATA

    Yes, you should search... and Yes, It has been covered before!

    Read the FAQ!

  3. #43
    Constant Bitrate Jeep's Avatar
    Join Date
    May 2004
    Location
    Sweden
    Posts
    153
    Check this controler/relay: Parallel Relay control for XP coming soon

  4. #44
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Whenever this does get done, as Ricky mentioned before, I'll be writing an open source windows dll plugin for it in C++ that can be called from any language. I already have a plugin format for relay controls that I used for a parallel port relay control for the output portion and is a super set of the girder plugin format, so it will be compatible with girder.

    The plugin will be just a light wrapper over the actual hardware functions, it will be up to the calling program to implement the more specific things like synchronized setting off of multiple relays.

    I will also release a windows service type of program that can run in the background and allow more direct access to the device without writing code.

    I am also writing a commercial software program. This is what the plugin format was initially made for. The program allows you to map each relay to a relay set, when the relay set is triggered, it will set each relay to either off or on, whichever you specify, and keep at that state until a user spedified timeout for each relay is reached or you manually reset the relay set. The program will also use girder plugins, so the input portion of this device can be used to trigger events in the program.
    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.

  5. #45
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Oh! I have another idea. Can you add an option to make it send like a 1 or 2 byte status report when an I/O changes state? I think it would give it a faster response time and cut down on traffic. Polling is outdated IMO. I'm really making this complicated huh?

  6. #46
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Well according to Rick327, the current idea is that the hardware will send out status at 10-100Hz
    Example :
    $STATUS 10011001,10111001,1F,10,11,FD
    $STATUS 10011011,10111011,1F,11,11,F1
    $STATUS 10010001,10111011,1F,12,11,F0
    I will be writing the plug-in to use a seperate thread for actually reading data from the serial port so the program will never lock because it is waiting on or reading data from the serial port, it will also only try to read data once it is recieved, although at 100Hz it should recieve data more or less continuously.

    Since we need to be reading the data for the analog input ports at a pretty high refresh rate to calculate things i.e. 0-60 from a speed sensor, this is probably the best way to do things and adding the status of the relays to the status of the analog input ports should be negligible.

    I will have some sort of event driven mechanism that will be triggered when either an analog input changes or the relay status changes etc sent out to the host program of the plugin. This will be calculated by the plugin, i.e. if the last value was 120 and the new value as read from the STATUS message is now 125 an event will be triggered.
    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.

  7. #47
    Newbie
    Join Date
    Jul 2004
    Posts
    9
    I just got through reading this and I'm wondering to myself why so complicated? It seems like this is most likely going to be a get or set event right? So why not use the 8 bit nature of the pic to your advantage and make everything a bit masked event. I.E. the first 6 bits represent the io device. Bit 7 is a get or set and bit 8 would be the state. This gives you access to 64 io pins and does not require more than 1 byte per get or set. On a get for a device the reply could be the first 6 bits representing the device number and a second byte representing the state of the device. This would encompass both the digital status and analog as well.

    Now you have a loop the polls each value and when a value has changed you send the device byte and the state byte out the serial port. Then a serial interupt would handle all incoming serial requests and process them accordingly. This would also increase the throughput of your application up to 7 times what I saw was possible.

  8. #48
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by pauldy
    I just got through reading this and I'm wondering to myself why so complicated? It seems like this is most likely going to be a get or set event right? So why not use the 8 bit nature of the pic to your advantage and make everything a bit masked event. I.E. the first 6 bits represent the io device. Bit 7 is a get or set and bit 8 would be the state. This gives you access to 64 io pins and does not require more than 1 byte per get or set. On a get for a device the reply could be the first 6 bits representing the device number and a second byte representing the state of the device. This would encompass both the digital status and analog as well.

    Now you have a loop the polls each value and when a value has changed you send the device byte and the state byte out the serial port. Then a serial interupt would handle all incoming serial requests and process them accordingly. This would also increase the throughput of your application up to 7 times what I saw was possible.

    The post you read is outdated

    Post #46 already mentioned that and alot of things had already changed and not being posted in the thread...they go through PM


    I guess god_of_cpu should have mentioned what this exactly means.

    Example :
    $STATUS 10011001,10111001,1F,10,11,FD


    This is the format :
    $STATUS [RELAYS],[DIGITAL INPUTS],[ADC0],[ADC1],[ADC2],[ADC3]

    The first 8 bit binary on the left represent the current status of the 8 relays. The second set of binary represent the 8 digital inputs and the last 4 HEX represent the read analog values. This whole STATUS string is updated at 10Hz - 100Hz at always a fixed string lenght.

    The status of the relays and the digital inputs is reprented in 8-bits binaries purely for human readability for easy diagnostics. The analog values is left presented in HEX, it can be made into decimal by Im not gonna bother.


    Changing the state of the relays is done by sending the command as follow...it can be in this format :

    Individual relay control :
    $RELAY 0,1 = Turn RELAY 0 ON
    $RELAY 1,0 = Turn RELAY 1 OFF

    Simultanous relay control :
    $RELAY A,10100111 = Turn all 8 relays ON/OFF as defined by the 8 bit binary

    Again its done like this for easy operation in hyperterminal for diagnostics or experiments. Although pure binary format can be done for speed and simplicity but using the relay board with binary format can be difficult in some situations...take it as NMEA against SIRF protocol

    Still nothing is 100% set at what format it should be at.

  9. #49
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by Curiosity
    Oh! I have another idea. Can you add an option to make it send like a 1 or 2 byte status report when an I/O changes state? I think it would give it a faster response time and cut down on traffic. Polling is outdated IMO. I'm really making this complicated huh?
    Its better to update all the status in one string. The analog values need to be updated in a constant rate anyway so why not update the status of the relay and digital inputs with it. The post above explain all that



    Quote Originally Posted by Jeep
    Check this controler/relay: Parallel Relay control for XP coming soon
    Thats a nice piece of kit. Only if it was tailored made for car PC then I would have bough that instead. The size of the board is also a little too big for what it is.



    Quote Originally Posted by TruckinMP3
    Is it ready? Would someone build them that I could purchase? What OS would the software work on?

    Thanks
    Its all on paper together with abit of PIC code Ill publish the whole design, schematics, PCB, source code and the documentation when done. It can be built on strip-board if you like. The idea is so that most people in here can build it...parts are easy to souce. Programming the PIC maybe the only problem for some. Danceheaven and god_of_cpu will write the software for it

  10. #50
    Maximum Bitrate DjBac's Avatar
    Join Date
    Jun 2004
    Location
    GREECE/Athens
    Posts
    702
    Is it possible when you go over 20km/h to auto-lock the doors?? But it should then know that doors are locked so that when you stop ie. at a stoplight it shouldn't lock again!! Is this possible?

Similar Threads

  1. Ewww sound card + video card on dual pci mini-itx reiser card = audio interference
    By psyclobe in forum Software & Software Development
    Replies: 7
    Last Post: 01-23-2008, 01:59 AM
  2. anybody tv/fm card troubles
    By marsjell in forum Software & Software Development
    Replies: 1
    Last Post: 09-01-2005, 07:08 AM
  3. Via Mini-ITX Epia 5000 serial port not working
    By vash in forum General Hardware Discussion
    Replies: 2
    Last Post: 08-13-2002, 08:48 PM
  4. help - video card problems
    By Cliff in forum General Hardware Discussion
    Replies: 4
    Last Post: 04-15-2002, 05:25 PM
  5. 2 db-9 serial ports PCI and credit card remote
    By moahdib in forum Classified Archive
    Replies: 0
    Last Post: 07-24-2001, 11:41 PM

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
  •