23 millivolts: why two resistors on this board are ten times tighter than the rest
Atmos One's air sensor needs at least 3.1525 V at its pins. The project added up everything between the regulator and the sensor for the worst case: with ordinary 1 % resistors the sum lands 22 mV short, with a 0.1 % pair it clears by 23 mV. The commit that first did the sum also changed the two resistors. All of it is computed; nothing has been measured.
Almost every resistor on a board is a 1 % part. On [Atmos One](#/story/atmos-one), the desktop air monitor from our earlier stories, two of them are 0.1 %. They cost a little more and look the same. The reason is a sum the project did before anything was built, and the answer to that sum was 23 millivolts.
The project describes itself as designed and checked by tools, with nothing built or powered. Every voltage in this story is computed from datasheet values and stated assumptions.
A sensor with a narrow window
The board runs on 3.3 V. The air sensor accepts 3.1525 V to 3.6 V at its own pins, and its datasheet says the lower figure includes ripple. So the sensor has about 150 mV to lose between the regulator and its pins.
That sounds like plenty. Two things eat it: the regulator is never exactly at 3.3 V, and the path to the sensor is not a perfect wire.
What sits between the regulator and the sensor

The sensor is not on the main board. It sits on the rear cover at the end of a 100 mm cable, and its supply can be switched off. The project's note lists every part on the way there and back:
| Part of the path | Typical | Worst case | Where the number comes from | | --- | --- | --- | --- | | Load switch | 53 mΩ | 71 mΩ | Datasheet, over temperature | | Ferrite bead | 30 mΩ | 40 mΩ | Part description; worst case assumed | | Board track, 0.3 mm wide | 25 mΩ | 30 mΩ | Computed, warm | | Connector contacts, board end | 20 mΩ | 30 mΩ | Assumed | | Cable, 100 mm | 21 mΩ | 23 mΩ | Computed | | Connector contacts, sensor end | 20 mΩ | 30 mΩ | Assumed | | Total | 169 mΩ | 224 mΩ | |
A quarter of an ohm is nothing for a part that takes a steady 90 mA. But the sensor's datasheet also gives a peak: up to 350 mA for about two milliseconds. At that moment the path drops 59 mV in the typical case and 78 mV in the worst one. Half of the window is gone.
Where 3.3 V comes from
A switching regulator does not know what 3.3 V is. It has an internal reference of 0.8 V and compares that with a fraction of its own output. Two resistors set the fraction. On this board they are 147 kΩ and 47 kΩ, and the output works out as 0.8 V × (1 + 147 / 47), which is 3.302 V.
Each of the three can be off:
- The reference is good to ±1 %.
- Each resistor has its tolerance. The bad corner is one resistor high and the other low, which moves the ratio by almost twice the tolerance.
The project's script puts these together:
| Feedback resistors | Rail tolerance | Lowest rail | Highest rail | | --- | --- | --- | --- | | 1 % | ±2.52 % | 3.219 V | 3.385 V | | 0.1 % | ±1.15 % | 3.264 V | 3.340 V |
With ordinary resistors, more than half of the rail's error comes from the two resistors. With the 0.1 % pair, nearly all of what is left is the regulator's own reference.
The sum

The worst case stacks everything at once: the lowest rail, the highest path resistance, the 350 mA peak, and another 10 mV set aside for load regulation and ripple.
| Feedback resistors | Lowest rail | At the sensor during a peak | Against the 3.1525 V minimum | | --- | --- | --- | --- | | 1 % | 3.219 V | 3.131 V | 22 mV short | | 0.1 %, as designed | 3.264 V | 3.176 V | 23 mV to spare |

The script is 134 lines of Python in the release. Its first version came three hours and eight minutes after the project's first commit, in a commit that names Claude Fable 5.2 as co-author. That version used typical resistances for the path, and its answer was closer: 3 mV short with 1 % resistors, 42 mV to spare with 0.1 %. The same commit changed the two resistors in the program that draws the schematic, and left a comment on that line saying why. So the check and the fix arrived together, and the reason is written next to the part.
About forty minutes later, a review commit with the same co-author made the sum stricter. Every part of the path got a worst-case resistance next to its typical one. The margin of the 0.1 % pair fell from 42 mV to 23 mV, and the 1 % case went from 3 mV short to 22 mV short. The tables in this story are that later version.

How far to trust 23 mV
Not very far, and the note does not ask you to.
- It is a worst-case sum. Everything is at its bad end at the same moment. That is pessimistic on purpose.
- Three of the inputs are assumptions. The contact resistances, the bead's worst case and the 10 mV allowance are marked as such in the note.
- The margin is thin. 23 mV is less than a third of what the path itself drops.
- The two resistors still need checking. The project's parts list gives them its lowest grade: the ordering codes were composed from the maker's naming scheme and have to be confirmed before buying. [A parts list that grades itself](#/story/a-parts-list-that-grades-itself) explains the grades.
The note names the measurement that settles it: the voltage at the test point next to the sensor connector, with the sensor running, and an oscilloscope on the same point to see the ripple. [The first power-up](#/story/the-first-power-up) has it as the last step of the bring-up plan: the supply must stay above 3.16 V while the sensor's fan runs and the Wi-Fi is busy.
What to copy
- Find your pickiest part. Read its minimum supply voltage, and check whether that figure includes ripple.
- Add up the path. A switch, a bead, a thin track, two connectors and a cable are each a few tens of milliohms. Count the return path too.
- Use the peak current. The average hides the moment that matters.
- Check what sets your rail. The regulator's reference and both feedback resistors all count.
- Put a test point where the number matters, so the sum can be checked on the first board.
When a board like this goes to a maker, the tolerance has to travel with it. On EIN, makers quote from the BOM you upload. Write the full part number and the 0.1 % in that line, and say in your notes that the part must not be swapped for an ordinary one.