PUEO

Carrier board

A board freezes the pin map, and the pin map is still one of the things bring-up can move. So this comes after hand-wiring a unit and bringing it up, not before. Order it second. The box it mounts into is on the enclosure page.

Design input for a KiCad project, not a layout. Everything below comes from the firmware pin map, the enclosure source, and module datasheets. Figures that still need a meter on them are marked [verify], they are datasheet-grade, which is enough to plan with and not enough to commit a boost converter to. No board has been made, which is the reason for the sequencing note at the end.

WHY IT CANNOT BE A SHIELD

This was going to be a board that plugs onto the CYD's headers. It cannot be.
The pins below are the 3.5″ ESP32-3248S035R's, which is now
the only board. They used to be the 2.8″ ESP32-2432S028R's throughout, which
is what this page was originally drawn against, and the difference was smaller
than it looked: two of the ten signals moved.

  CC1101 CS    27 → 21   27 is the backlight on the 3.5″
  NRF24 CSN     4 → 25   25 is the touch clock on the 2.8″

Both are the same shape of problem in opposite directions: the pin that
collides on one board is the spare on the other. Nothing else in the ten
moves, because the rest are the ESP32's own bus pins and the two boards share
a module.

The third difference does not reach J1 but changes the bus it runs on. The
2.8″ put its XPT2046 on a dedicated trio at 25/32/39 and this board hangs it
off the display's SPI behind TOUCH_CS, so the shared bus has four devices here
rather than five.

The argument for one held on both panels. The 3.5″ looks like it
has less to gain, on lcdwiki's E32R35T: that board brings the whole VSPI bus
out on a JST and NRF24's select out on another, which would be three joints
instead of six. It is a different board. Sunton's
ESP32-3248S035R has two headers, P3 and CN1, and no SPI
breakout at all, so the bus has to be tapped there exactly as it was on the
2.8″.

Six joints either way, and not on the microSD slot. The bus reaches the slot
through the ESP32, so the module's own castellations are the same nets without
putting the card slot at risk, and five of the six joints land on one edge of
it. Easier than it looks, and still six joints in a hand-wired bundle rather
than one documented board.

So the notes below stand as a design record for the panel they were drawn
for. A carrier for the 3.5″ is a different board and a smaller argument.

Of the ten signals the firmware needs, four reach a connector on the
3.5″ and six do not:

  CC1101 CS      GPIO 21    P3
  CC1101 GDO0    GPIO 22    P3
  CC1101 GDO2    GPIO 35    P3
  GPS TX → ESP32  GPIO  1    P1, the pin marked TX

  VSPI SCK       GPIO 18    module pad 9R
  VSPI MOSI      GPIO 23    module pad 2R
  VSPI MISO      GPIO 19    module pad 8R
  NRF24 CSN      GPIO 25    module pad 10L
  NRF24 CE       GPIO 16    module pad 12R
  PN532 SS       GPIO 17    module pad 11R

Four and six on both panels, but the four are better placed here. P3 is
GND IO35 IO22 IO21, which is all three CC1101 control
lines on one 4-way connector. On the 2.8″ the chip select was on CN1 and
only GDO0 and GDO2 are on P3, so that radio wants two connectors instead of
one.

The SPI bus itself is not exposed on either. The six that need soldering go
to the WROOM module's own castellations rather than to the microSD slot or
the RGB LED pads: same nets, and it keeps a hot iron away from the card slot
and away from three pads the LED is still using.

That is not an argument against a board. Hand-wiring four modules onto a
shared bus is roughly thirty joints; a carrier turns that into six, in one
documented place, on a pigtail you can inspect. An intermittent joint on
MISO would present as bus flakiness indistinguishable from a firmware bug,
and I have already spent a week on the firmware version of that problem.

[verify] CYD revisions differ. Check CN1/P3/P5 against the silkscreen on
the board in your hand before committing a footprint.

ARCHITECTURE

