Skip to content

About

A DIY speed camera using industrial light barriers with an ESP8266 that communicates with a RPi running a rust webserver and serving a React frontend. A GigE Vision camera serves as image capturing device.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

343 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

speedcamera

An end-to-end vehicle speed measurement, GigE Vision camera capture, and remote management suite.


Submodules & Modules

Directory Description
headless-rust (Recommended) High-performance single-binary headless daemon and responsive Web UI controller for Raspberry Pi 5 built with Rust (Axum 0.8, Socket.io, native Aravis C FFI, SQLite) and embedded React + Vite frontend. Features IoT-style open AP setup hotspot (192.168.4.1) with captive portal redirect, Client Wi-Fi operation mode with scannable connect QR codes, and a dedicated GigE Vision Camera LAN (192.168.1.100).
arduino Microcontroller firmware (ESP8266 / ESP32) reading dual optical light barriers to calculate vehicle speeds and transmit telemetry over Serial.

The earlier desktop apps (electron/, electronbun/) were retired in favour of headless-rust; they remain in the git history.


Quick Deployment Commands (Raspberry Pi 5)

Run from your laptop. The Pi installs a prebuilt .deb and never compiles anything, so updates also work over its offline hotspot.

cd headless-rust

# Install or update (fresh Pi, old git-checkout install, or already packaged)
bun run deploy pi@raspberrypi.local             # build the package from this checkout
bun run deploy pi@192.168.4.1 --release         # latest GitHub release, via the Pi hotspot

# Inspect, follow logs, remove
bun run pi status pi@raspberrypi.local
bun run pi logs pi@raspberrypi.local
bun run pi uninstall pi@raspberrypi.local       # --purge also deletes data

For full documentation on architecture, network onboarding flow, offline/client operation, dependencies, migration guide, and local mock testing, see the Headless Rust Documentation.

About

A DIY speed camera using industrial light barriers with an ESP8266 that communicates with a RPi running a rust webserver and serving a React frontend. A GigE Vision camera serves as image capturing device.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages