All builds
Latest build

Claude status light

A light on my desk that shows what Claude Code is doing, so I can look away from the screen. Blue breathes while it works, yellow blinks when it needs me, steady blue means it's done, and red means something broke.

Cost
Free with a starter kit
Level
Good first Arduino build
Board
Arduino Uno
Status
Built
My real build: an Arduino Uno wired to a breadboard with a red, a yellow and a blue LED, the red one lit
The video comes out this week.Watch it on my YouTube channel.

01What it does

Three lights, four signals.

The Mac sends the Arduino one word over the USB cable and the light changes. Claude Code sends those words by itself, so you never type them.

OffClaude isn't doing anything.IDLE
Blue, breathingClaude is working.WORK
Yellow, blinkingClaude needs you to answer something.WAIT
Blue, steady for 8 secondsClaude finished.DONE
RedSomething went wrong.FAIL

Honest note: yellow only shows when Claude Code stops to ask you something. If you let it approve things on its own, it almost never does, so you may not see yellow. Red is sent by hand for now. Blue and steady blue work by themselves.

02Parts

Everything you need.

If you have an Arduino starter kit you probably have all of it already.

PartHow manyPriceWhere
Arduino Uno Rev3The official board. Compatible boards cost less and work the same for this build.128,56 €Arduino store
USB cable, A to BThe square plug. Most kits and boards come with one.1Usually includedWith the board
Breadboard, 400 holes11,73 €AliExpress
LEDs: one red, one yellow, one blueThe normal ones with two legs. A longer leg and a shorter leg.3In any starter kitStarter kit
220 Ω resistorsBands red, red, brown, gold.3In any starter kitStarter kit
Jumper wiresYou need four. One for each colour and one for ground.43,51 € for 120AliExpress
All of it comes in one box.I use the Keyestudio Super Learning Kit. It has the Uno, the breadboard, the LEDs, the resistors and the wires, plus the parts for the next builds. It was about 52 dollars on keyestudio.com on 20 Nov.

Prices checked on 19 and 20 Nov 2026. They change, so look again before you buy. None of these links earn me anything. The Mac script works on a Mac. For Windows or Linux you need a different way to send the word to the Uno.

03Wiring

Seven steps, USB unplugged.

Keep the USB cable unplugged the whole time you wire. You plug it in at the end, after a photo check.

Wiring: Arduino pin 9 through a 220 ohm resistor to the red LED, pin 10 to the yellow LED, pin 11 to the blue LED, and the short legs of all three LEDs together to GND. Arduino Uno ~9~10~11GND 220 Ω220 Ω220 Ω long legshort legred, yellow, blue LED
Each LED's long leg goes through its own 220 Ω resistor to a pin: red to 9, yellow to 10, blue to 11. The three short legs join in one line, and one wire takes that line to GND.
Close up of the finished wiring: three LEDs with a resistor each across the middle gap of the breadboard
  1. Lay out the parts

    The Uno, the breadboard, the three LEDs, three 220 Ω resistors and four wires.

  2. Check each LED's legs

    An LED only works one way round. The longer leg is the plus side. Look at every LED before it goes in. I put one in backwards and it stayed dark until I turned it.

  3. Put the LEDs in the board

    Push the three long legs into columns 20, 22 and 23. All three short legs go in column 21, so they meet in one line. Give each LED its own row so the legs don't share a hole. Column numbers are printed on the board. If your board is the other way round, trust the numbers.

  4. Add one resistor to each LED

    Each resistor jumps across the gap in the middle of the board, starting in the same column as a long leg. The resistor keeps the LED from burning out. Every LED needs its own.

  5. Connect the pins

    On the other side of the gap, in the same columns as the resistors: a red wire to pin 9, a yellow wire to pin 10 and a blue wire to pin 11 on the Uno.

  6. Connect ground

    One wire from column 21, where the three short legs meet, to the GND pin on the Uno.

  7. Take a photo, then plug in

    Take a close photo and check it: each resistor crosses the gap, red goes to 9, yellow to 10, blue to 11 and the short legs go to GND. A photo shows things your eyes skip. Then plug in the USB. The small ON light on the Uno turns on. The LEDs stay dark until the code is on the board.

