Skip to main content
Flagship Case Study · Hardware & Embedded

IoT Gateways and Custom Boards, Designed In-House

Gateways, controller boards and custom PCBs designed in-house for industrial monitoring, delivered with their firmware and cloud connection. 100+ devices and sensors connected.

100+Devices & Sensors Connected
In-HouseBoard Design
PartnerFabrication

Source: KoderTroop project records, across IoT gateway engagements.

Case Study

Project Overview

Several of our systems run on hardware designed here. For industrial monitoring deployments, KoderTroop designs IoT gateways, controller boards and custom PCBs, lays the boards out in KiCad, writes their firmware and connects them to the cloud. A manufacturing partner fabricates the boards from our production files. The same hardware base is reused across our fleet, aquaculture, dispenser telemetry and smart infrastructure work.

System diagram for Industrial IoT Gateways & Custom Electronics
How the system fits together, layer by layer.

The Business Problem

Industrial sites run equipment and sensors that speak different protocols, sit far from a network port and were never designed to report to the cloud. Off-the-shelf gateways often support the wrong mix of protocols, and few can be adapted.

What We Built

We design each gateway around its site. The compute platform, radios and field interfaces are chosen for what the deployment has to connect; then we design the board, write the firmware and connect it to a central MQTT broker. A low-power sensing node and a gateway running edge logic need different hardware, and the design reflects that.

The Outcome

Clients receive hardware that fits their equipment, with board, firmware and cloud under single-point accountability. A fault in the field is diagnosed and fixed in one place rather than disputed between vendors.

How It Is Built

Compute, by Use Case
ESP32 microcontrollers with embedded C/C++ firmware for low-power, single-purpose nodes; embedded Linux boards (OpenWRT or SBC-class) where a gateway has to run richer edge logic.
Field Connections
Modbus RS-485/RTU for industrial meters and controllers, Wi-Fi/MQTT sensors, LoRa and sub-GHz radio for long-range links, and BLE and Zigbee for short-range devices.
Controller Boards
Sensor and actuator interfaces with embedded firmware, for sensing and control at the equipment itself.
PCBs
Application-specific boards designed in KiCad and taken from prototype to production, with fabrication by a manufacturing partner.
Cloud Side
Gateways publish to a self-hosted MQTT broker that feeds the monitoring dashboards and analytics.

Project Details

DeliveryKoderTroop electronics design, PCB layout, firmware and cloud; boards fabricated and assembled by a manufacturing partner

Inside the Platform

The main screens, walked through one capability at a time.