The enclosure decides this. The CYD mounts in the lid, a 55.5 × 92
window for its bezel, and everything else lives in the 84 × 142 × 20 base.
A lid-to-base harness therefore already exists in the hand-wired build. The
board replaces that harness and the loose modules both.

  LID                              BASE  (this board)
  +--------------+                 +----------------------------+
  | CYD          |                 |  radios . power . SMAs     |
  |  headers ----+---- harness ----+  J1  9-way                 |
  |  pigtail ----+                 |  J2  4-way                 |
  |              |                 |  J3  4-way                 |
  +--------------+                 +----------------------------+

Three connectors, and not all the same series. Look at where
the ten signals actually terminate on the CYD:

  six      solder joints on the WROOM module's castellations
  three    P3, a 4-way already on the board
  one      P1, the pin marked TX

So six of the wires have no connector at the CYD end at all. They are
soldered. A pre-crimped lead with one end cut, stripped and tinned serves them
perfectly, and it plugs into the carrier at the other end. The remaining four
are on connectors the board already has, and a pre-crimped 4-way plugs into
each one with nothing to make up.

Match that and there is nothing to crimp anywhere in the build:

  J1   9-way    the soldered six, plus grounds. No power pin
  J2   4-way    straight to P3, all three CC1101 lines
  J3   4-way    straight to P1: the 5 V in, and the GPS on the TX pin

The cables take J1 to J3 and the module headers on the board take J4 to J7:
CC1101, NRF24, PN532, GPS in that order. The cables are what somebody plugs
in, so they get the low numbers, and the module headers follow them.

J2 and J3 are JST GH. J1 is PicoBlade. That is deliberate, and
it is the detail most likely to be tidied into a mistake.

Both series are 1.25 mm pitch and they do not mate: GH latches against
the side of the shroud, PicoBlade on top. The CYD's own headers are GH,
settled by offering a PicoBlade housing to one and finding it will not seat
with the pitch correct. So J2 and J3 have no choice, and both are 4-way,
which is a size GH is stocked in.

J1 is the opposite case. Only one of its ends is a connector, because the
other is nine wires soldered to the CYD. Nothing about it has to mate with a
part the vendor chose, and at 9 ways it must not be GH: the hobby market
stocks GH at 4, 6, 8 and 10, which is the same wall that ruled out a single
14-way. PicoBlade runs 2 to 15.

Listings make this harder rather than easier. GH is the Pixhawk standard, so
plenty of drone-market listings carry "PicoBlade" and "for Pixhawk" in one
title. Search the series, not the pitch.

All three bought pre-crimped at 28 AWG, which is the thickest a
1.25 mm contact takes and what made-up cable comes as. Nothing in the
build needs a crimp tool.

All three sit at the bottom of the board, not near the modules they
serve. J2 could go in the top zone and shorten the CC1101 traces to about
20 mm, at the cost of more cable. That is the wrong trade: a routed trace over
a ground plane is a better transmission line than a ribbon conductor, so the
length belongs on the board. It also puts every cable at the same end, which
is the end the USB opening is in.

An 0.5 mm FFC is still the alternative if height ever gets tight, with the
same caveat as before: an FFC tail does not enjoy the lid being opened and
closed, and this lid comes off to get at the card.

LAYOUT

Proposed carrier board layout Scale drawing of a proposed carrier board for the Pueo base, 77 by 135 mm, with a scallop bitten out of each corner where the enclosure's four M3 bosses pass through. Two large openings run down the middle of the board: an upper one for the PN532, which has to sit on the thinned floor below to reach through it, and a lower one for the battery, which has to sit in its pocket. The two are separated by less than a millimetre, so in practice they are one opening 79 mm long. What is left is a frame: a top zone carrying the CC1101 and NRF24 radios with their SMAs at the wall and the GPS module between them, a bottom strip carrying the buck-boost converter and three connectors to the lid, and a 16 mm rail down each side carrying the SPI bus and the 3.3 V rail. Six standoffs support it. Carrier board, one way it could go (to scale) PN532 window module hangs through to the 1.4 mm floor battery opening the cell is 6-10 mm and lives in its pocket CC1101 sub-GHz NRF24 PA+LNA GPS ATGM336H buck-boost +3V3_RF SMA SMA J1 9-way J2 to P3 J3 to P1 R1 1k 16 mm rail 16 mm rail 77 mm board in a 79 mm case WHAT THE ENCLOSURE ALREADY FIXED module centres, all six SMA holes at x -23 and +22 boss positions, which bite the four corners the 1.4 mm floor under the PN532 WHAT THE DRAWING DECIDES 77 x 136, flush to the top wall six standoffs, 2.5 mm J1 J2 J3 at the bottom, all GH, and J1 PicoBlade R1 in the GPS TX line THE AWKWARD PART The PN532 must reach the thinned floor and the cell must sit in its pocket, so both are openings. They end up 0.5 mm apart, which is not a rib. Treat them as one 79 mm slot and the board is a frame: top zone, bottom strip, two 16 mm side rails carrying the bus and both rails.
One way the board could go, drawn to scale against the 84 × 142 base. The outline and every module centre come from the same constants as the enclosure, so most of this is consequence rather than opinion. What the drawing is for is the part that only shows up once you draw it: the two openings in the middle.
The enclosure has already decided most of it. Six module centres, two SMA
holes at x = -23 and +22, four boss positions and a 79 x 137 interior. Lay those
out and the board is mostly drawn before you have made a single choice.

