Skip to the content
2 layers91.4 × 60.9 mmUsbcounter, the printed circuit board in 3D

Open-source USB frequency counter

Size
91.4 × 60.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
49
Nets
71
Pads
203
Tracks, vias
387, 64
Pours
4
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
26 Jul 2019
Updated
21 Oct 2023

Overview

Usbcounter is an open-source printed circuit board by swharden, from the swharden/USB-Counter repository on GitHub, published under the MIT licence. It is a 2-layer board of 91.4 × 60.9 mm with 49 parts on 71 nets, routed with 387 tracks and 64 vias.

It is built around the FT230XS-R, MMBT2222A and UJ2-MIBH-G-SMT-TR. Its parts include 14 resistors, 12 capacitors, 7 ICs, 4 diodes and 4 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

USB Counter

This project contains the design files and notes for a USB counter. By populating one of two input paths with components this device can serve as a sensitive frequency counter (with a small-signal amplifier front-end) or a pulse counter (with a simple 50 ohm load at the front-end). Measured frequency is sent to the computer over USB, but can also be displayed on an optional 7-segment display module.

LED Display

In addition to serial output, this counter can optionally interface a SPI-driven 7-segment display (based on a MAX7219). These display modules are about $4 on Amazon and allow this counter to be used without a computer. Note that the LED display and USB output can both be used at the same time.

USB (Serial) Output

When plugged in to a USB port the counter looks like a serial device. It continuously transmits the count (at 115200 baud) at an update rate which can be customized (commonly 1Hz, 10Hz, and 100Hz.) The output is two numbers: time (in seconds) and the count between the last update and this one. In this example it is measuring a radio frequency signal near 10.139977 MHz

Precision Frequency Measurement

One advantage of this counter is that it is never reset. Its core is a 32-bit counter, and every gate cycle transmits the current count to the computer over USB. Because every input cycle is measured high precision measurements of frequency over long periods of time are possible. For example, 1000 repeated measurements with a 1Hz gate allows frequency measurement to a precision of 0.01 Hz.

Internal or External Gating

The microcontroller is capable of generating gate cycles in software. Precision is limited to that of the TCXO used to clock the microcontroller (2.5 PPM). For higher-precision gating a resistor may be lifted and an external gate applied (e.g., 1PPS GPS signal).

Design and Build Notes

About

This project was created by Harden Technologies, LLC. To inquire about the development special features or customized versions of this hardware or software, contact the author at SWHarden@gmail.com.

Parts

49
QtyValueFootprintReferences
9.1uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C4, C5, C6, C7, C8, C9, C10, C12
910kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R4, R7, R9, R10, R11, R12, R13, R14
4HoleMountingHole:MountingHole_2.2mm_M2_DIN965_PadH1, H2, H3, H4
2100kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R8
227Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5, R6
247pCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3
2DDiode_SMD:D_SOD-323_HandSolderingD2, D3
2MCP23008-xSOPackage_SO:SOIC-18W_7.5x11.6mm_P1.27mmU3, U6
1.1uCapacitor_Tantalum_SMD:CP_EIA-2012-15_AVX-P_Pad1.30x1.05mm_HandSolderC11
114.7456 MHz TCXOLibrary Loader:ECSTXO3225MV1474TRY1
150Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
174LV8154Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU4
1ATTINY826-XURLibrary Loader:SOP65P780X200-20NIC1
1Conn_DispConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ4
1Conn_ProgConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ3
1FT230XSPackage_SO:SSOP-16_3.9x4.9mm_P0.635mmU1
1FerriteInductor_SMD:L_0805_2012Metric_Pad1.15x1.40mm_HandSolderFB1
1JumperConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP1
1MMBT2222APackage_TO_SOT_SMD:SOT-23Q1
1NCP1117 3.3VPackage_TO_SOT_SMD:SOT-223-3_TabPin2U5
1POWERLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4
1SMAConnector_Coaxial:SMA_Amphenol_901-144_VerticalJ2
1SN74LVC1GxxPackage_TO_SOT_SMD:SOT-23-5U2
1STATUSLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1UJ2-MIBH-G-SMT-TRLibrary Loader:UJ2MIBHGSMTTRJ1

More from swharden/USB-Counter

5
  • 2 layers86.4 × 61 mmTalking counter, the printed circuit board in 3D

    Talking counter

    swharden/USB-Counter

    Open-source USB frequency counter

    60 parts25MIT
  • 2 layers88.9 × 59.7 mmTalking counter, the printed circuit board in 3D

    Talking counter

    swharden/USB-Counter

    Open-source USB frequency counter

    52 parts25MIT
  • 2 layers91.4 × 61 mmUsbcounter, the printed circuit board in 3D

    Usbcounter

    swharden/USB-Counter

    Open-source USB frequency counter

    50 parts25MIT
  • 2 layers60.6 × 40 mmATMega328-usb counter, the printed circuit board in 3D

    ATMega328-usb counter

    swharden/USB-Counter

    Open-source USB frequency counter

    39 parts25MIT
  • 2 layers56 × 40 mmATMega328-usb counter, the printed circuit board in 3D

    ATMega328-usb counter

    swharden/USB-Counter

    Open-source USB frequency counter

    36 parts25MIT

Similar boards

  • 2 layers35 × 100 mmESP12-Smart Remote, the printed circuit board in 3D

    ESP12-Smart Remote

    dipenarathod/ESP12-Smart-Remote

    ESP12 Smart Remote

    46 parts
  • 2 layers20.5 × 15.1 mmCP2102USB2UART, the printed circuit board in 3D

    CP2102USB2UART

    mpek29/CP2102USB2UART

    🔌 CP2102 USB to UART reverse-engineered

    13 parts
  • 2 layers50.9 × 17.8 mmUsbUartBridge, the printed circuit board in 3D

    UsbUartBridge

    mpek29/UsbUartBridge

    🔌 USB-to-UART bridge for embedded systems

    15 parts
  • 4 layers52.7 × 47.6 mmEsp8266 atmosphere sensor, the printed circuit board in 3D

    Esp8266 atmosphere sensor

    abzman/esp-IoT-boards

    R5v: 1.9K for the red LED, 3.9K for the blue LED

    62 parts9Unlicense
  • 4 layers60 × 30 mmDALI USB, the printed circuit board in 3D

    DALI USB

    SvenHaedrich/kicad_dali_usb_lpc

    KiCad Project for DALI to USB interface based on NXP LPC 1114 µController.

    47 parts3MIT
  • 2 layers229.9 × 111.8 mmAvr colorvideo, the printed circuit board in 3D

    Avr colorvideo

    74hc595/Amethyst

    8-bit ATmega1284 retro computer

    148 parts306BSD-3-Clause
  • 2 layers203.2 × 149.9 mm65C02 Computer, the printed circuit board in 3D

    65C02 Computer

    dbuchwald/6502

    DB6502: 65C02 based computer inspired by BE6502

    68 parts177MIT
  • 2 layers77.5 × 40.6 mmLink adapter, the printed circuit board in 3D

    Link adapter

    jkominek/piano-conversion

    Hardware, and some firmware, for acoustic piano to MIDI controller conversion.

    42 parts53

Questions

How big is the Usbcounter PCB?

It measures 91.4 × 60.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Usbcounter use?

49 parts, built around the FT230XS-R, MMBT2222A and UJ2-MIBH-G-SMT-TR. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Usbcounter KiCad files?

From the swharden/USB-Counter repository on GitHub, at the commit this page was made from: the board is builds/2.1/usbcounter/usbcounter.kicad_pcb and its schematic builds/2.1/usbcounter/usbcounter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Usbcounter design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).