Part 3 of my XR18 handheld controller build. The first post covered why I chose MIDI, and the second covered the parts. This one is about the first time I put the parts to work, and about what an AI assistant can and cannot do for a hardware project.
The plan for the first test
Before wiring the whole controller, I wanted to prove the most basic thing: that one board can send a number to another board over the air. The test was deliberately small. One ESP32 with a rotary encoder and a small OLED display would send the encoder’s value over ESP-NOW. A second ESP32 with the same type of display would show whatever it received.
I planned it with Claude as a series of small steps, not one big program: get the display working first, then the encoder, then the radio.
What worked
Three things came out right the first time:
- The wiring diagram. Claude gave me the encoder and display wiring, and it was correct. Every pin did what the diagram said.
- The Arduino setup instructions. The board, the libraries and the upload steps were all correct.
- The first display test. A short program that only drew something on the OLED worked on the first upload.
This is where Claude is genuinely useful. Wiring tables, library names and setup steps are well documented, they follow common patterns, and a wrong answer is easy to spot.
Claude’s eyes are the serial port
The trouble started when I combined the encoder code with the display code. To understand why it was hard to fix, you need to know how Claude sees my project. It doesn’t. It cannot see the breadboard, the display or the encoder. I started in a Claude Cowork session, where I compiled and uploaded with the Arduino IDE myself and told Claude what happened. Later I moved to Claude Code with the Arduino tools installed, so it could compile, upload and read the board on its own. Either way, the only automatic channel from the hardware back to Claude was the serial port: the text the board prints.
That channel turned out to be unreliable. This is what the Serial Monitor showed:

A stream of garbage characters. It looks like a crashed program, and that is how it was read. But according to my own notes from the bench, it wasn’t a crash at all. Opening the serial port toggles the DTR and RTS lines, which on many ESP32 boards can pull GPIO0 low and drop the chip into its download mode. In that mode the board spews noise, or loops its boot message, and the firmware is never running. A boot-loop that appears only on the first capture after an upload is often the same thing.
So we spent hours chasing problems that did not exist: a decoupling capacitor, WiFi.setSleep(false), the order of the initialization code. None of it mattered. The firmware was fine and the measurement was wrong. What fixed it was reading the port with a small script that controls DTR and RTS, instead of the Serial Monitor, and trusting the OLED over the serial text.
A human debugging this would look at the board. Claude could only read what came out of the serial port, and that text was lying.
The invisible text
The second problem was the blank display. The display worked in the simple test, but after I combined it with the encoder code, it stayed blank. Claude worked through the likely causes in turn: crash checks, an LED blink test, serial prints, my breadboard wiring, a rewrite of the encoder interrupt code, a watchdog fix, and unplugging the encoder’s CLK and DT wires one at a time to see whether one of them was locking up the display’s I2C bus. I ran through five versions of the test sketch.
Seeds of the problem: During the first display test that worked, I told Claude the display color looked wrong: it should be white, but the word “Hello” was yellow and the text below it was blue. Claude had no way to see that, but it recognized the description. The ELEGOO panel I bought is a two-tone display, with a yellow strip across the top and blue below, and the color is set by the hardware, not by the code.

It seems like Claude made up its mind that the color of the display won’t change because the module was made that way. So it never suggested that setting text color would fix the code. This is where I had to take over coding. I looked at the display test code which had worked and found one line missing: setTextColor. My response after a few days of tinkering shows my frustration.

The cause turned out to be a missing text-color setting in my sketch. Without it, the library drew the text in a color that matched the background, so every draw call succeeded, the I2C bus was fine, the wiring was fine, and the text was simply invisible. There was nothing for a diagnostic to detect.
This is the same blind spot as before, from the other side. Claude’s checks all passed because the serial output said everything was healthy. Only someone looking at the screen could see that nothing was on it.
Where Claude was right: the battery polarity
My LiPo battery’s plug fit the charging board’s socket, so it looked like the two would simply work together. Claude warned me more than once not to trust that. LiPo plugs aren’t standardized, it said, and reversed polarity can destroy the charger board, so I should check the polarity with a multimeter before connecting anything.
It was right. The plug fit, but its polarity was the opposite of what the board expected. Claude then explained how to release the two metal crimps inside the plug and swap them, so I didn’t have to cut or splice any wires. After that, the board gave me 5 V from the battery alone, and the orange charging light came on when I plugged in USB-C. I have only tested this without the ESP32 attached, and the other batteries in the pack need the same check before I use them.
Claude couldn’t know which way my battery was wired, and neither could I until I put a meter on it. The meter decided, not the confident tone.
Why it matters
The short version of what went wrong, and what went right:
- Serial garble: Claude’s only live view of my project was the serial port, and the serial port misled it. We lost hours on problems that didn’t exist.
- Invisible text: every check passed while the screen stayed blank. Claude had settled on the idea that the display’s color was fixed by the hardware, so it never suggested the missing text-color line. I found it by comparing against code that worked.
- Battery polarity: Claude’s warning was right, and it came with a check I could run myself. The meter settled it.
The common thread: Claude can’t see my hardware, and it sounds just as sure when it’s guessing as when it’s right. The fixes came from me looking at the board and reporting what I saw, so I had to be the test bench.
What I’d tell someone starting out
- Build in small steps and test each one: display first, then the encoder, then the radio. When something breaks, you will know which step broke it.
- Treat the AI’s output as a first draft that you are going to test, not as a finished answer.
- Your eyes are the only sensor it has. Look at the board and report what you see, not just what the serial port prints.
- When a check says everything is fine and the hardware disagrees, believe the hardware.
- Keep a log of what worked, so a long conversation does not lose it.
So, is it worth using?
Definitely, as long as you go in with the right expectations. As this post shows, Claude is not a do-it-all tool: it can’t see my hardware, and it can sound sure when it is wrong. Where it earns its place is information gathering. It pulls together what is out there and gives me an educated summary I can act on, which saves me hours of digging.
It works best when the boundaries are set up front. No making things up. It’s fine to say “I don’t know.” State your assumptions out loud so I can check them. With those rules in place, I got a lot done. This is a weekends-only project, and I honestly wouldn’t have started it if it weren’t for Claude.
Next up: the full link test, TX to RX.
