Skip to the content
2 layers60 × 17.6 mmCdm324 exp, the printed circuit board in 3D

MiniSpeedCam

Size
60 × 17.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
29
Nets
33
Pads
121
Tracks, vias
265, 23
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
31 Oct 2025
Updated
2 Sep 2026

Overview

Cdm324 exp is an open-source printed circuit board by Valar-Systems, from the Valar-Systems/MiniSpeedCam repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 2-layer board of 60 × 17.6 mm with 29 parts on 33 nets, routed with 265 tracks and 23 vias.

It is built around the CH340X. Its parts include 13 resistors, 6 connectors, 5 capacitors, 3 switches and 1 IC.

Main components

1

README

README.md

MiniSpeedCam

Intro

The MiniSpeedCam tracks vehicle speeds, takes a photo, and uploads the photo and speed data to a server. Use it to track vehicle speeds on your driveway or street.

Please sign up to the waitlist at minispeedcam.com if you're interested in purchasing one. We have not began manufacturing these yet.

The firmware is designed to work with minispeedcam.com and requires absolutely no coding or flashing. The device works right out of the box.

The device creates a WiFi access point when started for the first time. Connect to it with your phone or laptop and enter your WiFi credentials. It will automatically connect to the internet.

All photos and speed data is sent to your account on minispeedcam.com where the data can be viewed and downloaded.

If you prefer to use your own server, just modify the Arduino code to point to wherever you'd like. It's completely open-source.

Special thanks

This device wouldn't be possible without the help of Mathieu (aka Limpkin). Thank you for your CDM324 Backpack and your generous help in getting MiniSpeedCam made.

Accuracy and distance

A 100Hz frequency from the CDM324 corresponds to 2.3km/h speed. By using a tuning fork, we can trick the radar sensor into picking up a specific speed. Using a tuning fork with a frequency of 2048 Hz should trigger a speed reading of 47.1 kph or 29.3 mph ((2048/100) x 2.3)

Here's a short video of the tuning fork in action.

Max distance is about 100ft or 30m

How it works

The device uses the CDM324 which output a very small voltage, depending on how fast the vehicle is traveling. This voltage is amplified by the aplification circuit and sent to the STM32 for processing. The STM32 uses FFT to determine the speed of the vehicle.

The ESP32 handles the speed data, camera, and WiFi. It is connected to the STM32 via UART and polls it for speed data. Once the speed crosses a threshold that you set, the ESP32 takes a photo and sends a POST API call to a server with the data and image encoded in base64. The vehicles maximum speed, image, and date/time are then saved to a server.

Battery operation

The device consumes about 1.10W while in full operation, and about 0.55W while in sleep mode. The radar sensor is always on, thus consuming 0.55W at all time. When movement is detected, the ESP32 wakes up from light sleep mode, turns on the camera, connects to wifi, takes a photo, sends the data, and goes back to sleep. The process takes about 10 seconds from start to finish. Battery life will depend on how many vehicles the sensor picks up, thus determing how often the ESP32 wakes up. The more vehicles on the road, the larger the battery drain will be.

Power source

MiniSpeedCam runs on 5V. There are two USB-C ports and a screw terminal that can be used to supply 5V power. The easiest way to power this device is to use an external battery pack with a USB-C cable and plug it into either USB-C plug.

Reflashing the device

Flashing the firmware is very simple. The STM32 is programmed in STM32 Cube IDE and the ESP32 is programmed in Arduino IDE.

STM32 flashing

First plug your USB cable into the STM32 USB port. Then use the stm32loader python module directly :

text
pip install stm32loader

... then with the USB connected to the device (as it uses RTS/CTS signals to control the MCU nRESET and BOOT0 pins):

text
stm32loader -b 115200 -p com_port -e -w -v -s -f F3 MiniSpeedCam.bin

If uploading fails, you may use the STM32 Flash loader after performing the following toggling sequence:

  1. Press the R0 button
  2. Press the B0 button
  3. Release R0
  4. Release B0
ESP32 flashing