The corners are not yours. The four M3 bosses run the full height of the
base, so the board cannot have corners where they are. A scallop of 5.5 mm about
each boss centre takes them off, which is 1 mm of clearance around a 4.5 mm boss.
Where each scallop meets an edge is arithmetic rather than eyeballing: 61.10 on
the sides, 31.10 on the top, 30.71 on the bottom.

The top edge is flush to the wall, and the other three are not. Both radios
reach y = 68 because their own edge-mounted SMAs have to line up with the
bulkhead holes in that wall. Hold the board 1 mm off it like the other three
sides and the radios overhang the board they are soldered to. So the outline is
77 x 136, inset a millimetre at the sides and the bottom and hard against the
wall at the top.

And then the middle of the board is not yours either. Two things in this
case have to touch the floor rather than sit on a carrier:

  The PN532 has to hang through to the 1.4 mm floor under it. The case
  thins the floor there so the NFC field can reach out, a budget that assumed
  the module lying on it. On a carrier it starts 4.10 mm higher, against a read
  range of a couple of centimetres. That argument is made at more length on the
  enclosure page and the conclusion is a
  window.

  The cell is 6 to 10 mm thick and the carrier's underside is 2.5 mm
  above the pocket floor. There is no version of this where a battery fits
  under the board. It stays in its pocket and the board opens over it.

Which turns out to be one opening, not two. The PN532 window ends at
y = -17.5 and the battery opening starts at -17.0. They overlap by half a
millimetre. There is no rib there to argue about, so the honest drawing is a
single slot 79 mm long down the middle of a 136 mm board.

So it is a frame, and that is the thing to lay out.

  top zone       y 25.5 to 68     both radios, the GPS, the SMAs at the wall
  side rails     16 mm each       the SPI bus and both power rails
  bottom strip   y -67.5 to -53   the buck, J1, R1

Sixteen millimetres is a comfortable rail, and it got easier when the 5 V rail
went: a 0.5 mm +3V3_RF trace and the five signals at 0.25 with room between
them, which is the whole bus from the top zone to J1. There is no second power
rail to keep off it any more, so the spare width goes to separation rather than
to copper.

Six standoffs, not four. At (±33, ±58) and (±36, 0).
The four corners are the obvious ones; the mid-span pair are there because a
frame with a 79 mm slot in it is a different stiffness problem from a solid
board, and the middle of a side rail is where it will flex.

Three connectors along the bottom, not one. J1 at (21, -58) for the six
signals that solder to the WROOM castellations, J2 at (-16, -58) straight to P3,
J3 at (-26, -58) straight to P1. The reasoning is in
architecture and it comes down to this: six of the ten wires
have no connector at the CYD end, and the other four plug into connectors the
board already has, so pre-crimped leads cover the whole build and nothing needs
a crimp tool.

All three clear the bottom-right boss scallop by 9.7 and the bottom-left boss
by 8.5.

Which panel is this for? The 3.5″, which is the only one left.

Mechanically it never mattered much. The base is the same shell whichever CYD
goes in the lid; only the microSD slot in the lid moves with the bezel, so the
outline, the scallops, the openings, the standoffs and the rails were always
common. Electrically it did, and J1 below carries the 3.5″
pins now: CC1101 CS on GPIO 21 and NRF24 CSN on GPIO 25.

