

Usbcounter
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
3FT230XS-R
SSOP-16-150mil-40℃~+85℃ 125uA 3.3V~5V 8mA USB 2.0 USB to UART SSOP-16-150mil USB Converters ROHSFTDIUSB ConvertersMMBT2222A
SOT-23-55℃~+150℃ 1 NPN 100 100nA 1V 300MHz 300mW 40V 600mA 6V NPN Standalone SOT-23 Bipolar (BJT) ROHShongjiachengBipolar (BJT)UJ2-MIBH-G-SMT-TR
SMD-30℃~+85℃ 1 500mA、1.8A 5P 5V Black Female Micro-B Surface Mount,Vertical USB 2.0 SMD USB Connectors ROHSCUIUSB Connectors
README
README.mdUSB 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
- Revision 1.0 - schematics and PCB design - first tested 2019-07-26
- Revision 1.1 - schematics and PCB design - first tested 2019-08-03
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 9 | .1u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1, C4, C5, C6, C7, C8, C9, C10, C12 |
| 9 | 10k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R2, R4, R7, R9, R10, R11, R12, R13, R14 |
| 4 | Hole | MountingHole:MountingHole_2.2mm_M2_DIN965_Pad | H1, H2, H3, H4 |
| 2 | 100k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R3, R8 |
| 2 | 27 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R5, R6 |
| 2 | 47p | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2, C3 |
| 2 | D | Diode_SMD:D_SOD-323_HandSoldering | D2, D3 |
| 2 | MCP23008-xSO | Package_SO:SOIC-18W_7.5x11.6mm_P1.27mm | U3, U6 |
| 1 | .1u | Capacitor_Tantalum_SMD:CP_EIA-2012-15_AVX-P_Pad1.30x1.05mm_HandSolder | C11 |
| 1 | 14.7456 MHz TCXO | Library Loader:ECSTXO3225MV1474TR | Y1 |
| 1 | 50 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1 |
| 1 | 74LV8154 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U4 |
| 1 | ATTINY826-XUR | Library Loader:SOP65P780X200-20N | IC1 |
| 1 | Conn_Disp | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J4 |
| 1 | Conn_Prog | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J3 |
| 1 | FT230XS | Package_SO:SSOP-16_3.9x4.9mm_P0.635mm | U1 |
| 1 | Ferrite | Inductor_SMD:L_0805_2012Metric_Pad1.15x1.40mm_HandSolder | FB1 |
| 1 | Jumper | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | JP1 |
| 1 | MMBT2222A | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | NCP1117 3.3V | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U5 |
| 1 | POWER | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D4 |
| 1 | SMA | Connector_Coaxial:SMA_Amphenol_901-144_Vertical | J2 |
| 1 | SN74LVC1Gxx | Package_TO_SOT_SMD:SOT-23-5 | U2 |
| 1 | STATUS | LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolder | D1 |
| 1 | UJ2-MIBH-G-SMT-TR | Library Loader:UJ2MIBHGSMTTR | J1 |
More from swharden/USB-Counter
5- 2 layers86.4 × 61 mm

- 2 layers88.9 × 59.7 mm

- 2 layers91.4 × 61 mm

- 2 layers60.6 × 40 mm

- 2 layers56 × 40 mm

Similar boards
- 2 layers35 × 100 mm

- 2 layers20.5 × 15.1 mm

- 2 layers50.9 × 17.8 mm

- 4 layers52.7 × 47.6 mm

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 mm

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 mm

- 2 layers203.2 × 149.9 mm

- 2 layers77.5 × 40.6 mm

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).