Skip to main content
Granular IT logo - AI & IoT Engineering in Kenya
Engineers wiring microcontrollers and 24V industrial sensor inputs in the Gigiri lab
Field Note 07 • Embedded Hardware & TelemetryIndustrial Facilities & Utilities • Gigiri AI & IoT Lab, Nairobi • 5 min field note

Mastering 24V Digital Inputs & Microcontrollers: Why Simple Hardware Unlocks Entire Facilities

When you come from pure JSON software, wiring your first raw digital input teaches you that the physical world is just HIGH or LOW—and mastering electrical noise makes any machine talk.

Engineers wiring microcontrollers and 24V industrial sensor inputs in the Gigiri lab
Verified Field Outcomes
Zero false phantom counts from floating pins or factory motor EMI spikes
Safe optocoupler isolation between 24V industrial control panels and 3.3V/5V logic
Connects non-smart doors, tanks, generators, and machines in hours
01 / Beyond Clean JSON APIs

On the Factory Floor, Everything Starts as Voltage

In enterprise software, everything arrives as clean JSON over HTTPS. On a factory floor or plant room, the physical world is raw voltage—HIGH or LOW, 24V or 0V—and an unprotected microcontroller pin wired straight into a long cable run will pick up electromagnetic noise like an antenna.

Mastering the electrical fundamentals at our Gigiri workbench is what allows our nodes to run for months without phantom triggers or fried boards.

02 / Three Rules of Bulletproof Digital Inputs

How We Condition Noisy Real-World Signals

Every custom sensor interface box leaving our Gigiri lab enforces three non-negotiable hardware and firmware layers:

Layer 1 • No Floating Pins

Hardware Pull-Up & Pull-Down Networks

Ensures every input pin sits at a rock-solid known state so nearby 3-phase motor startups never induce false counts.

Layer 2 • Galvanic Safety

24V-to-3.3V Optocoupler Isolation

Steps down standard 24V industrial sensor and PLC outputs across an optical air-gap—protecting the microcontroller from surges.

Layer 3 • Clean Edges

Interrupts & Millisecond Debounce

Mechanical relays and limit switches physically bounce dozens of times in 5ms; hardware interrupts + tuned debounce capture 1 true event.

Layer 4 • Universal Reach

Any Contact Becomes Live Data

Roller-shutter switches, borehole float switches, generator changeover contactors, and beam sensors all stream straight to MQTT.

Field Note Architecture Spec
Microcontroller Nodes
Industrial ESP32 / Arduino Pro Enclosures
Signal Isolation
DIN-Rail 24V DC Optocoupler Modules
Firmware Timing
Hardware ISR + Configurable ms Debounce
Lab Base
Gigiri Prototyping Workbench, Nairobi
Arduino Pro / ESP3224V OptocouplersHardware InterruptsMQTT Edge Telemetry

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 08: Thermal Fire Cameras & PoE Cabling