Smart Environment Monitoring PCB: Design Guide

An environment monitoring device is a small, often battery-powered product that has to measure a handful of physical quantities accurately, report them over a wireless link, and run for months or years without attention. Those three requirements pull against each other, and the board that results is a study in compromise: the analogue front end wants a quiet, stable environment, the radio wants a lot of current in short bursts, and the power budget wants everything switched off most of the time.

What the Board Measures and Reports

The measured quantities vary with the application. Temperature and humidity are the most common, followed by air quality, particulate concentration, light level, pressure and vibration. Each sensor has its own interface: some are digital with a serial bus, some are analogue with a small output that must be amplified, and some require a heater or a pumping element that draws a significant current for a short time.

Reporting is usually wireless, over a low power protocol designed for small packets and long battery life. The board therefore contains a radio module, an antenna or an antenna connection, and the interface to configure and read the module. In many designs there is also a wired option, either as an alternative or as a commissioning interface.

Sensor Interfaces and Signal Quality

The accuracy of the measurement is decided mostly by the sensor and its environment, but the board determines whether that accuracy survives. A humidity sensor must not be placed where it sees the heat of the processor, a temperature sensor must be thermally connected to the air rather than to the copper, and any analogue sensor needs an excitation and a reference that do not drift with the supply.

Digital sensors remove the analogue design problem but add a layout one. A serial bus shared by several devices is a set of traces that run across the board, and they pick up whatever the radio and the switching supply are producing. Short buses, a defined reference and a series resistor close to each device are usually enough to keep the communication reliable without compromising the measurement. Our component tolerance and reliability notes describe how those connections are assessed for long term reliability.

smart environment monitoring PCB with sensor and radio sections

Radio Layout, Antenna and Range

The radio deserves its own area of the board. A module with an integrated antenna needs a keep-out region around the antenna that contains no copper, no components and no traces, and that keep-out must be honoured on every layer beneath the antenna as well as on the surface. The module’s own grounding instructions should be followed literally, because they were written from measurements rather than from theory.

A design that uses an external antenna through a connector has more freedom, but the trace between the radio and the connector becomes a transmission line that must have the correct impedance. Matching components belong close to the radio pin rather than at the connector, and the ground reference beneath the trace must be continuous. Where the enclosure is metal, the antenna has to be moved outside it or the radio will simply not work, no matter how well the board is designed. Our layer assignment notes describe how those regions are planned.

antenna keep-out region on an environment sensor board

The Power Budget

A battery-powered monitoring device spends most of its life asleep and wakes occasionally to measure, transmit and go back to sleep. The average current is what determines the battery life, and it is dominated by the sleep current rather than by the transmit current. A regulator with a quiescent current of a few microamps will outlast one with a quiescent current of a milliamp by orders of magnitude, even if the latter is more efficient under load.

Layout contributes to the sleep current. Leakage paths, pull-up resistors left on a bus that is idle, and a sensor that is powered continuously because it was easier to leave it that way all consume energy continuously. Switching the sensor supply from a processor pin, using a load switch with a low leakage, and choosing pull-ups that are only enabled during communication are the standard techniques, and each of them has to be planned rather than added later.

Calibration, Enclosure and Field Behaviour

A monitoring device is calibrated once and then trusted, so the calibration has to remain valid. The reference against which the sensor is calibrated should be the same one used in service and should have a low temperature coefficient, and where the sensor is compensated for temperature, the compensation should be based on the sensor’s own temperature rather than the board’s.

The enclosure is part of the measurement. A sealed box keeps water out but traps heat from the electronics, which raises the internal temperature above the ambient the device is supposed to measure. Vented designs allow air to reach the sensor but also let dust and moisture in. The usual resolution is a separate sensor opening with a membrane that passes vapour but not water, and a thermal design that keeps the dissipation of the board away from that opening. Our thermal management article describes how that gradient is estimated.

Testing and Long Term Reliability

Functional test verifies the measurement chain and the radio link, but the tests that matter for this class of product are the ones that run for a long time. A battery life test under a realistic duty cycle will expose a sleep current that is higher than intended, and an accelerated ageing test at elevated temperature and humidity will expose a sensor that drifts or a coating that fails.

Radio testing should be done at range rather than on the bench. A link that works at one metre may fail at twenty, and the failure is usually a consequence of the antenna keep-out being compromised by a copper pour added late in the layout, or of the module being placed where the enclosure shields it. Our design release checklist places those checks in the review sequence before the layout is released.

Grounding and Layout in a Small Board

A monitoring device is physically small, which compresses the distance between the radio, the switching supply and the sensor front end to a few millimetres. A continuous ground plane is the only structure that keeps them compatible, because it gives each circuit a return path directly beneath its own traces, and those return paths stay separate as long as the circuits are placed in separate regions of the board. Digital returns, radio burst currents and the analogue sensor reference all flow in the plane at the same time, and none of them shares a path with another as long as the placement keeps them apart.

Cutting the plane to create separate grounds is the instinct that makes this worse rather than better. A slot in the plane next to a radio module forces the burst current to detour around it, increasing the loop area and the radiated field, which then couples into the sensor wiring. The practical rules are to keep one plane, to place the noisy circuits at one edge and the analogue ones at the other, and to give the radio module the grounding arrangement its manufacturer specifies.

FAQ

Why does my monitoring device run out of battery in weeks rather than months? Almost always the sleep current rather than the transmit current. A regulator with a high quiescent current or a pull-up left enabled will drain a battery continuously.

Can the radio and the sensors share one board? Yes, and they usually do, but the radio needs its own keep-out and its own grounding, and the sensors need to be placed away from the radio so that the measurement is not disturbed during transmission.

How accurate can a low power temperature measurement be? The sensor can be accurate to a fraction of a degree, but the board can easily add a degree of error by conducting heat from the processor into the sensor, so placement dominates the result.

Leave A Comment