In-stock items handed to the courier within 24-48 hours · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark guided builds
  • Electrolark lessons
  • Electrolark circuit tools
  • Electrolark part library
  • Project ideas on Electrolark

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy

© 2026 Geekobot. All rights reserved.

+91 91810 15606 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

Product directory · Sitemap

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,946 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,347 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,400 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV2,960 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,319 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,322 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers598 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries921 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors660 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive470 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs576 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays1,201 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables2,653 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping122 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test794 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics195 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits336 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts296 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio145 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Prototyping & Wiring
  4. ›D-Sub (DE-9, DA-15, DB-25) and USB Type-A Connectors

Buying guide · Intermediate · 3 min read

D-Sub (DE-9, DA-15, DB-25) and USB Type-A Connectors

PCB Mount, Solder Cup and Through-Hole Types

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerD-sub basicsPCB mount or solder cupUSB Type-A socketsQuick referenceCommon mistakesFAQsParts and next steps
Short answer

D-sub (often called DB9) connectors are the classic serial and legacy ports; USB Type-A sockets are the standard host port. Choose the pin count (9, 15 or 25), male or female, and the mounting: right-angle PCB mount or solder cup for wires. Check the gender carefully: the plug is male (pins) and the socket is female (holes).

Key specs at a glance

D-Sub
9, 15 and 25 pin; male and female; PCB mount and solder cup; XKB Connectivity
USB Type-A
Through-hole female sockets from XKB Connectivity and Hroparts
Mounting
PCB mount (right angle) and solder cup for wires
01

D-sub basics

The D-sub shell has a D shape so it can only plug in one way. DE-9 (called DB9) has 9 pins and is used for RS-232 serial and some industrial devices; DA-15 has 15 pins and is used for game ports and some CAN and encoder devices; DB-25 has 25 pins for legacy parallel and serial. The male connector has pins, the female has sockets, and the pin numbering is mirrored between them. For serial links see RS-485 and RS-232.

02

PCB mount or solder cup

PCB mount connectors solder directly into the board and sit at right angle to the edge, which is neat for devices with a port on the panel. Solder cup connectors have small cups where you solder each wire, used for cables. Use the data sheet to count pins from the correct side; double-check the numbers on the connector body before you wire.

03

USB Type-A sockets

A USB Type-A female through-hole socket is the standard host port on a board. Its four main pins are 5 V, D-, D+ and ground. Through-hole mounting with shell tabs gives a strong mechanical joint when the plug is pulled. For a device that provides 5 V to a USB drive or cable, add a PTC fuse and keep D+ and D- as a short twisted pair if you can. See USB cables and connectors.

04

Quick reference

Check the pin numbers against the data sheet and your wiring diagram.

ConnectorPinsCommon use
D-sub DE-99RS-232 serial, industrial devices
D-sub DA-1515Encoders, legacy game and control ports
D-sub DB-2525Legacy serial and parallel
USB Type-A female4 (plus shell)Host ports and power
D-sub DE-9
Pins:
9
Common use:
RS-232 serial, industrial devices
D-sub DA-15
Pins:
15
Common use:
Encoders, legacy game and control ports
D-sub DB-25
Pins:
25
Common use:
Legacy serial and parallel
USB Type-A female
Pins:
4 (plus shell)
Common use:
Host ports and power
05

Common mistakes to avoid

  • !Mixing up male and female.
  • !Counting pins from the wrong side.
  • !Connecting RS-232 levels straight to a microcontroller.
  • !Leaving a USB port unprotected from shorts.
  • !Using a solder cup type where PCB mount is needed.
06

Frequently asked questions

What is DB9?

A 9-pin D-sub connector, correctly called DE-9, used for serial ports.

Male or female?

Male has pins and female has sockets. Check the gender at both ends.

Can I connect RS-232 to an ESP32?

No. RS-232 levels are far above 3.3 V; use a level converter such as MAX3232.

What are USB's four pins?

5 V, D-, D+ and ground.

PCB mount or solder cup?

PCB mount for panel connectors on a board, solder cup for cable assemblies.

Parts for this guide

  • XKB Connectivity X0109FC2W1 D-Sub Connector, 9-Pin Female, PCB Mount
    ₹85View
  • XKB Connectivity X0109WT7BL1 D-Sub Connector, 9-Pin Male, PCB Mount
    ₹26View
  • XKB Connectivity X0125FT7B1 D-Sub Connector, 25-Pin Female, PCB Mount
    ₹37View
  • XKB Connectivity X0215FT7BL1 D-Sub Connector, 15-Pin Female, PCB Mount
    ₹31View
  • XKB Connectivity X0415WC2W1 D-Sub Connector, 15-Pin Male, Solder Cup
    ₹135View
  • XKB Connectivity U221-041N-1BR69-S5 USB Type-A Female Connector, Through Hole
    ₹31View
  • XKB Connectivity U233-091N-1BLPC15-F2 USB Type-A Female Connector, Through Hole
    ₹13View
  • Hroparts U-A-24DD-W-1 USB Type-A Female Connector, Through Hole
    ₹20View

🎓 Keep learning on Electrolark

  • Learn the topicFree lessons with simulators and quizzes

Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans

Keep learning

Component guideIntermediateRS-485 and RS-232 ModulesRS-485 and RS-232 carry UART serial data over longer cables than plain TTL.3 min read · IoT & WirelessBuying guideBeginnerUSB Cables and ConnectorsMost upload problems blamed on a board are really the USB cable.3 min read · Prototyping & WiringComparisonBeginnerElectronics ConnectorsIdentify connectors: JST XH, PH, SH and GH by pitch, Dupont headers, XT30, XT60 and XT90 plugs, screw terminals and barrel jacks, with current ratings.3 min read · Prototyping & Wiring

Sources

  • XKB Connectivity and Hroparts connector data sheets
  • TIA-232 serial standard summary

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerD-sub basicsPCB mount or solder cupUSB Type-A socketsQuick referenceCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide8 items · ₹378

XKB Connectivity X0109FC2W1 D-Sub Connector, 9-Pin Female, PCB Mount · XKB Connectivity X0109WT7BL1 D-Sub Connector, 9-Pin Male, PCB Mount · XKB Connectivity X0125FT7B1 D-Sub Connector, 25-Pin Female, PCB Mount · XKB Connectivity X0215FT7BL1 D-Sub Connector, 15-Pin Female, PCB Mount · XKB Connectivity X0415WC2W1 D-Sub Connector, 15-Pin Male, Solder Cup · XKB Connectivity U221-041N-1BR69-S5 USB Type-A Female Connector, Through Hole · XKB Connectivity U233-091N-1BLPC15-F2 USB Type-A Female Connector, Through Hole · Hroparts U-A-24DD-W-1 USB Type-A Female Connector, Through Hole

Ask the Community

Ask a question