Page 11 of 55 FirstFirst ... 23456789101112131415161718192021 ... LastLast
Results 101 to 110 of 541

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

  1. #101
    Maximum Bitrate kiltjim's Avatar
    Join Date
    Feb 2004
    Location
    PA, USA
    Posts
    805
    Quote Originally Posted by lez
    I know its possible(from looking at pc control), just not figured it out yet.
    Do some research for the program you know how to program in. I'm most familiar in VB, and now I'm moving to .NET, so I had to relearn most everything. But I know of resources out there that will either have RS-232 support, or a library file that you can call. Controlling the serial port through .NET is pretty easy.

    I don't know what this card is gonna require, but on my prototype I was sending commands like "%AMP, 1" this would wake up my microprocessor (%) read the list to see which pin the amp was on, and turn it on (, 1).

    It works pretty well. A button in VB would just send the code through the serial port. See if you can find some source, maybe I can find the same file I used as a background for my interface.
    2000 Subaru OBS

    Dell P3 @ 900 Mhz
    7" Lilliput TS w/DigitalWW in-dash mount
    80GB External HD

    I am Zero Bitrate....

  2. #102
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by kiltjim
    Is this board going to be capable of digital outputs? Other than driving relays?
    Is this going to be possible? Like instead of hooking up one of the outputs to relay hook it up to a transistor? Is this going to be too much for the board?
    Yes you can drive other circuit, just dont exceed the maximum limit of the relay driver. The relay drive is ULN2803A which can sink upto 500mA each...more than enough to drive a relay coil.

    Im not sure if you can switch the output fast enough such that it apears dimmed. The maximum switching is about 200Hz...most likely more.



    Quote Originally Posted by kiltjim
    I'm working on something that will send some commands using VB.NET. Some simple buttons and all they do is send a command. Once this card comes out though, I'm going to have to change all the commands, but all you really need is a nice little .DLL thats allows you to access the serial port, or a USB port, or whatever.
    That be cool, Ill need a simple interface...something like a skinable program which have :

    For the relays :
    LEFT/RIGHT UP/DOWN electric window button
    LOCK/UNLOCK door button
    BOOT release button
    Rear window heater button
    ...etc

    For the digital inputs :
    Reverse camera
    Movie/VIS lockout
    Bonnet open
    ...etc

    For the Analog inputs :
    Car voltmeter
    PC Temperature
    Rear bumper distance sensor
    ...etc

  3. #103
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by lez
    well I was wanting to make a phone controlled car alarm

    I have software in testing (sms) stage at moment, looks ugly but works, I can unlock/lock doors etc with a text meassage, now want to build in blutooth so I can unlock car from a menu option on my phone.
    Sounds cool...how about the security? or is it just only from your phone it will accept the commands?

  4. #104
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by lummox
    Vaguely remember reading in the thread that the max current for a relay was limited, is this the case? If so would controlling a 100amp relau with a reed relay be feasable?
    The 500mA output should drive a relay with no problem. The relay Im using for test is 30/40A relays and drain about 150mA. I dont know about 100A relays though as I have never seen them.

    As long as the relay coil current doesnt exceed 500mA then all is fine.

  5. #105
    Maximum Bitrate kiltjim's Avatar
    Join Date
    Feb 2004
    Location
    PA, USA
    Posts
    805
    Quote Originally Posted by Ricky327
    For the relays :
    LEFT/RIGHT UP/DOWN electric window button
    LOCK/UNLOCK door button
    BOOT release button
    Rear window heater button
    ...etc
    For this, what type of commands does the board use to turn on/off an output?

    As for the inputs, what would a typical output from the boards look like? Maybe I can throw something together before you get everything finalized.

    The program I am working on doesn't make allowances for skinning, but I'm sure I could learn. Maybe piggyback on the frodoskinner, see if I can get it to work for mine.
    2000 Subaru OBS

    Dell P3 @ 900 Mhz
    7" Lilliput TS w/DigitalWW in-dash mount
    80GB External HD

    I am Zero Bitrate....

  6. #106
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    This turn relay 1 OFF :
    $RELAY 1,0

    This turn it ON:
    $RELAY 1,1

    Set ALL the relay to "10001110" pattern
    $RELAY A,10001110

    The card status format :
    $STATUS : 10011101,10010110,3FF,100,23A

    The first 8-bits is all the current relay pattern, the second is all the digital inputs pattern. And the last 3 set of 3HEX are the ADC values. 3FF is the maximum value which equal to 16V.

  7. #107
    Maximum Bitrate kiltjim's Avatar
    Join Date
    Feb 2004
    Location
    PA, USA
    Posts
    805
    Quote Originally Posted by Ricky327
    This turn relay 1 OFF :
    $RELAY 1,0

    This turn it ON:
    $RELAY 1,1
    Easily done.

    Quote Originally Posted by Ricky327
    Set ALL the relay to "10001110" pattern
    $RELAY A,10001110
    Would this mean Relay 1 is on, relay 2,3,4 are off, relay 5,6,7 are on, and relay 8 is off?

    Quote Originally Posted by Ricky327
    The card status format :
    $STATUS : 10011101,10010110,3FF,100,23A

    The first 8-bits is all the current relay pattern, the second is all the digital inputs pattern. And the last 3 set of 3HEX are the ADC values. 3FF is the maximum value which equal to 16V.
    I htink I could handle this, however, it is going to be a little difficult to make this dynamic. For instance, if the user wants to make input 1 = car voltage, etc. Maybe an option box....

    Alright, give me a little while, I might be able to bump something out.
    2000 Subaru OBS

    Dell P3 @ 900 Mhz
    7" Lilliput TS w/DigitalWW in-dash mount
    80GB External HD

    I am Zero Bitrate....

  8. #108
    Low Bitrate
    Join Date
    Jan 2004
    Posts
    100
    Cool, thanks for the reply!

    Next question...

    As I stated in my original post I wanna use two of the three analogue inputs to measure the voltage of the 2 batteries and adjust the state of the relay accordingly. Will this simply be a case of plugging a line from each of the batteries +ve terminal, or is a reference (ground) required too?

    Am I correct in assuming that implementing the program i wanna run will be a soft- rather than hard-ware issue?

    Are you gonna be selling pre-etched PCBs or will we have to do it ourselves?

    And finally...

    Any ETA for this?

    Thanks a lot

  9. #109
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Would this mean Relay 1 is on, relay 2,3,4 are off, relay 5,6,7 are on, and relay 8 is off?

    Sorry I should have made it clearer.

    The format is RELAY A,[76543210]
    So $RELAY A,10001110

    Would mean :
    A = Control ALL relays
    Relay 7 = ON
    Relay 6,5,4 = OFF
    Relay 3,2,1 = ON
    Relay 0 = OFF

    The "$" character get the controller attention that a command is about to be entered. Each command must then be followed by a CR/LF character to indicate a command had been entered.

    The command wont change much on the final version. The $HELP, $INFO, $STATUS command are already done.

    Im also adding :
    $DEFAULTRELAY = Set the relay default setting. On powerup/reset this relay pattern are used to set the relays.

    $BAUDRATE = Set the rate, at the moment its running at 115200.

  10. #110
    Maximum Bitrate mushin's Avatar
    Join Date
    Aug 2004
    Location
    SE Michigan
    Posts
    750
    Hey, I just read up on this thread (I'm slow ). This looks awesome!

    About $25 for parts was mentioned, but I assume this doesn't include the PCB? What are your thoughts on the PCB? It seems like it'd make sense for us to get them made as a group, since per unit costs go down greatly with quanitity.

    I can also code a c/c++ dll to talk to the board, but it sounds like god_of_cpu has that covered in spades.

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
  •