GW-0307 · Site 03, pump house
Field interfaces and register map
DiscardPush to gatewayOP
Field interfaces
RS-485 port 1
Modbus RTU · 4 devices
RS-485 port 2
Modbus RTU · spare
LoRa radio
868 MHz · 2 nodes
BLE
2 sensors
Wi-Fi
MQTT · 1 sensor
Zigbee
Not fitted on this site
Gateway
ComputeOpenWRT
BoardGWM-01 rev C
Image2.4.0
UplinkEthernet
BrokerConnected
RS-485 port 1 · Modbus RTUPolling
Baud rate
9600
Parity
None
Data / stop bits
8 / 1
Poll interval
30 s
Response timeout
500 ms
Retries
2
Publish to topic
site03/gw0307/rs485-1
Register mapAdd register
DeviceRegisterNameTypeScaleLast value
1 · Energy meter30001Voltage L1float32×1231.4 V
1 · Energy meter30007Current L1float32×112.8 A
1 · Energy meter30013Active powerfloat32×12.94 kW
1 · Energy meter30073Energy importfloat32×118,402.6 kWh
2 · Pump controller40001Run stateuint16×11 running
2 · Pump controller40003Motor speeduint16×11,450 rpm
2 · Pump controller40010Fault codeuint16×10
3 · Flow meter30001Flow ratefloat32×142.6 m³/h
3 · Flow meter30005Totaliseruint32×0.188,214.0 m³
4 · Pressure sensor30001Line pressureint16×0.013.42 bar
CB-1142 · pump controller
Controller board, 8 I/O · Site 05 · reporting every 10 s
Export logOP
Channels
ChannelConnected toValueState
AI1Line pressure, 4–20 mA3.42 barNormal
AI2Tank level, 4–20 mA71 %Normal
AI3Motor temperature, PT10058.2 °CNormal
AI4Spare—Unused
DI1Pump running feedback1On
DI2Low-level float switch0Clear
DI3Panel door1Open
DO1Pump contactor1On
DO2Alarm beacon0Off
DO3Dosing valve0Off
Control actions
21:04DO1 pump contactor onRule: tank level below 40%
20:12DO1 pump contactor offRule: tank level above 90%
18:47DO2 alarm beacon offAcknowledged by A. Rao
18:41DO2 alarm beacon onDI3 panel door opened
FirmwareRunning
Versionfw 1.8.2
Build2026-10-28 · a41c9e2
TargetESP32-WROOM-32E
Watchdog resets, 7 days0
Flash used61%
Supply rail, VLast 2 hours
Brownout 21.6 V19:4020:4021:40
Board temperature, °CLast 2 hours
19:4020:4021:40
PCB revisions
KiCad projects · production files for the fabrication partner
Board or revisionNew revisionOP
Boards14 revisions · 9 boards
BoardRevStageFab handoffUpdated
BLE reader boardALayout—14 Nov
24 V power supplyAPrototypeFiles exported14 Nov
Controller, 8 I/OFPrototypeDFM review13 Nov
Gateway main boardDPilotIn fabrication12 Nov
LoRa radio carrierBPrototypeQuote approved10 Nov
Gateway main boardCProductionDelivered30 Sep
RS-485 interfaceBProductionDelivered22 Sep
LoRa radio carrierAPrototypeDelivered03 Sep
Controller, 8 I/OEProductionDelivered18 Aug
RS-485 interfaceAPrototypeDelivered26 Jul
Sensor nodeCProductionDelivered04 Jul
GPS tracker boardDProductionDelivered21 Jun
Gateway main boardBPilotDelivered15 Jun
Relay output boardBProductionDelivered02 May
Gateway main board · rev DPilot
KiCad projectgwm-01
Layers4
Board size100 × 80 mm
BOM64 lines · 2 alternates
Quantity25 boards
AssemblyPartner, turnkey
Production files
gwm-01-revD-gerbers.zip412 KB
gwm-01-revD-drill.zip18 KB
gwm-01-revD-bom.csv64 lines
gwm-01-revD-cpl.csv211 parts
gwm-01-revD-fab-notes.pdf2 pages
Fab partner handoffDue 21 Nov
Files exported
06 Nov
DFM review
07 Nov
Quote approved
08 Nov
In fabrication
Since 10 Nov
Site 03 · pump house
Live readings through the central MQTT broker
1 h24 h7 dOP
Line pressure
3.42 bar
High alarm at 4.5 bar
Flow rate
42.6 m³/h
Pump 1 running
Active power
2.94 kW
31.2 kWh today
Tank level
71%
Filling
Line pressure, bar
High 4.500:0006:0012:0018:0021:40
Flow rate, m³/h
00:0006:0012:0018:0021:40
Energy per hour, kWh
00:0006:0012:0018:00
Tank level, %
Pump start 40%00:0006:0012:0018:0021:40
Devices on this siteLast message
GW-0307 gateway
MQTT · broker session
2 s
Energy meter
Modbus RTU · port 1
12 s
Pump controller
Modbus RTU · port 1
12 s
Flow meter
Modbus RTU · port 1
12 s
Pressure sensor
Modbus RTU · port 1
12 s
Tank level node
LoRa · 868 MHz
48 s
Valve position node
LoRa · 868 MHz
1 min
Ambient sensor
Wi-Fi · MQTT
20 s
Door sensor
BLE
35 s
Vibration sensor
BLE
18 min
Gateways
All sites · self-hosted MQTT broker
Gateway or siteRegister gatewayOP
Gateways6 online · 1 reconnecting · 1 offline
GatewaySiteComputeField interfacesBroker sessionStatus
GW-0307Site 03 · pump houseOpenWRTRS-485LoRaBLEWi-Fi4 d 6 hOnline
GW-0301Site 03 · tank yardESP32LoRa11 d 2 hOnline
GW-0512Site 05 · treatment shedLinux SBCRS-485Zigbee2 d 19 hOnline
GW-0514Site 05 · outfallESP32LoRaRetryingReconnecting
GW-0108Site 01 · compressor roomOpenWRTRS-485Wi-Fi9 d 4 hOnline
GW-0110Site 01 · cold storeESP32BLEWi-Fi6 h 12 minOnline
GW-0702Site 07 · boiler houseLinux SBCRS-485BLELost 03:12Offline
GW-0705Site 07 · yardESP32LoRa1 d 3 hOnline
Broker messages per minuteLast 24 hours
22:0004:0010:0016:0021:40
Connection events
21:38GW-0514 reconnecting, attempt 3
21:31GW-0514 session dropped
15:26GW-0110 connected after restart
03:12GW-0702 last-will message received
03:12GW-0702 session lost

Each gateway carries the protocol mix its site needs, not a generic one.

Technology11 Technologies

Technologies & Delivery Models

Select Category1 Categories
Next Step

Planning a Comparable System?

Tell us about the device, the sites and the systems it has to connect to. A senior specialist will work through the architecture with you.