If a light stays dark, check that LED's long leg first, then its resistor. If a part sits on the wrong side of the gap, it isn't connected to its line. Only ever power this from your computer's USB. Never connect a project like this to a wall socket.

04Code

Two small files.

One runs on the Arduino. The other runs on the Mac and tells the light what to show.

claude_light_3led.inoArduino IDE: pick Arduino Uno and your port, then UploadDownload
// Claude status light - Arduino UNO + 3 single LEDs (red, yellow, blue)
//
// Wiring (USB unplugged while you wire). Each LED: long leg -> resistor 220 ohm -> pin,
// short leg -> GND.
//   red LED    -> 220 ohm -> D9
//   yellow LED -> 220 ohm -> D10
//   blue LED   -> 220 ohm -> D11
//
// The Mac sends one word per line over USB (9600 baud):
//   IDLE  all off
//   WORK  blue, slow breathing      (Claude is working)
//   WAIT  yellow, fast blink        (Claude needs you)
//   DONE  blue steady for 8 s, then off   (finished)
//   FAIL  red, steady               (something went wrong)

const int PIN_R = 9;
const int PIN_Y = 10;
const int PIN_B = 11;

enum State { IDLE, WORK, WAIT, DONE, FAIL };
State state = IDLE;
unsigned long stateSince = 0;

String line = "";

void setColor(int r, int y, int b) {
  analogWrite(PIN_R, r);
  analogWrite(PIN_Y, y);
  analogWrite(PIN_B, b);
}

void setState(State s) {
  state = s;
  stateSince = millis();
}

// triangle wave 0..255 over periodMs (no sin() needed)
int triangle(unsigned long t, unsigned long periodMs) {
  unsigned long p = t % periodMs;
  unsigned long half = periodMs / 2;
  if (p < half) return (int)(p * 255UL / half);
  return (int)((periodMs - p) * 255UL / half);
}

void handleLine(String cmd) {
  cmd.trim();
  cmd.toUpperCase();
  if (cmd == "IDLE") setState(IDLE);
  else if (cmd == "WORK") setState(WORK);
  else if (cmd == "WAIT") setState(WAIT);
  else if (cmd == "DONE") setState(DONE);
  else if (cmd == "FAIL") setState(FAIL);
  else { Serial.println("?"); return; }
  Serial.print("OK ");
  Serial.println(cmd);
}

void setup() {
  pinMode(PIN_R, OUTPUT);
  pinMode(PIN_Y, OUTPUT);
  pinMode(PIN_B, OUTPUT);
  Serial.begin(9600);
  // short power-up flash so you can see it is alive
  setColor(0, 0, 80); delay(300);
  setColor(0, 0, 0);
}

void loop() {
  while (Serial.available() > 0) {
    char c = (char)Serial.read();
    if (c == '\n') { handleLine(line); line = ""; }
    else if (c != '\r' && line.length() < 16) line += c;
  }

  unsigned long t = millis() - stateSince;
  switch (state) {
    case IDLE:
      setColor(0, 0, 0);
      break;
    case WORK: {
      int v = 10 + triangle(t, 2400) / 2;   // gentle breathing, never fully off
      setColor(0, 0, v);
      break;
    }
    case WAIT:
      if ((t / 300) % 2 == 0) setColor(0, 255, 0); else setColor(0, 0, 0);
      break;
    case DONE:
      if (t < 8000UL) setColor(0, 0, 255); else setState(IDLE);
      break;
    case FAIL:
      setColor(255, 0, 0);
      break;
  }
}

Try it before the Mac script. Open the Serial Monitor at 9600 baud, type WORK and press Enter. The blue light breathes and the Uno answers OK WORK. Then try WAIT, DONE, FAIL and IDLE.