What this drawing is not. It is a placement study, not a layout. No
routing, no pour, no decoupling shown, and the module footprints are outlines
rather than land patterns. The numbers it commits to are the outline, the
openings, the standoffs and J1's corner. Everything inside those is still open,
and bring-up comes first either way.

HARNESS PINOUT

One table for J1, J2 and J3 together. It is the signal list, and
it does not care how many housings the signals arrive in. Pins 4, 5, 6, 10, 11 and 12 are J1's, the soldered six. Pins 7, 8
and 9 go out on J2 to P3. Pin 13 goes out on J3 to P1. Power and grounds
follow J1.

  1   GND
  2   GND              two grounds at this end
  3   (was +5V_SW)    removed: the CYD is powered over its own USB-C
  4   VSPI_SCK         GPIO 18    module pad 9R
  5   VSPI_MOSI        GPIO 23    module pad 2R
  6   VSPI_MISO        GPIO 19    module pad 8R
  7   CC1101_CS        GPIO 21    P3
  8   CC1101_GDO0      GPIO 22    P3
  9   CC1101_GDO2      GPIO 35    P3, input-only on the ESP32 side
 10   NRF_CSN          GPIO 25    module pad 10L
 11   NRF_CE           GPIO 16    module pad 12R
 12   PN532_SS         GPIO 17    module pad 11R
 13   GPS_TX           GPIO  1    P1 TX, through R1, see below
 14   GND

Ground on 1, 2 and 14 rather than one pin somewhere. This is a multi-drop
SPI bus running down a cable; every signal wants a return next to it.

Two pins carried the whole panel difference. On the 2.8″, pin 7
CC1101_CS was GPIO 27 on CN1 and pin 10 NRF_CSN was GPIO 4 on the RGB LED's
red pad; the connector, the pin count and the other twelve positions were the
same. The plan was to jumper those two nets rather than route them, so one
board could serve both panels for the price of two links and a silkscreen
note. That is moot now, and it is worth recording that it would have worked:
the expensive part of supporting two boards was never the copper.

[verify] GPIO 25 is free on the 3248S035R and not on the -C. The
resistive-touch part hangs its XPT2046 off the display's SPI behind TOUCH_CS,
which is what frees 25. The 3248S035C is the same board
with a GT911 capacitive controller on I2C, and 25 goes to it. This pinout on a
-C board drives a chip select into the touch controller. The two are told
apart by whether touch works at all.

THE GPS SERIES RESISTOR

R1, 1 kΩ, in the GPS TX line before J1 pin 13.

GPIO 1 is UART0's transmit pin. Why the GPS sits there rather than on GPIO 3
is a property of the stock CYD map and is argued on the
hardware page; the short version is that the
USB-UART bridge drives GPIO 3 and does not drive GPIO 1.

What that leaves for this board is the overlap. The console owns GPIO 1
whenever a GPS feature is not open, and the GPS
is transmitting regardless. The firmware releases the pad before reading
(gpsPortOpen() hands UART0 over and back), which fixes the direction problem
but not the overlap. R1 limits the current during it.

Worth putting in copper specifically because it is invisible, easy to forget
on a rebuild, and failing to fit it degrades a GPIO slowly rather than
failing in a way you would notice.

POWER

One rail, one converter, and it runs off USB. Decided 2026-09-26, and
it is three parts smaller than this section used to describe.

  USB-C --> the CYD --+--> the CYD itself
  from a bank         |
  or a charger        \--> P1 `5V` --> buck-boost --> +3V3_RF --+--> NRF24
                                        (carrier)               +--> CC1101
                                                                +--> ATGM336H
                                                                \--> PN532

Power arrives on the CYD's own USB-C and the carrier taps P1's
5V, which is the board's 5 V input node and is live whenever
USB is. A power bank makes it portable and brings its own charger and its own
protection circuit with it, which is why there is no cell in the case: they are
harder to buy than a bank, and a bank solves the charging and protection
questions rather than posing them.

