← Back to Projects

Custom Arduino Sensor PCB

My first complete board: a schematic and a two-layer layout for an ultrasonic sensor and a status LED.

Summer 2026 · Design complete

  • KiCad
  • Arduino Nano
  • HC-SR04
  • Through-Hole PCB
  • Gerber
  • PCBWay

Key outcomes

  • Designed my first complete PCB from schematic capture through fab-ready Gerbers
  • Built a custom KiCad footprint for the HC-SR04 from measured dimensions
  • Routed a two-layer board with ground plane, DRC, and PCBWay export
Final 3D render of the ultrasonic sensor PCB

Project overview

KiCad PCB editor routed board

A compact two-layer through-hole PCB that seats an Arduino Nano, an HC-SR04 ultrasonic sensor on a custom four-pin footprint, a status LED, and the power/signal routing between them. Designed in KiCad and exported as Gerber + Excellon files for PCBWay.

System architecture

KiCad schematic

Ultrasonic echo/trigger pins and LED → Nano GPIO on the board. Power and ground distributed through the copper and ground plane.

Schematic
Nano GPIO, power, ultrasonic interface, and LED wired with manufacturable footprints assigned.
Custom HC-SR04 library
Symbol and footprint from measured sensor dimensions instead of a wrong generic connector.
Two-layer PCB
Signal and power routing, ground plane, DRC-clean layout.
Fab package
Gerber layers and Excellon drills ready for commercial fabrication.

Engineering decisions

DecisionAlternativeWhy
Keep the circuit simple on purposeDense multi-sensor boardMinimal circuit.
Custom HC-SR04 footprintStock pin header footprintCustom symbol and footprint from physical dimensions.
Through-hole for a first boardSMD-firstThrough-hole so assembly risk stays separate from layout learning.

Results and future work

Custom library parts. HC-SR04 symbol and footprint built for this board instead of forcing a generic header. Two-layer routed PCB. Signal routing, power, ground plane, and DRC-clean layout in KiCad. Fab package. Gerber and Excellon files generated for commercial fabrication (PCBWay).

Still open. Electrically simple by design; the point was process, not circuit novelty.

  • Populate and bring up the fabbed board.
  • Reuse this workflow on denser robotics and motor-driver PCBs.
Full engineering log

Motivation

Why I started this

What pulled me in, and what I wanted to get better at.

Why I built it

I had only ever built on breadboards. I wanted one complete pass through a real PCB workflow before the next robotics board got complicated.

What interested me

The circuit is intentionally simple. The work is schematic to footprint to two-layer layout to Gerbers you can send out.

What I wanted to learn

Custom libraries, copper layers, plated holes, solder mask, silkscreen, DRC, and a fab package. That pipeline is what I wanted to own.

System Overview

How the system fits together

A compact two-layer through-hole PCB that seats an Arduino Nano, an HC-SR04 ultrasonic sensor on a custom four-pin footprint, a status LED, and the power/signal routing between them. Designed in KiCad and exported as Gerber + Excellon files for PCBWay.

01

Schematic

Nano GPIO, power, ultrasonic interface, and LED wired with manufacturable footprints assigned.

02

Custom HC-SR04 library

Symbol and footprint from measured sensor dimensions instead of a wrong generic connector.

03

Two-layer PCB

Signal and power routing, ground plane, DRC-clean layout.

04

Fab package

Gerber layers and Excellon drills ready for commercial fabrication.

Data flow

Ultrasonic echo/trigger pins and LED → Nano GPIO on the board. Power and ground distributed through the copper and ground plane.

Control flow

Firmware can live on the Nano later. This project stops at a board you can fabricate and populate.

Final 3D render
KiCad 3D render of the finished ultrasonic sensor PCB

Fabrication-ready board in KiCad's 3D viewer after routing.

Engineering Breakdown

Broken down by discipline

Each block is the requirement, how that part works, what I checked, and what is still open.

01Electrical / Schematic

Electrical / Schematic

Goal

Capture a Nano + HC-SR04 + LED circuit with footprints that can actually be manufactured.

Design

Full schematic in KiCad. Power and signal nets to the ultrasonic header and status LED. Every part gets a real footprint before layout starts.

Challenges

  • Generic footprints lie about pin pitch and body size.
  • Easy to leave a net unassigned until DRC or 3D view catches it.

Iterations

  • Breadboard mental model.
  • Schematic with stock parts.
  • Custom HC-SR04 symbol once the stock connector was clearly wrong.

Final implementation

Schematic with Nano, custom ultrasonic symbol, LED, and manufacturable footprints ready for PCB.

Schematic
KiCad schematic for Nano, ultrasonic sensor, and LED

Schematic capture before layout.

02PCB Layout

PCB Layout

