Connecting a USB-to-RS232 cable to a PIC

Discussion in 'General Electronics Chat' started by Dawud Beale, Dec 18, 2014.

  1. Dawud Beale

    Thread Starter Member

    Feb 10, 2012
    275
    7
    Hi everyone.

    I am looking to get a 9 Pin D-Sub female that will plug into a USB-toRS232(Male) cable. The USB end is connected to a PC. I will be looking to connect individual pins from the RS232 to circuit board that has a microcontroller (PIC). It will most likely be bare wires on the other end of the D-Sub. The idea will be to send a signal from a PC, via a USB to RS232, which then splits on the D-Sub onto various pins on the circuit board.

    I have previously had a D-Sub which allows you to solder wires into the back of the D-Sub, and also has a casing to close the D-Sub up once you have finished soldering the wires. I can't find this now, can anyone recommend one? I have been looking through RS and Farnell and there is all sorts of different options such as filtering etc. I don't know which one will be best for the purpose I am using it for

    Also i am looking for pins and sockets that can fit over a D-Sub male and female connector pin, the ones that you crimp onto wires, and also the crimping tool. Can anyone recommend anything?
     
    Last edited: Dec 18, 2014
  2. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
  3. MaxHeadRoom

    Expert

    Jul 18, 2013
    10,515
    2,369
    Are you talking a 9 pin D Back Shell? If so they are available from several sources.
    The crimp pins are also available from the likes of Digikey, but the N.A. made crimp tool is not cheap, you may find a cheaper version from H.K on ebay.
    Max.
     
  4. Dawud Beale

    Thread Starter Member

    Feb 10, 2012
    275
    7
  5. MrChips

    Moderator

    Oct 2, 2009
    12,429
    3,360
  6. Dawud Beale

    Thread Starter Member

    Feb 10, 2012
    275
    7
    I can't actually see from the image how this connects to an IC. I can see the USB to mini-USB connector from the PC to the chip, but how does the signal get from the chip to the IC you are connecting to?
     
  7. MrChips

    Moderator

    Oct 2, 2009
    12,429
    3,360
    You connect RXD, TXD and GND directly to the UART pins on your MCU.

    [​IMG]


    I prefer to use an adapter with a USB-B socket and then use a USB-A to USB-B cable from the PC to the adapter.

    You don't need RS-232. I do this all the time.
     
    Dawud Beale likes this.
  8. Dawud Beale

    Thread Starter Member

    Feb 10, 2012
    275
    7
    Hmm, ok I shall consider using this, thanks.

    But I would still find it useful to know how to find the other equipment I mentioned as I've used it in the past and found it useful.

    All together I need a D-Sub and back casing for it, pins and sockets, crimping tool for crimping the pins and sockets to thin wires, plus heat shrink and a heat gun to wrap insulator around the crimped part of the connector pin.

    If anyone can help me with any of that stuff, plus anything I need to know about different types and variants, that would be much appreciated
     
  9. Dawud Beale

    Thread Starter Member

    Feb 10, 2012
    275
    7
    No-one is able to help me locate this equipment?
     
  10. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,386
    496
    At work we have "stripped" de-9 connectors. The pins are imbedded in the plastic. The rear of the pin (what will be inside the connector body once we put the plastic shell over the connector) has a little cup where we drop a bit of melted solder and then heat the solder with solder gun, while solder is hot and "liquid", we jam a wire into the cup, then let the solder cool and affix the wire.

    Looking at digikey, they sell the d-sub with pins and the shell separately. They also sell d-sub without pins so you can install your own.
     
Loading...