Three parts left, and none of it was a compromise. The
TP4056 because the CYD carries an
FM5324GA beside BAT1, one chip that charges a cell
and boosts it to 5 V, read off the part rather than inferred. The
MT3608 because nothing wants 5 V: the GPS is capped at
3.6 V absolute and the PN532 takes 3.3, so the stage was a conversion to
nowhere. And the MP2307 because it needs 4.75 V in and a
1S cell never reaches it. A buck only steps down, and below about 3.6 V the
RF rail would sag with the supply and brown out the PA modules exactly when it
was lowest.

That last constraint is why the survivor is a buck-boost and not a
buck. It also costs a conversion less: one switcher at about 90% rather than
two in series at roughly 81% end to end.

A cell is still a drop-in. The enclosure keeps its pocket and its
BAT1 route, unused; fitting one is a single wire, the converter's input taken
from the battery instead of from P1. The part chosen spans 2.7 to 11.8 V, so
both sources sit inside its range and nothing else changes.

The separate 3.3 V rail itself is not a refinement. The PA/LNA modules brown
out sharing the CYD's regulator, which is why the enclosure still carries a
buck at (0, -60) with the rest of the power stack gone.

  load                          rail      typical     peak
  PN532                          +3V3_RF    ~10 mA    ~100 mA field on  [verify]
  NRF24L01+PA+LNA                +3V3_RF     45 mA    ~115 mA +20 dBm   [verify]
  CC1101                         +3V3_RF     16 mA     ~34 mA +10 dBm   [verify]
  ATGM336H                       +3V3_RF    <25 mA     100 mA peak      datasheet

The CYD is not on this list any more. It powers itself from its own USB-C, so
the carrier's budget is the four modules on one rail: 349 mA if every
one of them peaks together, which they do not, and about 96 mA with all of them
idle.

The PN532 moved rails rather than changing: its guide gives VCC as 3.3 to 5 V,
and SPI on that board is 3.3 V TTL, which is the mode this build uses. The
GPS's figure is from its own datasheet and is four times what was estimated
here, on the number that sizes the converter.

The rail's draw reflects back onto P1's 5 V, scaled by 3.3/5 and divided by
the converter's efficiency:

                  +3V3_RF        drawn at 5 V     plus the CYD    from the bank
  worst case      349 mA    ->      256 mA           310 mA          566 mA
  idle             96 mA    ->       70 mA          ~200 mA          270 mA

Worst case assumes everything transmits at once, which the shared SPI bus
makes impossible. The firmware enforces one owner at a time, so the radios
cannot all be mid-transaction together.

The CYD's own draw does not pass through the carrier at all. It arrives on the
same USB-C and goes straight to the board, so the bank sees the sum and P1 sees
only the converter's share.

The CYD's 310 mA is the one measured figure in that table. Taken on
2026-09-27 from a bench supply on BAT1 with the beacon spammer transmitting:
448 mA at 4.00 V, 1.787 W. The 5 V figure is that power
converted for the USB socket, where the board's own boost is not in the path,
allowing 85 to 90% for it. The estimate it replaced was 500 mA, so the largest
line in this budget was high by about half. The idle figure next to it is still
a guess.

Any power bank will do this. 566 mA at 5 V is inside the 1 A a basic bank
delivers and a long way inside 2 A. Runtime is now the bank's rather than a
cell's: a 10,000 mAh bank is roughly 30 Wh usable, and at about 2.8 W that is
ten hours or so, against the two a 2000 mAh internal cell would have
given. If it is short, the lever is the backlight, not the radios.

Measured 2026-09-29: the path is 2.33 Ω. Two points on one USB
source, nothing unplugged between them:

  open circuit          4.582 V
  220 Ω                 4.534 V      20.6 mA

V = Voc - I*R gives 2.33 Ω, or 2.23 to 2.43 allowing a millivolt
of meter resolution on each reading. That is the whole path, the USB lead
included, so the share belonging to this board is smaller than it looks.

  load                     pin sits at      in the path
  108 mA                      4.33 V           0.03 W
  256 mA, the converter       3.99 V           0.15 W
  500 mA                      3.42 V           0.58 W

The tap is sound. The S7V8F3 is specified from 2.7 V in, so 4 V is
comfortable rather than marginal, and 0.15 W across a cable, a trace and a
contact heats nothing.

