Skip to main content
Granular IT logo - AI & IoT Engineering in Kenya
Granular IT Gigiri engineering lab prototyping Python weighbridge proxy and ANPR integration
Field Note 06 • Python Proxy & ANPR AutomationLogistics, Milling & Heavy Dispatch • Kenya Industrial & Agro Sites • 5 min field note

Converting a Legacy Analogue Weighbridge into an Automated Digital System with Python & ANPR

Why you don't need to rip out heavy steel infrastructure—how wrapping a Python serial proxy and an ANPR camera around an old weighbridge eliminated manual typing forever.

Granular IT Gigiri engineering lab prototyping Python weighbridge proxy and ANPR integration
Verified Field Outcomes
Zero manual weight or number-plate typing at the weighbridge clerk desk
Vibration-filtered weight lock prevents premature or manipulated ticket captures
Every weighment paired with a timestamped ANPR plate photo in the database
01 / The Bottleneck at the Gate

Manual Typing, Plate Typos & Slow Truck Queues

At busy mills, factories, and bulk depots, the weighbridge is where raw material intake and finished dispatch meet money. Yet on legacy setups, a heavy truck rolls onto the steel deck, an operator squints at the LED indicator box, types the weight and truck registration plate manually into a PC, and prints a ticket.

One transposed digit on a registration plate or weight reading creates hours of accounting disputes—and replacing the physical weighbridge deck costs millions of shillings.

02 / Wrapping Smart Code Around Legacy Steel

How the Python Stabilization Proxy + ANPR Trigger Works

Rather than touching the heavy steel load cells, we built a lightweight software and camera bridge around the existing indicator:

Step 1 • Raw Stream

Continuous Serial Indicator Listener

A Python daemon reads the continuous RS232/RS485 byte stream coming off the legacy weighbridge indicator at sub-second intervals.

Step 2 • Settle Filter

Filtering Truck Brake & Axle Bounce

Rolling variance logic waits until axle oscillation settles within a strict stability window before locking the official gross or tare weight.

Step 3 • ANPR Snap

Instant Plate OCR + Evidential Photo

The millisecond the weight locks, the Python service triggers a Dahua ANPR camera aimed at the cab—reading the Kenyan plate and saving a stamped photo.

Step 4 • Ledger Sync

Direct Database & ERP Posting

Verified weight, ANPR plate string, and evidential image push straight into SQL/ERP with zero human keystrokes.

03 / Daily Production Impact

Used Every Single Day Without Typing a Digit

Sometimes the highest-ROI engineering upgrade isn't buying brand-new machinery—it's wrapping resilient Python code and computer vision around the equipment you already own.

  • 100% Audit Trail: Finance can click any weighbridge ticket in the ERP and view the exact truck photo at the moment of weight lock.
  • Faster Gate Turnaround: Trucks clear the scale faster with zero clipboard or data-entry bottlenecks.
Field Note Architecture Spec
Middleware Engine
Custom Python RS232/RS485 Proxy Daemon
Camera Trigger
Hardware-Synced ANPR Number Plate Camera
Signal Conditioning
Rolling Axle-Bounce Stabilization Filter
Infrastructure Saved
100% Existing Steel Deck Retained
Python Serial ProxyANPR Plate CameraVibration DebounceSQL / ERP Push

Want This Engineered at Your Site?

Speak directly with our Nairobi engineering team in Gigiri & Kilimani to scope a practical deployment.

Discuss With Our EngineersNext: Field Note 07: 24V Digital Inputs & Arduino IoT