What are Embedded Systems?
An embedded system is a special-purpose computer, made of a processor, memory and input/output peripherals, designed to perform a specific task inside a larger machine or electronic device. A transmitter, a data acquisition card or an HMI panel measures, calculates and communicates thanks to the embedded software running inside it.
What are the main components?
- Processor: a microcontroller (MCU) or microprocessor (MPU).
- Memory: flash for the program, RAM for working data.
- Peripherals: ADC, DAC, timers, UART/RS485, SPI, I²C, CAN and Ethernet.
- Software (firmware): the code that drives the hardware and runs measurement algorithms and communication protocols.
- Safety mechanisms: a watchdog timer that restarts the device if the software hangs, and brown-out (low voltage) detection.
MCU, RTOS or embedded Linux?
| Approach | Typical hardware | Suited for |
|---|---|---|
| Bare-metal | Small MCU | Single-purpose, simple, lowest latency |
| RTOS | MCU | Devices where measurement, filtering and communication run together with timing guarantees |
| Embedded Linux | MPU | HMI and gateway devices needing graphical UI, network services, databases |
Being real-time does not mean being "fast"; it means guaranteeing a response within a defined time. If missing a deadline counts as a system failure it is hard real-time; if it only degrades quality it is soft real-time.
Amazeng uses Zephyr RTOS in its ZMA data acquisition devices; we explain why in Why We Use Zephyr RTOS. On the HMI side we build Qt/QML interfaces on embedded Linux: HMI Solutions.
Worked example: timing budget at 1 kHz sampling
For a measurement device sampling at 1000 Hz, the budget per sample is 1 / 1000 = 1 ms (1000 µs). Illustrative durations:
- ADC readout (SPI): 40 µs
- Digital filter and calibration maths: 150 µs
- Communication response and logging: 300 µs
The total is 490 µs, a CPU load of about 49%. The remaining margin is needed for interrupts and worst-case delays. If raising the filter order or adding a new protocol exceeds this budget, samples are missed.
Common mistakes
- Designing to average time: real-time systems must be sized to worst-case execution time (WCET).
- Long processing inside interrupts: keep interrupt routines short and move heavy computation into tasks.
- Disabling the watchdog: convenient in development, but it prevents a device that hangs in the field from recovering.
- Ignoring floating-point cost: on MCUs without an FPU, float maths can be slower than expected.
Where does it matter in industrial measurement?
Almost all modern transmitters and data acquisition devices are embedded systems. We cover how raw ADC data is processed in detail in ADC Integration and Data Processing in Embedded Systems.
Related Terms
- What is ADC (Analog-to-Digital Converter)?What an ADC is and how it works: LSB and SNR formulas, 12-bit vs 24-bit compared, a worked load cell example and the most common mistakes.
- What are Digital Filters? (Moving Average, Butterworth, Kalman)What digital filters are: moving average, exponential, median, Butterworth and Kalman, with formulas, delay and noise maths, and how to choose one.
- What is a Digital Transmitter and Why Use It?What is a digital transmitter? Why digitising a sensor signal at the source beats an analog 4-20mA line on resolution, noise and calibration.
- What is IoT (Industrial Internet of Things)?What IoT and IIoT are: device, gateway, connectivity and cloud layers, a Modbus-to-MQTT data path, a data volume calculation and common mistakes.
- What is a PLC (Programmable Logic Controller)?What is a PLC? The scan cycle, IEC 61131-3 languages, a response time calculation, 32-bit Modbus word order pitfalls and sensor integration.