Open the Arduino sketch in ArduinoIDE. Be sure you have the libraries at the top of the sketch installed. And be sure your upload options are set up according to the image file in the ESP32_firmware folder.

Optional: ArduinoOTA is also included, allowing you to remotely flash the device from the ArduinoIDE. One caveat is the ESP32 goes to sleep after 10 minutes of being powered on. Just cycle the power to it and you'll have 10 minutes to upload your sketch.

Parts

29
QtyValueFootprintReferences
649k9Resistor_SMD:R_0603_1608MetricR8, R9, R10, R11, R12, R13
51kResistor_SMD:R_0603_1608MetricR1, R4, R5, R6, R7
51uFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C5
25.1kResistor_SMD:R_0603_1608MetricR2, R3
2Conn_02x04_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x04_P2.54mm_VerticalJ1, J2
2SW_PushButton_Switch_SMD:SW_Push_1P1T_NO_6x6mm_H9.5mmSW1, SW2
1AudioJack4Connector_Audio:Jack_3.5mm_PJ320D_HorizontalJ7
1CH340XPackage_SO:MSOP-10_3x3mm_P0.5mmU1
1Conn_01x04_SocketConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1FerriteBeadInductor_SMD:L_0603_1608MetricFB1
1Micro_SD_Card_Det1lib:XKTF-015-NJ5
1SW_DIP_x01Button_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW3
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASVJ3

More from Valar-Systems/MiniSpeedCam

4

Similar boards

  • 6 layers60 × 55 mmPoE Ethernet GPIB Adapter, the printed circuit board in 3D

    PoE Ethernet GPIB Adapter

    Kofen/PoE_Ethernet_GPIB_Adapter

    This folder contains the necessary hardware files for the PoE Ethernet GPIB Adapter project.

    198 parts120GPL-3.0
  • 2 layers36.4 × 18.9 mmCh340x, the printed circuit board in 3D

    Ch340x

    openwch/ch34x

    CH340, CH343, CH342, CH344,CH348

    14 parts42
  • 2 layers100 × 100 mmZxevo1010 main, the printed circuit board in 3D

    Zxevo1010 main

    UzixLS/zxevo1010-board

    10x10cm PCB variant of ZX-Evolution project for G738/G706 enclosure

    252 parts26
  • 4 layers100 × 100 mmGammaSpectrometer, the printed circuit board in 3D

    GammaSpectrometer

    RobertGawron/GammaSpectrometer

    Device for quantitative analyze energy spectra of gamma-ray sources. Allows to study what radioactive isotopes in what quantities are present in measured sample.

    326 parts16MIT
  • 4 layers102 × 100 mmZelvicka, the printed circuit board in 3D

    Zelvicka

    RoboticsBrno/Robutek

    Robůtek je robotická platforma založená na čipu ESP32-S3. Je velice rozšitiřelný, ale ze základu umí jezdit, kreslit fixou, jezdit po čáře, pohybovat se bludištěm. Programování je přes Jaculus.

    214 parts12
  • 2 layers20 × 47.3 mmADAPTER PCB, the printed circuit board in 3D

    ADAPTER PCB

    OxMarco/ethereum-lora

    A long-range low-power radio interface for Ethereum nodes

    17 parts10MIT
  • 2 layers150 × 68 mmController, the printed circuit board in 3D

    Controller

    candykingdom/firefly2

    Small blinkenlight boards that sync up using radios

    194 parts5
  • 4 layers46 × 100 mmMusic32v3, the printed circuit board in 3D

    Music32v3

    Thecactusman0/Music32-V3

    Portable music player

    183 parts3GPL-3.0

Questions

How big is the Cdm324 exp PCB?

It measures 60 × 17.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Cdm324 exp use?

29 parts, built around the CH340X. 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 Cdm324 exp KiCad files?

From the Valar-Systems/MiniSpeedCam repository on GitHub, at the commit this page was made from: the board is version/r1.3/hardware/pcb/reference/cdm324_exp/cdm324_exp.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cdm324 exp design in my own project?

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