> ## Documentation Index
> Fetch the complete documentation index at: https://learn.pcbcupid.com/llms.txt
> Use this file to discover all available pages before exploring further.

> USB-A male breakout board exposing VBUS, GND, D+, and D- pins on a PCB to prototype dongles, macro pads, and USB devices that plug into a host.

# USB-A Male

export const ShopHeader = ({title, url}) => <div style={{
  display: 'flex',
  justifyContent: 'flex-end',
  alignItems: 'center',
  width: '100%',
  marginBottom: '1rem',
  gap: '20px'
}}>
    <a href={url} target="_blank" rel="noopener noreferrer" style={{
  display: 'inline-flex',
  alignItems: 'center',
  backgroundColor: '#00b894',
  color: '#fff',
  padding: '8px 18px',
  borderRadius: '8px',
  textDecoration: 'none',
  fontSize: '0.95rem',
  fontWeight: 600,
  whiteSpace: 'nowrap',
  flexShrink: 0
}}>
      Shop now
    </a>
  </div>;

export const ImgGallery = ({images, modelUrl}) => {
  var [active, setActive] = useState(0);
  var [show3D, setShow3D] = useState(false);
  useEffect(function () {
    if (show3D || images.length <= 1) return;
    var t = setTimeout(function () {
      setActive(function (p) {
        return (p + 1) % images.length;
      });
    }, 3500);
    return function () {
      clearTimeout(t);
    };
  });
  var img = images[active];
  return <div style={{
    position: 'relative',
    background: 'linear-gradient(to bottom, #fff 0%, #fff 80%, #f8f8f8 100%)',
    borderRadius: '32px',
    border: '1px solid rgba(0,0,0,0.08)',
    overflow: 'hidden',
    marginTop: '0.75rem',
    marginBottom: '1.5rem'
  }}>
      <div style={{
    position: 'relative',
    height: '450px',
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
    background: '#fff',
    padding: '1rem'
  }}>
        {show3D && modelUrl ? <div ref={function (el) {
    if (!el || el._mv) return;
    el._mv = true;
    var s = document.createElement('script');
    s.src = "https://ajax.googleapis.com/ajax/libs/model-viewer/4.2.0/model-viewer.min.js";
    s.type = "module";
    s.onload = function () {
      var mv = document.createElement('model-viewer');
      mv.setAttribute('src', modelUrl);
      mv.setAttribute('camera-controls', '');
      mv.setAttribute('auto-rotate', '');
      mv.style.width = "100%";
      mv.style.height = "100%";
      mv.style.backgroundColor = "#f8f8f8";
      el.innerHTML = "";
      el.appendChild(mv);
    };
    document.head.appendChild(s);
  }} style={{
    width: "100%",
    height: "100%"
  }} /> : <img src={img && img.url} alt={img && img.label} loading="lazy" style={{
    maxWidth: '100%',
    maxHeight: '100%',
    objectFit: 'contain',
    borderRadius: '8px'
  }} />}
      </div>
      <div style={{
    display: 'flex',
    justifyContent: 'center',
    gap: '12px',
    padding: '1rem',
    background: '#eee',
    borderTop: '1px solid rgba(0,0,0,0.08)'
  }}>
        {images.map(function (img, idx) {
    return <button key={img.id || idx} onClick={function () {
      setActive(idx);
      setShow3D(false);
    }} style={{
      padding: '0.6rem 1.5rem',
      borderRadius: '12px',
      border: !show3D && idx === active ? '1px solid #00b894' : '1px solid rgba(0,184,148,0.4)',
      background: !show3D && idx === active ? '#00b894' : '#fff',
      color: !show3D && idx === active ? '#fff' : '#000',
      cursor: 'pointer',
      fontSize: '0.75rem',
      fontWeight: 700,
      textTransform: 'uppercase',
      fontFamily: 'inherit'
    }}>
              {img.label}
            </button>;
  })}
        {modelUrl ? <button onClick={function () {
    setShow3D(true);
  }} style={{
    padding: '0.6rem 1.5rem',
    borderRadius: '12px',
    border: show3D ? '1px solid #00b894' : '1px solid rgba(0,184,148,0.4)',
    background: show3D ? '#00b894' : '#fff',
    color: show3D ? '#fff' : '#000',
    cursor: 'pointer',
    fontSize: '0.75rem',
    fontWeight: 700,
    textTransform: 'uppercase',
    fontFamily: 'inherit'
  }}>
            3D VIEW
          </button> : null}
      </div>
    </div>;
};

<ShopHeader title="USB-A Breakout (Male)" url="https://shop.pcbcupid.com/product/gb003/" />

<ImgGallery modelUrl="https://raw.githubusercontent.com/pcbcupid/pcbcupid-hardware-libraries/main/pcbcupid_3dmodels/glb/usb-a-male.glb" images={[{url: "https://files.pcbcupid.com/Documentation/Boards/Breakouts/USB-A-MALE/USB-A-MALE-ILLUSTRATION.avif", label: "ILLUSTRATION VIEW", id: "illustration"}, {url: "https://files.pcbcupid.com/Documentation/Boards/Breakouts/USB-A-MALE/USB-A.avif", label: "BOARD VIEW", id: "board"}]} />

A [USB-A MALE](https://shop.pcbcupid.com/product/gb003/) is a small PCB that takes a standard USB-A male plug (like the plug end of a USB cable) and “breaks out” the 4 (or sometimes 5) USB pins — VBUS (5 V), D+, D-, GND (and sometimes shield / shell) — to easily accessible 2.54 mm (0.1″) spaced solder pads or header pins.

## Pin Configuration

* **VBUS / 5V** : +5V power from USB
* **D-** : USB Data Negative
* **D+** : USB Data Positive
* **GND** : Ground

## Key Features

* Exposes standard **USB-A male pins** (VBUS, D+, D-, GND) to **easily solderable headers/pads**.
* Supports **5V power supply** for microcontrollers, sensors, and small electronics.
* Provides access to **USB data lines** for prototyping or debugging USB communication.
* **Compact and breadboard-friendly** design for DIY projects and enclosures.
* Eliminates the need to **cut and splice USB cables**, giving a clean, reliable connection.
* Can be used for **custom USB devices, IoT boards, and power distribution**.

## Applications

* Used in **industrial test benches** to power or interface microcontrollers and diagnostic tools via USB.
* Integrated into **control panels** for providing stable 5V supply to embedded modules or data-logging devices.
* Helps in **firmware flashing, debugging, and maintenance** of industrial controllers through USB access points.
* Utilized in **prototype development** for industrial IoT (IIoT) devices, sensors, and gateways.
* Used in **production line fixtures** where a reliable USB connector is needed for repeated plugging/unplugging.

<Warning title="⚠️ Precaution Note">
  - Ensure the USB port can safely supply the required 5V to avoid overheating or port damage.
  - Never short VBUS (5V) to GND, as this can damage both the breakout and the USB source.
  - Handle D+ and D- data lines carefully—long or loose wires can cause noise or communication errors.
  - Use proper soldering and strain relief to prevent connector loosening or accidental pull-outs.
</Warning>
