Radio-controlled IoT cleanup

At this point, I had three devices being controlled by radio transmitters:

  1. My blinds
  2. My garage door
  3. My deck lights

I realized that the blinds also used a frequency that the remote’s transceiver can handle (433.92 MHz). With a prompt, Claude was able to adapt the blinds controller code to run on the same CC1101 remote. I now had a single remote that could control all three. 🎉 Unfortunately, the device looked like this 😅

An ESP32 dev board on a breadboard, connected by a mess of jumper wires to a CC1101 radio transceiver board with an antenna.

Designing a PCB

How could I get rid of the wires? Perhaps Claude could design a PCB that I could mount the microcontroller and the radio transceiver to?

5 minutes later, Claude had used KiCad to lay out a PCB, and created a script to generate a matching 3D-printed enclosure.

The KiCad PCB layout for the CC1101 remote carrier.

A super simple PCB, but I had never done anything like this

Enclosure decoration

As impressive as it was that Claude had made an enclosure, it was just a plain, plastic box. I wanted it to have a little bit of decoration.

I had an idea for a hexagonal honeycomb mesh across the lid, but I had never done any 3D-printing CAD before.

Another prompt to Claude and it had implemented it. While it matched the brief, I felt that it could look more attractive if I changed some of the parameters.

I had Claude create an interactive app where I could drag sliders to adjust all the parameters and see the design update in real-time.

An interactive editor showing the enclosure lid from above, with a honeycomb mesh of hexagonal holes bounded by an S-shaped curve and a smaller copy in the opposite corner. Sliders on the right adjust the curve, hole size, rib width, and pattern angle.

Getting it fabricated

Looking around, there are a few companies that can fabricate a PCB, or 3D-print an enclosure, cheaply. I ended up using JLCPCB, which offered significant coupons for both the PCB and the enclosure.

I practiced my soldering enough to get the headers attached, and then plugged in the two components.

The custom black PCB with an ESP32 dev board and a CC1101 radio transceiver mounted on headers, and an antenna attached to the transceiver. Photo taken before the standoffs were installed.

When the enclosure arrived, the board fit so precisely that I initially thought I had screwed up, until I found the exact angle I needed to get the board to slot in.

The PCB screwed into the base of the black 3D-printed enclosure, with brass threaded inserts in each corner for the lid (added by JLCPCB). The ESP32’s USB-C port and the antenna’s SMA connector line up with the enclosure wall perfectly.

The end result is pretty nice, and the process was amazing. Even though I had no hardware/electronics experience, Claude had carried me all the way to a finished product for my home.

The finished CC1101 remote: a closed black enclosure with the honeycomb pattern on its lid, a red USB-C cable plugged into one side, and the antenna sticking out next to it.

It’s done! A consumer-grade electronics device, built by me, but really almost entirely by Claude. 🎉

Appendix: costs and bill of materials

Appendix: costs and bill of materials

Here’s a complete breakdown of the costs. All costs are inclusive of taxes, shipping, duties, etc., so they represent the total spent. All prices are in Canadian dollars.

Major components

  • 1 x ESP32 (Pack of 2): $23.72
  • 1 x CC1101 radio transceiver: $17.28
  • 5 (minimum quantity) x Custom 2-layer PCB: $4.56 + $22.07 shipping + duties = $26.63
  • 2 (minimum quantity) x Custom 3D-printed enclosure: $40.62

Subtotal: $108.25 CAD

Miscellaneous hardware

These are kits that contain far more pieces than I needed for this project (often hundreds).

Subtotal: $127.85 CAD

Total: $108.25 + $127.85 = $236.10 CAD

I then spent an additional $16.89 for another CC1101 radio transceiver, since that was the only component that I was missing to be able to make a second device (which I’ll give to someone for Christmas 🎅).

Could I have done it cheaper? For sure:

  • I could have ordered everything from cheaper retailers than Amazon (e.g., Temu, AliExpress, etc.)
  • I could have avoided UPS shipping on my JLCPCB order of the PCB (as I learned and later implemented for the enclosure)
  • I didn’t have any of the bolts, standoffs, headers, etc. ahead of time. I could have bought the exact quantity of hardware components from a catalog electronics distributor, paying far, far more per piece, but less overall.
    • Mouser lists $34.82 + $20 shipping + $7.13 tax = $61.95 for a single device’s hardware.
    • I’m having Claude design my future enclosures around the extras.

Lessons learned for next time. 😉

Michael Overmeyer is a Software Developer. Follow him on X.