At the end of my first myQ post, I mentioned that getting standalone HomeKit support without Homebridge would probably require a custom board with a more capable MCU than the 828LM’s 8-bit PIC18. That idea spiraled into designing something flexible enough to serve as a standalone HomeKit (or other IoT platform) accessory hub.
After seeing this X post from an OpenAI engineer who designed and built a 5-port gigabit switch using Astra 6 and KiCad, I wanted to take a crack at it too.
While I had designed and assembled simple circuits by hand in Eagle, I had never built anything more complex than through-hole assemblies on 2-layer boards. SMDs seemed daunting, especially since I don’t have hot-air soldering equipment or a hot plate (yet). Since I was going to have the board fabricated anyway, the goal was to design something I could reuse for other projects (if it works).
After nine revisions, I ended up with a fabrication-ready 70 × 70 mm 4-layer board, a 3D-printed enclosure, and bring-up firmware.

BC-HK1 Rev I (70 × 70 mm, 4-layer)
Architecture and early revisions
The first four revisions started out as an Ethernet-only board built around an ESP32-P4 and a CC1101 radio (I went with the CC1101 since I already had some experience with it from my Flipper Zero projects). That fit the original 828LM replacement idea, but once I saw how much work was going into power, isolation, RF layout, and an enclosure, making it Ethernet-only felt too limiting.
Starting with Rev E, I pivoted to a more flexible setup:
- MCU: ESP32-C6-WROOM-1-N8 with 8 MB flash, Wi-Fi 6, BLE, and 802.15.4 (Thread/Zigbee), plus native USB Serial/JTAG for flashing and debugging
- Wired Ethernet: W5500 SPI Ethernet controller (10/100BASE-TX) sharing the SPI bus with the radio, with separate chip selects and interrupt/reset lines
- Sub-GHz radio: Bare TI CC1101 using TI’s 868/915 MHz reference layout, a Johanson balun, and a U.FL connector for an internal 915 MHz perimeter antenna. SPI and control lines route back to the MCU so firmware can handle both packet-based and pulse-timed protocols
- Expansion: Two adjacent top-entry 1 mm Qwiic sockets for daisy-chaining 3.3 V I2C accessories
- Form factor: I wanted something compact, under 4 inches, and a 70 × 70 mm footprint felt right once modeled. It has M3 corner mounting holes, two pinhole side buttons, three status LEDs (green for power, blue for network, yellow for pairing mode), and Ethernet and USB-C jacks overhanging the board edge by 2 mm so they sit flush in the 3D-printed enclosure
Power and PoE
Power ended up being the trickiest part of the board. I run a lot of PoE devices at home, and for ones that don’t support it natively, I usually add a splitter, especially for anything mounted in hard-to-reach spots. For this board, I wanted native 802.3af PoE alongside USB-C, with either input able to run the full board on its own (USB-C during development and PoE when deployed). When both are plugged in, PoE needs to take priority with no backfeed, while USB still works for flashing and debugging from my MacBook Pro. Dual power is an edge case, but I didn’t want to accidentally fry anything.
Adding up the worst-case simultaneous 3.3 V load came out to about 567 mA (382 mA for Wi-Fi TX, 132 mA for W5500 TX, 33.4 mA for CC1101 TX at +11 dBm, plus LEDs and Qwiic headroom). At 85% conversion efficiency, that’s around 490 mA from a 4.5 V USB input before startup margin, which meant a simple diode-OR power circuit wasn’t going to cut it.
The power path ended up with a few layers:
- PoE: An 802.3af module (Ag9905LP) with at least 3.0 mm of copper separation between the 48 to 57 V primary side and the secondary circuits (including ground planes). The Ag9905LP needs at least a 200 mA load to keep its output voltage in regulation and stop the PoE switch from cutting power when the MCU is idle or in reset, so the board includes four 91 Ω 0.75 W preload resistors acting as a constant dummy load (split across four resistors to spread out the heat).
- Source selection and 3.3 V rail: A priority power mux (TPS2116) selects PoE whenever it’s above 4.33 V and feeds a fixed 3.3 V buck converter (AP63203).
- USB-C PD and current limiting: A PD sink (HUSB238) requests 5 V / 1.5 A, paired with a hardware current limiter (TPS2553) whose limit resistor is switched across three tiers by an I2C switch (ADG728). During USB attach or ROM flashing, the board stays inside the lowest USB current allowance. Once firmware confirms either PoE or a 1.5 A USB-C source, it turns on a load switch (TPS22919) to power up the W5500 Ethernet, CC1101 radio, and Qwiic ports.
I also hit an unexpected bus issue when adding the Qwiic ports in Rev I. The HUSB238 PD controller’s I2C pull-ups are tied to USB_VBUS, while Qwiic devices run off the switched PER_3V3 rail. Putting them directly on the same I2C bus risks backfeeding or hanging the bus when USB is unplugged. Adding a TI TCA9543A 2-channel I2C switch isolated the PD controller from the Qwiic connectors.
Agent driven KiCad
KiCad pairs really well with agents because the schematics, board files, design rules, and footprints are all plain text, and kicad-cli can run ERC, DRC, Gerber exports, and 3D STEP generation from the command line.
I kept the project grounded with a spec file and basic rules: keep each revision self-contained under hardware/rev-<letter>/, keep custom symbols and footprints local to the repo, and run kicad-cli ERC, DRC, and schematic parity checks before wrapping up a change.
That got me surprisingly far, but passing KiCad DRC only checks geometry rules. It doesn’t catch undersized power traces or anything in the fab process, like placement or BOM issues.
Separate review passes
I used GPT 6.2 Astra for the board designs and Gemini Neon for verification, leaning on this split for the last three revisions before sending the board to fab. I ran Neon in read-only mode to audit the committed KiCad files, Gerbers, BOM, placement files, and live JLCPCB stock, alongside a handful of small verification scripts to check power feeds and component placement.
The review caught several problems that needed addressing:
- PoE clearance violation: The Ethernet shield trace ran less than 0.4 mm from both the high-voltage PoE side and the low-voltage ground plane, effectively bridging the 3 mm isolation gap required for PoE.
- Narrowed power trunk and leftover stub: The
USB_LIMITEDtrace narrowed down to a single 0.20 mm segment on the bottom layer for almost 5 mm and still had a 10.35 mm dead-end stub with two orphaned vias left over from Rev G. - Misplaced ICs: Some SMDs were rotated in the wrong direction with pin 1 either sitting on the wrong pad or completely off the pads.
- Fab and assembly cost: Several passives needed to be swapped out for alternatives in JLCPCB’s stock to avoid sourcing fees.
Cutting fabrication and assembly costs
One thing I completely missed in my initial spec was cost. By Rev G, the board was electrically solid, but it was way too expensive. I naively had SMD components on both top and bottom, several passives and components would have had to be sourced by JLCPCB, and I made a few other newb mistakes. Just the JLCPCB quote for 5 bare boards (the bare boards were only $15) and 3 SMD-assembled units landed around $400 before tariffs, and closer to $500+ with through-hole sourcing and assembly (yeah, wtf was I doing).
For the next revisions, I focused on reducing costs significantly.
| Cost lever | Rough savings | Changes |
|---|---|---|
| Single-sided SMD assembly | ~$55–$60 (plus Basic fee waivers) | Moved all 22 bottom-side SMDs to the top, unlocking Economic PCBA ($8 setup vs ~$51 and one stencil instead of two) |
| Basic library parts/BOM consolidation | ~$60–$70 | Swapped generic passives to JLCPCB Basic and Preferred Extended parts ($0 feeder fee vs ~$3 per unique Extended part) and merged duplicate values, making 23 of 51 BOM lines fee-free |
| Dropping POFV, BGA, and paid options | ~$100–$120 | Moved vias off pads, swapped the 0.4 mm BGA for a leaded SOT-23-6 (TPS2553, no X-ray), sized traces to JLCPCB’s standard 4-layer stackup, and switched from ENIG to Lead-Free HASL |
| Self-sourcing and hand-soldering through-hole parts | Avoids Global Sourcing and THT fees | Left the PoE MagJack, USB-C jack, PoE module, and 915 MHz antenna off JLCPCB and instead ordered from DigiKey for ~$45 |
Combined, those changes cut the JLCPCB quote roughly in half, from around $400 down to ~$157–$195 before shipping, with the remaining through-hole parts coming in from DigiKey to hand-solder once the boards arrive.
By the end of it, cost was down to $175 before shipping/fees for 5 bare boards with 2 of them fully assembled SMDs. Not cheap, but I thought it was reasonable. The shock came in the tariff costs, which almost doubled the cost to about $330.