Goal

Route a clean two-layer board with a ground plane and a custom sensor footprint that matches the real HC-SR04.

Design

Compact through-hole layout. Custom footprint from measured dimensions. Signal and power traces, then copper pour / ground plane. DRC until the board was legal for fab.

Challenges

  • First time owning copper layers, plated through-holes, mask, and silkscreen as real constraints.
  • Footprint errors only show up when the physical sensor will not sit on the pads.

Iterations

  • Pre-trace placement and 3D check.
  • Routed copper and ground plane.
  • DRC cleanup before export.

Final implementation

Two-layer routed PCB with custom ultrasonic footprint, ground plane, and DRC-clean design.

PCB editor
KiCad PCB editor view of the routed board

Routed two-layer layout in KiCad.

Custom footprint
Custom HC-SR04 symbol and footprint editor

HC-SR04 library part from measured dimensions.

03Manufacturing Prep

Manufacturing Prep

Goal

Export a fab package a board house can build without guesswork.

Design

Gerber layers plus Excellon drills. Final check in the 3D viewer before packing files for PCBWay.

Challenges

  • Missing a layer or drill file is a silent fab failure.
  • 3D view catches mechanical collisions that DRC does not.

Iterations

  • Pre-trace 3D preview.
  • Post-route 3D and Gerber export.
  • Fab package for PCBWay.

Final implementation

Fabrication-ready Gerber and drill set generated from the finished layout.

Pre-trace 3D
KiCad 3D render before copper routing

Early 3D check before finishing traces.

Key Design Decisions

Design decisions

DecisionAlternativeWhy
Keep the circuit simple on purposeDense multi-sensor boardMinimal circuit. Learn the pipeline first.
Custom HC-SR04 footprintStock pin header footprintCustom symbol and footprint from physical dimensions.
Through-hole for a first boardSMD-firstThrough-hole so assembly risk stays separate from layout learning.
Notes on these decisions

Keep the circuit simple on purpose

First PCB: chase features or chase the workflow?

A denser board looks impressive and hides process mistakes. A small board makes library, layout, and fab mistakes obvious.

Minimal circuit. Learn the pipeline first.

Custom HC-SR04 footprint

Trust a generic connector footprint or measure the part?

Stock is faster until the sensor will not mount. Measuring once beats a respin.

Custom symbol and footprint from physical dimensions.

Through-hole for a first board

Through-hole or jump straight to SMD?

SMD is denser; through-hole is more forgiving for hand assembly and first-time fab.

Through-hole so assembly risk stays separate from layout learning.

Results & Validation

What held up

What worked in the end, what I can show for it, and where it's still limited.

Custom library parts

Symbol / footprint editor stills

HC-SR04 symbol and footprint built for this board instead of forcing a generic header.

Fab-ready board
Final fabrication-ready PCB 3D render

End state of the first complete PCB pass.

Two-layer routed PCB

PCB editor + final 3D render

Signal routing, power, ground plane, and DRC-clean layout in KiCad.

Fab package

Manufacturing export

Gerber and Excellon files generated for commercial fabrication (PCBWay).

Limitations

  • Electrically simple by design; the point was process, not circuit novelty.
  • Physical board bring-up and firmware validation come after fab returns.
  • No public GitHub repo linked yet.
Bench notes

The longer design notes, the timeline, and the revisions. The sections above are the system and what I measured.

Evolution

How it got here

The steps I can put in order from the notes. A clip opens from its still.

  1. Schematic stage
    Schematic stage

    Stage 1

    Schematic

    Nano, ultrasonic, LED nets with footprints assigned.

  2. Pre-trace 3D
    Pre-trace 3D

    Stage 2

    Custom library + placement

    HC-SR04 footprint and early 3D placement check.

  3. Final routed board
    Final routed board

    Stage 3

    Route + Gerbers

    Copper, ground plane, DRC, fab export.

Reflection

Looking back

What surprised me, what I'd redo, and questions I'm still chewing on.

What surprised me

  • Most of the learning was libraries and fab hygiene, not drawing wires.
  • 3D view caught issues DRC was happy to ignore.

What I would redesign

  • Lock mechanical keepouts earlier for the Nano USB and sensor cone.
  • Document a Gerber checklist so export is mechanical next time.

Future improvements

  • Populate and bring up the fabbed board.
  • Reuse this workflow on denser robotics and motor-driver PCBs.

Questions that emerged

  • When does a first board's simplicity stop being discipline and start being avoidance?
  • What should move to SMD once the through-hole fab loop is boring?

Notes

  • A simple board is still a real PCB if the Gerbers are honest.
  • Custom footprints are not polish. They are how the sensor actually mounts.
  • This is the pipeline I want before the next motor driver or robot board.