It also explains the reading before it. 4.75 V at 87 mA on 2026-09-26 looked
incompatible with 4.534 V at 21 mA, voltage rising with current, which no
passive source does. At 2.33 Ω it resolves: that day's supply sat at 4.95 V
and this one at 4.58. The source voltage belongs to the charger and the
resistance belongs to the board, and only the second is this design's problem.

This section used to end on whether the 5 V arrives at all.
Whether P1 is an output when the board runs from BAT1 rather than from USB was
the thing the tree above hung on, and it is not: measured on 2026-09-26, the
same day as the decision at the top of this section, and the readings are on
the hardware page. The pin is an input, the
carrier taps a node that is live whenever USB is, and nothing here waits on a
measurement any more.

It is still why the converter is a buck-boost and not a buck.
A 1S cell swings 3.0 to 4.2 V across a 3.3 V target, so the rail wanted one
whichever way the pin went, and the arithmetic is also why the two-module
route did not come back when the question closed: boosting to 5 and bucking
back to 3.3 is two switchers in series at roughly 90% each, about 81% end to
end, against a single conversion at about 90%.

  route                        conversions   end to end   depends on
  cell → boost → buck → 3V3      2            ~81%        P1 being an output
  cell → buck-boost → 3V3          1            ~90%        nothing unmeasured

The second route also needed nothing that was not already known, which is
what made it the one to take before the pin had been measured rather than
after.

Settled 2026-09-26: the PN532 takes 3.3 V, and the 5 V rail is gone.
This section worked out that the question was not the chip but the module's
regulator, and it named the right test. The Elechouse V3 guide answers it
without one: VCC 3.3 V to 5 V, and SPI on that board is
3.3 V TTL, which is the mode this build uses. So the module is specified for
the rail it is on.

With the GPS capped at 3.6 V absolute and both radios at 3.3, nothing in the
base wants 5 V at all, and the option below marked "the 5 V rail disappears
entirely" is what happened. The reasoning that follows is kept because it is
how the answer was found, and because the failure it predicts, a low-dropout
regulator leaving the chip under its 2.7 V minimum, browning out on the field
pulse rather than failing cleanly. Is still the one to watch for if a
different PN532 board ever goes in.

The three options as they stood:

  A small boost from the cell, for the PN532 alone. Sized for 100 mA
  instead of 800, so a much smaller part than the MT3608 this replaced.

  Run it at 3.3 V off the RF rail, and the 5 V rail disappears
  entirely, leaving one converter on the whole board. The
  build guide says 5 V; this is the option to
  check.

  The chip is not the constraint. NXP's PN532 runs from
  2.7 to 5.5 V, so 3.3 V is comfortably inside its range
  with a volt to spare at the bottom. That settles the silicon and leaves
  exactly one question: what sits between the module's VCC pin and that chip.

  The V3 red boards carry their own regulator, and which one decides this. A
  low-dropout part, or a module designed to accept 3.3 to 5 V, passes 3.3 V
  through with enough left over. An ordinary 3.3 V LDO does not: around a
  volt of dropout on a 3.3 V input leaves the chip near 2.3 V, under its own
  2.7 minimum, and it browns out on the field pulse rather than failing
  cleanly at power-up. That is the failure worth predicting, because it looks
  like a flaky reader rather than a supply problem.

  So the measurement is not on the module's VCC pin, it is on the chip's
  side of the regulator with 3.3 V going in. If that reads 2.7 or better the
  chip is happy. No datasheet settles it, because the regulator varies
  between boards wearing the same silkscreen.

  And "the chip is happy" is not the same as "this is a good idea".
  The supply is what drives the antenna. Run the PN532 at 3.3 V instead of 5
  and the field weakens with it, which costs read range. On most designs that
  is a footnote. Here it lands on the one number this whole enclosure has
  already been bent to protect.

  Read range on these modules is a couple of centimetres to start with. The
  case thins its floor to 1.4 mm under the coil so the field
  can reach out through it. A carrier lifts the module 4.10 mm, which is bad
  enough that the answer was to cut a window and let it hang through to the
  floor. Every one of those is spending something to keep the range that
  exists. Dropping the supply gives some of it back.

  Which reverses the recommendation. A boost sized for the PN532
  alone is a small part: about 100 mA peak against the 800 mA continuous the
  old one carried, sitting in a bottom strip that has room for it. Against
  that, running at 3.3 V saves one component and costs range on a reader that
  has none to spare. Take the small boost, and keep 3.3 V as the fallback if
  the 5 V turns out to be more trouble than the part is worth.

  The fallback is what happened. The Elechouse
  guide settled the regulator question without a measurement, so the boost
  was never bought and the range it would have bought back is a cost this
  build is carrying.

  This is about the supply, and only the supply. Worth saying because
  the obvious next thought is to move the PN532 onto a different interface
  while you are in there, and on this board that is always a trade rather
  than a find. It sits on SPI at SS 17 because 17 is a
  pin nothing else wanted. The two routes that look free are not:

    UART on P1   takes GPIO 1 and 3, which are the GPS's line
                  and the USB bridge's. Costs the GPS.
    I2C on CN1   takes IO21 and IO22, which are CC1101 CS and
                  GDO0 on the 3.5″. Costs sub-GHz.

  Both also mean rewriting rfid.cpp, which constructs
  Adafruit_PN532 on software SPI. There are no spare
  pins on this board; anything that appears to find a pair has not said what
  it displaced.

  Find the 5 V on the board, since the FM5324GA has to be boosting to
  something whether or not P1 exposes it. That is tracing work rather than
  measurement, and it trades a connector for a solder joint on a net nobody
  has identified yet.

