Skip to the content
2 layers104 × 43.3 mmSerial snooper, the printed circuit board in 3D

The Serial Snooper is a UART data logger with automatic baud rate detection, real-time data stamping and a command-line-interface for configuration, running on an STM32F3 microcontroller.

Size
104 × 43.3 mm
Copper layers
2
Thickness
2.63 mm
Parts
101
Nets
77
Pads
288
Tracks, vias
667, 171
Pours
17
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
13 Jul 2022
Updated
15 Mar 2025

Overview

Serial snooper is an open-source printed circuit board by can-caglar, from the can-caglar/Data-Logger-STM32 repository on GitHub. It is a 2-layer board of 104 × 43.3 mm with 101 parts on 77 nets, routed with 667 tracks and 171 vias.

It is built around the STM32F303K8T6, MAX3232ID and 74HC4050D,653-JSM, with the AMS1117-3.3, PCF8523T and 0ZCK0020FF2G among its other parts. Its parts include 28 resistors, 21 capacitors, 5 ICs, 5 connectors and 4 diodes. It belongs with the interfaces and adapters boards and the STM32 boards of this library.

Main components

9

README

README.md

Serial Snooper

The Serial Snooper is a UART data logger with automatic baud rate detection, real-time data stamping and a command-line-interface for configuration, running on an STM32F3 microcontroller.

It is utilised in an R&D setting to easily capture logs from devices to speed up catching software and hardware bugs.

This project started out as a submission for the final project in the course "Making Embedded Systems" by Elecia White, and evolved into a complete functional product used professionally. The report for the project submitted to the course can be found here.

The Final Product

PCBA Front

PCBA Back

Description of Operation

  1. Plug in USB (5V - resettable fuse limits current to 500mA incase of short circuits damaging the power source).
  2. Device powers up, indicated by the green LED.
  3. A short moment later, the red LED lights up, indicating that the SD card was successfully initialised.
  4. Plug in DB9 cable for the device you wish to snoop. The baud rate will be automatically detected.
  5. The yellow LED will toggle for every character received.
  6. The blue LED will toggle for every successful SD card write.
  7. When ready, power down the device by removing the USB cable and remove the SD card.

Schematic

Partial schematic. At the heart of the device is a STM32F303 microcontroller.

The full hardware schematic can be found on Github.

Design Block Diagram

Software Block Diagram

Prototype

A prototype board was created to aid development.

Headers have been soldered to a perforated board. A mixture of wire wrapping and soldering used for the connections.

The working prototype

Pinouts

Demo

All demonstrations below are from the prototype device using the software in this repository.

Command Line Interface (CLI)

The CLI is used to:

  • Ascertain the software version number
  • Send commands:
    • Get DIP switch setting.
    • Get the current time.
    • Set the current time.

For example:

Example Data Saved on SD Card

The received data is timestamped and saved to the SD card. The filesystem being used is Fatfs (middleware software for this was provided by STM32 Cube).

In the example below, nearly 30,000 characters were sent over the course of 68 seconds (at 115200 BR) and all data was transferred successfully.

(The text file below is generated by the Serial Snooper and can be found as resource/example_log.TXT)

Parts

