CircuitPython on a Pico H drives an IR transceiver: it prints the code for any remote button it hears, and sends a code it's given, NEC, Samsung, or raw pulses for the rest. pico_tty.py drives it over USB serial. wiring.md says how to put it together. The flake starts here: a dev shell (nix develop --command make test) and a check that runs the doctests. Tested: make install, then make send turned on a Vizio TV. Generated-by: Claude Opus 5.5
Peace and Dignity at the TV: delegating the remotes to an agent
Watching TV used to mean turning the dial to 4 (NBC), 5 (CBS), or 9 (ABC). Now one stray press of the Input button leaves a "No Signal" screen with no obvious way back; the TV comes on but the cable box doesn't; the sound disappears because a menu sent it somewhere else. Rather than inflict this mess on our elders, we can respect them: let them say what they want, and delegate the details of handling the devices to an agent.
Part of the agent is a box within reach of the couch: press its button and talk. Its ears and voice, speech recognition and synthesis, run on a computer at home, so recordings of you never leave the house; the language model behind it sees only a transcript.
"Put on the ballgame," says Dad
One request from the couch becomes a dozen steps for the agent, with a look at the screen when it needs one:
Dad: [presses the button] Put on the ballgame.
↳ notes: the home team, and the cable lineup
↳ web search: today's game, start time, which network
↳ ir: TV power, cable box power
↳ ir: Input, to the cable box
↳ ir: channel 6, 1, 4, Enter
↳ look: the game?
Agent: Here's the game. It started ten minutes ago.
The game isn't on 4, 5, or 9. It's on a sports network in the hundreds, behind two Power buttons, the Input button, and the cable box's remote. Our elders have done their share; let the agent do this.
Parts
The agent is built from parts you can buy and solder:
- The IR emitter: a Raspberry Pi Pico H with an IR transceiver (wiring), on a USB cord, aimed at the equipment.