Decoupling

  10 µF across the NRF24 supply at the module pins, not by the regulator.
    This module is notorious for browning out on TX transients and a few
    centimetres of trace inductance is enough to cause it.
  100 nF at every module VCC.
  100 µF bulk on +3V3_RF at the buck.
  220 µF bulk at the converter's input, where P1's 5 V arrives. This was
  specified at the boost's output; there is no boost now, but the reason
  survives: the input is at the far end of a USB cable and a connector, and
  the converter's draw steps with the radios.

Trace widths, 1 oz copper, outer layer, 10 °C rise

  P1's 5 V in, to the converter  up to 260 mA    0.5 mm
  +3V3_RF                      up to 500 mA    0.5 mm
  signals                                      0.25 mm

SPI INTEGRITY

Four devices on one bus, three of them down a cable. This is the part of it
most likely to disappoint.

Four rather than five because this panel puts its touch controller on the
display's bus instead of this one,
why that mattered is on the hardware page.

  Daisy-chain along an SCK/MOSI spine rather than star-wiring from J1, and
  keep the stubs to each module short.

  Footprints for 22 Ω series resistors on SCK and MOSI at the J1 end.
  Fit 0 Ω. They exist so that ringing is a part swap instead of a respin.

  The CC1101 runs at 4 MHz and the NRF24 at up to 10 MHz. At 10 MHz down a
  cable, edge rates start to matter.

  Chip selects are the nets to route awkwardly if something has to be. They
  are static for the length of a transaction, so a long CS trace costs
  nothing.

BEFORE LAYING ANYTHING OUT

Build it by hand and bring it up first.

A PCB freezes the pin map, the one on the
hardware page, which is also the page to
build from until this board exists. Three things could still move it:

  The GPIO 1 GPS handover is reasoned from the ESP32 core source and the
  datasheet, with nothing measured. If it does not work, the GPS moves to
  another pin and J1 changes with it.

  The SPI arbitration rests on a prediction that the touch controller was
  losing the bus to the radios. If that diagnosis is wrong, the fix is wrong.

  Surveillance's signatures come from public research rather than captured
  packets.

None of those argue against designing the board. They argue for ordering it
after bring-up rather than before.

First spin scope: two layers, 1.6 mm, 1 oz. J1 and the pigtail, the power
tree with its separate RF rail, module headers at the positions above, R1,
the series-resistor footprints, the decoupling, and test points on P1's 5 V
in, +3V3_RF, SCK, MISO and GPIO 1. Leave off anything not needed to prove that
much. The second spin is for what bring-up teaches you.

