I have a DB-9 connector that needs to be mounted to an electronics enclosure. This hole for the DB-9 connector will be manually cut out.

Question: How can the DB-9 connector be secured to the enclosure?

I am using the following DB-9 connector. I need a DB9-to-DB9 connector, not DB9 connector on one side, and some other pins on the other side. Is there a better variant of it that has mounting screws or something?

enter image description here

  • 1
    \$\begingroup\$ Those are inline cable adapters and aren't intended to be mounted in a housing. Why are you using one of those? You can't solder anything to it inside the housing, you would have to connect a DB9 cable to it inside your housing. \$\endgroup\$ – JRE Apr 2 '17 at 19:44
  • \$\begingroup\$ @JRE My board inside the housing has a DB9 connector, and I think it is better to use a first DB9 cable to connect the board's DB9 to a DB9 inline cable adapter mounted on the housing, then a second DB9 cable to connect from the housing inline adapter to the PC. \$\endgroup\$ – Nyxynyx Apr 2 '17 at 19:49
  • \$\begingroup\$ @JRE [PC's DB9 Port] ---- [ inline connector on housing ] ----- [Board's DB9 port] \$\endgroup\$ – Nyxynyx Apr 2 '17 at 19:50
  • \$\begingroup\$ Usually those stand-off style clamp nuts can be removed and reinserted from the outside of the plate with the connector on the rear of the plate provided the plate thickness itself is not too large. You will need the appropriate sized nut driver. \$\endgroup\$ – Trevor_G Apr 2 '17 at 23:32

Those look like they are designed to join two cables together, not in a box or anything, just cable to cable.

Look for a bulkhead or panel mount connector or feedthrough. You might also be able to buy a panel-mount connector and short serial cable in one piece, sometimes called a panel-mount serial extension or similar.

You might have difficulty finding something at your usual supplier, as it's actually quite unusual to use a DB-9 cable inside the case of an appliance. More usual is to have a DB-9 cable outside, and something cheaper, smaller and more flexible inside - such as a ribbon cable.

  • \$\begingroup\$ If I get this bracket panel providing a DB9 to IDC (2x5 female) connection how should I connect 2 wires to the IDC female connector? Is there a IDC (2x5 male) connector with screwterminals on the other end to securely accept wires? \$\endgroup\$ – Nyxynyx Apr 2 '17 at 20:18
  • \$\begingroup\$ Or will something like 2X5 10P Dual Rows 2.54mm Shrouded IDC Male Header do the trick, assuming the pitch is the same? I assume I will insert the wires with ends stripped into the shrouded connector and close the connector. \$\endgroup\$ – Nyxynyx Apr 2 '17 at 20:19
  • \$\begingroup\$ @Nyxynyx Not to answer your question but when using IDC connectors, you do not strip the wires. The connector is designed to cut through the insulation. IDC = Insulation Displacement Connector. \$\endgroup\$ – DoxyLover Apr 2 '17 at 22:37

Perhaps there are some nuances I've missed here, but if not then:-

  1. Look at your example and do the same - simply remove the supplied screws and replace with longer ones and bolt through the enclosure. You can also get long versions of hex ended screws like these.
  2. Don't use screws. Glue it to the enclosure with something like epoxy or hot glue. If the enclosure wall is too thick to allow the exterior connector to mate, glue the adaptor with the bulk of it on the outside rather than the inside.

Wacky idea. Does it need a connector at all? There is also the possibility of connecting a cable only to the internal DB-9 connector. Then simply feed the cable through the enclosure wall. Figure out some form of strain relief. You're then free to do what ever you want at the loose end. No one said that equipment can't have a flying lead. Most of it used to, and this is sometimes a practical solution.

  • \$\begingroup\$ Just noticed that replacing with longer versions of the screws may just work! Thanks wil ltry that out! \$\endgroup\$ – Nyxynyx Apr 2 '17 at 21:15

The devices you have pictured are gender changers and not intended for the use you are looking for. They will work for your application but, you will also need to be creative, which is why I believe you should use a DB9 that has solder pins on one side. Wire what ever you have in your enclosure directly to the solder side of the DB9. If that is not possible, make a short cable inside your enclosure. Be mindful of your connecting cable, if it is a null cable then make sure your internal cable is a straight through of you will cancel the null of the external serial cable.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.