RS232 Serial Input/Output

Discussion in 'The Projects Forum' started by mystame, Dec 6, 2013.

  1. mystame

    Thread Starter New Member

    Dec 6, 2013
    3
    0
    Hiya,
    I've created myself a task of creating a "Cart Control" to play music on a DJ software package that uses RS232 (COM1) interface on my PC, see below for what PC is expecting, my question is what do I need to create a circuit board that will allow me to do this?

    this will be my first circuit board and really don't know where the start, but can say...

    • "Cart Control" is a momentary push button
    • "Player Display" will be a LED (possibly fitted in switch)
    • will be connected to PC via serial port
    Many Thanks in advance....



    [​IMG]
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    The way a problem like this is solved. Is by using some sort of microcontroller application. You can get readymade controller board quite cheap. And then it will be up to you to do the programming
     
  3. mystame

    Thread Starter New Member

    Dec 6, 2013
    3
    0
    I'm quite happy to design a PCB, but have no experience of programming an IC, I know it needs Ground, TX and RX for serial connection, 4 inputs (momentary push switch's) and 4 outputs (LED's), I'm not even sure what sort of IC I'll need to use...

    any help would be great...
     
  4. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    A microcontroller is the usual go to for such a task. Since you aren't well versed in using them, to get this project done, I'd recommend you use an Arduino (it is a microcontroller that uses a user-friendly interface/programming language to abstract away the need to know the inner workings of a microcontroller).

    Most microcontroller families have hardware UART capabilities that interfaces rather easily with the serial port, though the signals from the RS-232 are not tolerant to microcontrollers, so, you'll need a converter of some sort (e.g. MAX232).

    There are USB to serial converters for pretty cheap that emulate (to the computer) a serial port connection that can be used (by software) in the same manner as the actual serial port. This is a little more future proof than using the serial port, but it's your show...

    Edit: Something like this
     
    Last edited: Dec 19, 2013
  5. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,392
    497
    What they said.
    A USB hookup to PC, nice, easy, trouble free.
     
  6. DickCappels

    Moderator

    Aug 21, 2008
    2,654
    632
  7. mystame

    Thread Starter New Member

    Dec 6, 2013
    3
    0
    Hiya,
    thanks for your replies...

    I'm looking at serial vs USB as its held in by thumb screws and PC is mounted in a flight case, that maybe several meters away.

    whatever i create needs to be seen as a "RS232 based controller" to software...

    Do you know anyone who could program a PIC for me?

    also is there a program that can act as a virtual com port and report what commands are being sent out to it?
     
  8. Little Ghostman

    Member

    Jan 1, 2014
    294
    97
    which country are you in?
     
  9. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
     
  10. DickCappels

    Moderator

    Aug 21, 2008
    2,654
    632
    Maybe you don't need to program anything if all you need is a logic level to drive your cart machine in response to a command via USB or Serial.

    There are chips that take in USB and output logic levels that can be used to do things directly. There are also chips that do that with RS-232. No programming required at the peripheral end, but the host software needs to know which bits to set in the peripheral.

    And while at it, how about using a parallel printer port?
     
  11. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,548
    2,373
    Does your PC have a 9 pin D RS232 socket?
    What are the other options in the TYPE box, it shows RS232 at present?
    As for RS232 testing and simulation s/w there is Hexcom tool http://www.rs232pro.com/
    Max.
     
  12. write_for_projects

    New Member

    Jan 7, 2014
    1
    0
Loading...