Deliberately not fitted: a sub-GHz PA. The stock CC1101 transmits at
+12 dBm, which this firmware already asks for: setPA(12) at three
sites, the chip's own ceiling. An Ebyte E07-433M20S reaches
+20 dBm on the same 433 MHz work from a footprint that fits the same space, and
its core is a CC1101, so every register, the whole driver and all six SPI wires
are unchanged.

Asked in September 2026 whether it would therefore just work as a swap. Most of
it would. The amplifier would not, and that is the half worth understanding
before ordering one.

The module cannot be left to itself. Ebyte's manual gives
TX_EN and RX_EN as active-high inputs that
must be asserted before data moves, and says they cannot both be high. Float
them and the T/R switch sits in a state the manual does not describe, with a PA
and an LNA in the path that are not enabled. So a straight swap is not the same
radio only louder. It is plausibly quieter than the bare CC1101 it replaced,
which is the worst way to find out.

The trick that normally makes those pins free is already spent here.
Driving a CC1101 PA usually costs no GPIOs at all: configure the radio's own
GDO0 and GDO2 as PA_PD and LNA_PD through
the IOCFG registers, and the switch follows the radio by itself. This build
cannot. Both GDO pins carry data, GPIO 22 outbound and GPIO 35 in, handed to
the driver as setGDO(TX, RX) at five sites, which is what the OOK work needs
them for. That is the real obstacle, and it is sharper than the pin count this
section used to lead with.

The power objection is withdrawn. It moves the budget by 66 mA:

                       CC1101          E07-433M20S
  transmit             34 mA           100 mA at +20 dBm
  receive              16 mA            20 mA
  supply               3.3 V            2.1 to 3.3 V, 3.6 V max

  +3V3_RF worst case   349 mA    ->    415 mA
  from the bank        566 mA    ->    614 mA

The +3V3_RF pour is sized for 500 mA already, the S7V8F3 is a 1 A part, and the
module's supply range covers the rail exactly as the CC1101 does. Nothing in
the power design has to change. Module figures from the E07-433M20S user
manual, v1.20.

Three ways to do it, cheapest first.

  Tie RX_EN high and TX_EN low. A permanently enabled LNA. No GPIOs, no
  firmware change, and every receive path gains the module's sensitivity while
  every transmit path silently radiates nothing. For scanning and analysis that
  is a real option rather than a consolation prize.

  One GPIO and an inverter. The two signals are complementary, so
  TX_EN = G with RX_EN = !G halves the cost to a single pin. The firmware then
  has to drive it, and the scope is bounded: 15 call sites in subghz.cpp, 9
  SetTx() and 6 SetRx(), which a wrapper around those two covers.

  Free a real pair and drive both directly. The obvious candidates are
  gone: GPIO 4 is the RGB LED's red channel and GPIO 0 is a strapping pin that
  decides boot mode, so this means J1 grows and something else moves.

[verify] GDO0's direction before trusting any of it. Ebyte's pin table
lists it as an output, while this firmware drives it as an input to the radio
for asynchronous TX. Almost certainly the module passes the CC1101's pin
straight through, but a buffer in the way would be a contention. It is a meter
and five minutes.

What other projects say about it, and how much transfers. A set of
notes on this module reads: powered from an independent 5V to 3.3V buck rather
than the CYD's 3.3 V rail, because the PA draws too much current; same for the
NRF24 E01-2G4M27SX; enable PA mode in Settings > CC1101 Module; E32R28T/E32R35T
only.

The first two transfer completely, and are the rule this board was built on
before those notes were seen. The third does not: there is no PA mode setting
in this tree, and the only thing resembling one is setPA(12), which sets the
CC1101's own output power and has nothing to do with an external amplifier's
enable pins. The fourth is the one to read carefully, because
E32R28T and E32R35T are lcdwiki part numbers rather than Sunton
ones, and confusing the two is exactly how four wrong pins entered this
tree. A note scoped to those boards is scoped to hardware that is not this
hardware.

Two reasons it is still not fitted. Transmit testing happens in a
shielded enclosure, where 8 dB buys nothing. And 100 mW at 433 MHz is well above
what the ISM allocations permit for general use on either side of the Atlantic,
so the extra power is only usable in the cage where it is not needed. Worth
revisiting if the sub-GHz work ever moves outside one.

SEE ALSO