101
QtyValueFootprintReferences
25TestPointTestPoint:TestPoint_Pad_D1.0mmTP1, TP2, TP3, TP10, TP11, TP12, TP13, TP14, TP15, TP16, TP17, TP22, TP25, TP27, TP29, TP30 +9
11100nCapacitor_SMD:C_0402_1005MetricC4, C5, C6, C7, C12, C13, C14, C16, C17, C18, C19
747kResistor_SMD:R_0402_1005MetricR13, R14, R15, R16, R17, R19, R20
510kResistor_SMD:R_0402_1005MetricR1, R3, R4, R5, R6
51k5Resistor_SMD:R_0402_1005MetricR2, R12, R18, R23, R26
40RResistor_SMD:R_0402_1005MetricR11, R24, R25, R28
4MountingHoleMyLibrary:ToolingHoleH1, H2, H3, H4
310uCapacitor_SMD:C_0603_1608MetricC15, C20, C21
210KResistor_SMD:R_0402_1005MetricR21, R22
215pCapacitor_SMD:C_0402_1005MetricC8, C9
21uCapacitor_SMD:C_0402_1005MetricC2, C3
222uCapacitor_SMD:C_0805_2012MetricC10, C11
2330RResistor_SMD:R_0402_1005MetricR8, R27
2DNPResistor_SMD:R_0402_1005MetricR7, R10
10RResistor_SMD:R_0805_2012MetricR9
10ZCK0020FF2GMyLibrary:FUSC2214X100NF2
110nCapacitor_SMD:C_0402_1005MetricC1
1120RInductor_SMD:L_0603_1608MetricFB1
116MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
12894MyLibrary:2894H5
132.768Crystal:Crystal_SMD_2012-2Pin_2.0x1.2mmY2
174HC4050D,653MyLibrary:SOIC127P600X175-16NIC1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical_SMD_Pin1LeftJ1
1Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical_SMD_Pin1LeftJ2
1GREENLED_SMD:LED_0603_1608MetricD1
1L717SDE09P1ACHMyLibrary:L717SDE09P1ACHJ5
1MAX3232Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU3
1MMBT3904Package_TO_SOT_SMD:SOT-23Q1
1MMBT3906Package_TO_SOT_SMD:SOT-23Q2
1Micro_SD_Card_Det1MyLibrary:5025700893J6
1PCF8523TPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1REDLED_SMD:LED_0603_1608MetricD3
1RED_SDLED_SMD:LED_0603_1608MetricD4
1STM32F303K8T6Package_QFP:LQFP-32_7x7mm_P0.8mmU1
1SW_DIP_x04Button_Switch_SMD:SW_DIP_SPSTx04_Slide_Omron_A6H-4101_W6.15mm_P1.27mmSW1
1SW_DPDT_x2MyLibrary:DPDT-SMD-MS-22D28G2-BSW2
1USB_B_MiniMyLibrary:USB-MINI-10033526-N3212LFJ8
1YELLOWLED_SMD:LED_0603_1608MetricD5

Similar boards

  • 2 layers30.5 × 63 mmAdbuino, the printed circuit board in 3D

    Adbuino

    akuker/adbuino

    Arduino-based USB keyboard and Mouse to ADB adapter. Allows USB keyboards and mice to be used with vintage Macintosh computers.

    75 parts60
  • 2 layers335 × 340.9 mmRCA Radio Telescope, the printed circuit board in 3D

    RCA Radio Telescope

    Glaubinator/Radio-Telescope-RCA

    Radio Telescope System for 1 GHz to 2 GHz Operation

    81 parts3GPL-3.0
  • 4 layers58 × 40 mmOpm inline, the printed circuit board in 3D

    Opm inline

    opme/motor-driver

    open source motor drivers to be driven by foc controller

    103 parts
  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers59.5 × 27 mmDesk lamp cc2530, the printed circuit board in 3D

    Desk lamp cc2530

    Czubixx/zigbee-desk-lamp

    DIY Zigbee desk lamp based on CC2530 controllable smart light for workbench/desk use.

    28 parts
  • 2 layers120 × 90 mmPLC STM32 Modbus, the printed circuit board in 3D

    PLC STM32 Modbus

    danhmanu/PLC-STM32F407VET6

    Mạch nguyên lý KiCad 10 cho bộ PLC: điều khiển qua LAN bằng Modbus TCP (module W5500 Lite), nạp code qua USB‑C (CH340C), 16 ngõ ra transistor cách ly quang, 10 ngõ vào analog 4–20mA.

    264 parts
  • 2 layers99.3 × 41 mmEce49022 team44 pcb, the printed circuit board in 3D

    Ece49022 team44 pcb

    SRiegle2020/ECE49022_SrDsgn_f22_Team44

    ECE49022, Team44, f2022. Biometric "Smart" Watch

    111 parts

Questions

How big is the Serial snooper PCB?

It measures 104 × 43.3 mm and has 2 copper layers, 2.63 mm thick.

What parts does the Serial snooper use?

101 parts, built around the STM32F303K8T6, MAX3232ID, 74HC4050D,653-JSM and AMS1117-3.3. 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 Serial snooper KiCad files?

From the can-caglar/Data-Logger-STM32 repository on GitHub, at the commit this page was made from: the board is HardwareDesign/serial_snooper/serial_snooper.kicad_pcb and its schematic HardwareDesign/serial_snooper/rs232-uart.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Serial snooper design in my own project?

Its repository states no licence, so its author keeps all rights: ask can-caglar before reusing the design.