Wi-Fi inside a metal box: where Atmos One puts its antenna, and what a drawing cannot tell you
Five of the six faces of Atmos One's case are one piece of aluminium, and radio does not pass through metal. We follow how the design gets its Wi-Fi out: an antenna on the plastic rear cover, a distance a program checks, and a list of measurements that nothing on paper can replace.
An aluminium case looks good, feels solid and spreads heat. It is also a very good radio shield, and that is a problem when the thing inside needs Wi-Fi.
[Atmos One](#/story/atmos-one), the desktop air monitor from our earlier stories, has this problem. It shows its readings on a screen and also on a small web page over Wi-Fi. Five of the six faces of its case are one piece of aluminium. This story is about how the design gets a radio signal out of that case, and about how much of the answer is still open.
The open part comes first. The project describes itself as designed and checked by tools, with nothing built or powered. Where the antenna sits is a design decision, and a program checks it. How well the radio works is not known, and the project says so in plain words.
Why metal is a problem
Metal does two things to a radio.
- It blocks. A radio wave that meets a sheet of metal sets currents moving in the surface, and those currents send the wave back. Very little goes through. A closed metal box keeps radio out, and it keeps radio in just as well.
- It detunes. An antenna is made to work best in one band of frequencies. That depends on its shape, and also on what is near it. Bring metal close and the band moves. Close is judged against the wavelength, and for Wi-Fi at 2.4 GHz the wavelength is about 12 cm.
So an antenna in a metal case needs two things: an opening that is not metal, and some distance from the metal that remains.
Three ways out

The project's radio note looks at three options and keeps one.
| Option | What the note says | | --- | --- | | A small plastic insert in the metal wall, with the module's printed antenna behind it | A slot-sized window next to a board antenna detunes it strongly and is very sensitive to tolerances. It would need RF simulation and several versions of the case. | | An antenna outside the case | It works, but it does not fit the restrained look that the project's design brief asks for. | | An antenna on a face that is plastic | Chosen. |
The third option is possible because Atmos One already has a plastic face. The rear cover carries the air sensor and the small USB board, and the note says it had to be plastic anyway. The same part becomes the window for the radio. The cover is planned in black PC/ABS, moulded in production and printed for a prototype.
What the design does

- The module. The design uses the version of the radio module that has a small coaxial connector in place of a printed antenna. The board then needs no empty area kept clear for an antenna. That area is the subject of [Give the antenna the edge](#/story/wireless-sensor-node-antenna).
- The antenna. It is a flexible strip, 47 × 7 mm, with adhesive on the back and a 100 mm cable. It goes on the inside of the rear cover, in the upper left seen from the front, on the side away from the air sensor and above the USB board.
- The cable. It runs from the module straight back to the cover. The note gives the reason for the length: 100 mm is enough to open the cover and lay it down.
- Assembly. The antenna is stuck into a marked field on the cover. In final assembly its cable is plugged onto the module, and then the cover is closed with four screws.
A distance that the build checks

The case is drawn by a program, as [The case is a program](#/story/the-case-is-a-program) explains. Each time the program builds the solids, it measures a list of distances and compares each with a required minimum. One line of that list is for the radio:
RF window: the antenna keeps its distance from the aluminium
The requirement is 10 mm. In the release the measured distance is 15.57 mm. It runs from a corner of the antenna to a corner boss of the shell, one of the four square posts that take the cover screws. If the distance fell below 10 mm, the build would fail.
Two cautions belong here. The 10 mm is the project's own rule. It is about a twelfth of a wavelength, by our arithmetic. And the check holds a distance. It says nothing about how well the antenna works at that distance.
The commit log shows how the position was reached. Times are counted from the project's first commit, and each of these four commits names Claude Fable 5.2 as co-author.
| Time | What the commit holds | | --- | --- | | 0:36 | The first hardware commit already uses the module with the connector. | | 2:35 | The mechanical model puts the antenna on the cover. A comment says it is at least 11 mm from the aluminium shell. | | 3:24 | The build script gets the line that checks antenna against shell, with 10 mm required. The antenna has not moved yet, and the report in this commit does not list the new line. | | 3:50 | The antenna is 8 mm further in and 8 mm lower. The comment now reads "15 mm or more from the shell and its corner bosses", the report lists 15.57 mm, and the radio note is written. |
The corner bosses did not change between these commits. By our arithmetic on the parameters, the first position was 11.5 mm from the side wall, which fits the comment's 11 mm, but only about 4.3 mm from the nearest corner boss. The same arithmetic gives 15.57 mm for the release, which matches the report. The log does not record a failed run, so we can only give the order of events: the comment, then a check on the solids, then a new position.
What to expect

The note states what the project expects. The shell acts as a cavity behind the antenna, open only to the rear. The signal leaves backwards and goes around the rim to the sides. To the front, the device shadows itself. For a desk a few metres from an access point, the note calls this "normally unproblematic". Then it adds:
None of this is measured. The link budget cannot be claimed from a drawing.
A link budget is the sum that tells you whether a radio link will hold: the power sent, less what is lost on the way, against what the receiver needs. How the antenna behaves inside this case is one term of that sum, and it cannot be read from a model of shapes.
The rings in the film are a sketch. They are one wavelength apart and drawn weaker toward the front, to show the expectation. They are not a simulation.
What has to be measured

Step 10 of the bring-up plan is the radio. [The first power-up](#/story/the-first-power-up) covers the plan as a whole. The radio note lists four measurements.
- Return loss. With the device fully assembled and standing on a desk, measure at the antenna cable how much of the power sent to the antenna comes back. The target is better than −10 dB from 2400 to 2484 MHz, which means that no more than a tenth comes back. If the best frequency has moved, the antenna is moved on the cover first. The adhesive area allows 10 mm either way.
- Signal strength in four directions. Compare with a bare development board in the same place, at 0°, 90°, 180° and 270°. A front direction that is 10 dB down is expected. That is a tenth of the power. More than 20 dB down in any direction means the antenna position has to change.
- A day of use. Throughput and reconnects over 24 hours at the intended distance.
- The rules. A radio module is certified together with named antenna types, up to a stated gain. The note describes this antenna as a dipole type with 2.5 dBi. Whether that is covered has to be checked in the module's certification documents before anything is sold. If it is not, an antenna from the certified list takes its place on the cover.
The same item stands in the project's list of open risks, which [How do you trust a board an AI designed?](#/story/how-to-trust-an-ai-designed-board) describes. The risk is written as Wi-Fi performance with the antenna inside a tub of aluminium, and whether the antenna is covered by the module's certification. The cost if it goes wrong is poor range, or certification work.
If you are making your own
- Decide how the radio gets out when you choose the case material, not after the board is laid out.
- Look for a part that has to be plastic anyway, such as a cover or a base, and let it be the window.
- Keep the antenna away from metal, and write the distance down as a rule that something checks.
- Count every piece of metal. Here the nearest one was a screw post and not a wall.
- Leave room to move the antenna a little. Tuning is done on the real thing.
- Make the cable long enough to open the case with it still plugged in.
- Write down the measurements and their limits before the first unit exists.
- Find out early which antennas your module is certified with.
On EIN
A product like this takes two roads on EIN. The boards go through a PCB request. The machined shell and the plastic cover go in as an Other Request, with the 3D files and drawings attached. If a plastic part is also the window for the radio, say so in the request, so that the maker does not offer a metallic paint or a conductive plastic for it.
In the film, the case, the boards and the antenna position are from the project's model. The air sensor is shown as a plain block of its outside size. The cable, the waves and the angle labels were drawn for the article.