Have a single RGB LED with four legs instead? There's a version of the code for it: claude_light_rgb.ino. The wiring is different, so check the comments at the top of that file.

claude_light.pyMac, Python 3, nothing extra to installDownload
#!/usr/bin/env python3
"""Send one status word to the Claude status light on the Arduino.

Usage:  python3 claude_light.py WORK|WAIT|DONE|FAIL|IDLE

Standard library only (no pyserial). Finds /dev/cu.usbmodem*, sends the word,
exits. If no Arduino is plugged in it says so and exits 0, so a Claude Code
hook that calls this can never block a session.

Note: opening the port makes the UNO restart once, so each call takes about
2 seconds. A faster always-on version comes later if we like the light.
"""
import glob
import os
import sys
import termios
import time

STATES = {"IDLE", "WORK", "WAIT", "DONE", "FAIL"}


def find_port():
    ports = sorted(glob.glob("/dev/cu.usbmodem*"))
    return ports[0] if ports else None


def send(port, word):
    fd = os.open(port, os.O_RDWR | os.O_NOCTTY)
    try:
        attrs = termios.tcgetattr(fd)
        # raw 8N1 at 9600 baud
        attrs[0] = 0
        attrs[1] = 0
        attrs[2] = termios.CS8 | termios.CREAD | termios.CLOCAL
        attrs[3] = 0
        attrs[4] = termios.B9600
        attrs[5] = termios.B9600
        termios.tcsetattr(fd, termios.TCSANOW, attrs)
        time.sleep(2.0)  # UNO restarts when the port opens
        os.write(fd, (word + "\n").encode())
        time.sleep(0.2)
    finally:
        os.close(fd)


def main():
    if len(sys.argv) != 2 or sys.argv[1].upper() not in STATES:
        print("usage: claude_light.py IDLE|WORK|WAIT|DONE|FAIL")
        return 2
    word = sys.argv[1].upper()
    port = find_port()
    if not port:
        print("claude_light: no Arduino plugged in, nothing sent")
        return 0
    try:
        send(port, word)
    except OSError as e:
        print(f"claude_light: could not use {port}: {e}")
        return 0
    print(f"claude_light: sent {word} to {port}")
    return 0


if __name__ == "__main__":
    sys.exit(main())

Close the Serial Monitor first, because only one program can use the port at a time. Then in Terminal, in the folder with the script:

python3 claude_light.py WORK

The light breathes blue. Each call takes about 2 seconds, because the Uno restarts when the port opens.

05Connect it to Claude Code

Let Claude change the light.

Claude Code has hooks. A hook is a command that runs by itself when something happens, like a bell on a shop door. We use three: when you send a message, when Claude needs you, and when Claude finishes.

Put the script somewhere you'll keep it, for example a folder called claude-light in your home folder. Then add the hooks to the file .claude/settings.local.json in your project. If you want it for every project, use ~/.claude/settings.json instead. Claude Code can write these lines for you, and it should show them to you first. Read anything that runs on your computer by itself before you say yes.

.claude/settings.local.jsonChange the path to where you saved the script
{
  "hooks": {
    "UserPromptSubmit": [
      { "hooks": [ { "type": "command",
        "command": "python3 ~/claude-light/claude_light.py WORK >/dev/null 2>&1 &" } ] }
    ],
    "Notification": [
      { "hooks": [ { "type": "command",
        "command": "python3 ~/claude-light/claude_light.py WAIT >/dev/null 2>&1 &" } ] }
    ],
    "Stop": [
      { "hooks": [ { "type": "command",
        "command": "python3 ~/claude-light/claude_light.py DONE >/dev/null 2>&1 &" } ] }
    ]
  }
}

Now send Claude a message. The light breathes blue while it works and goes steady blue when it finishes. If your settings file already has a hooks part, add these three inside it instead of making a second one.

When Claude finishes, the done word is sent last, so it wins over wait or fail. The ending & makes each command run in the background, so a slow light can never hold up your session. If the Arduino isn't plugged in, the script quietly does nothing.