Checking part rotations and alignment for Rev I in JLCPCB’s placement preview
Designing the enclosure
Whenever I design something in CAD that integrates with other hardware, I like to bring everything into the assembly so I have a visual frame of reference. Having the full 3D board model, complete with components, external ports, and buttons, makes designing and checking tolerances straightforward.
I designed the enclosure by hand using SolidCraft just to see how it compares to Fusion. I was blown away by the polish and speed. While it does not have all the features of Fusion yet, it had everything I needed. And the bonus, no crashes! Also loved additional quality of life features I always wanted in Fusion, like easily adding a lip for a lid vs sketching and extruding.

Enclosure assembly with PCB model
Current state and next steps
As of this post, the boards are fabricated and on the way (~1 week turnaround!). While waiting on the boards, I put together a progressive bring-up firmware suite so I can test one subsystem at a time before diving into application firmware: power rails and USB attach current, PD negotiation, current-limit tiers, 3V3 switching, Ethernet, SPI/RF, and the I2C bus.
Closing thoughts
Designing a 4-layer board without an EE background turned out to be within reach in a short amount of time with agents (we’ll see if it works!). For complex tasks and builds, I usually have another agent independently review, usually the same model or better. For this project, I used Gemini Neon as the reviewer, mainly because I had good early signals on how strong it was with coding (yes I know, doesn’t mean it would be good at circuit design). So far, Neon seems pretty solid on this project, but did have a few annoyances along the way (like Google signing me out randomly and being paranoid that they would lock me out of my account).