docs: DIY electronics pics; parts move to setup
check / check (push) Canceled after 0s

The box's photo goes up top, by the paragraph that introduces it. The
parts list, with the workbench photo, moves to the setup guide's What
you need; the README's Make your own tells how mine was made. The
machine that runs speech and the brain is named for its roles, speech
server and agent host, not "home server".

Generated-by: Claude Opus 5.5
This commit is contained in:
dckc committed 2026-12-02 20:52:51 -06:00
1 parent f3f2c8966e
commit cf503ac247
3 files changed
+27 -19

No files matched your search

+19 -6
View File
@@ -1,6 +1,19 @@
# Setting up the agent at the TV
You'll need the [parts](../README.md#parts), a Linux home server with Nix and systemd, a private network both it and the box can join (Tailscale, by default), and an afternoon. The steps below are in the order they depend on each other. Each `make` target says more with `make help`.
The steps below are in the order they depend on each other. Each `make` target says more with `make help`.
## What you need
<a href="https://archive.org/details/dckc-ultimate-diy-tv-remote/PXL_20261123_033039525.jpg">
<img src="https://ia601808.us.archive.org/8/items/dckc-ultimate-diy-tv-remote/PXL_20261123_033039525_thumb.jpg" alt="electronics workbench with raspberry pi pico and IR transceiver"/>
</a>
- **The box:** a Raspberry Pi 3B with a [Google AIY Voice Kit v1](https://aiyprojects.withgoogle.com/voice-v1/) (speaker, two mics, the button).
- **The IR emitter:** a Raspberry Pi Pico H with an IR transceiver ([wiring](../ir-pico/wiring.md)), on a USB cord from the box, aimed at the equipment.
- **The camera:** an RTSP camera on the LAN, aimed at the TV.
- **A speech server and agent host:** any Linux machine with Nix and systemd, on whenever the box is in use. It runs speech and the brain, and builds the box's image. x86_64 with AVX2 is plenty: whisper.cpp's base.en model transcribes an 11 s clip in about 2 s.
- **A private network** that the box, the speech server, and the agent host can all join: Tailscale, by default.
- **An afternoon.**
## 1. Make a repository for your household
@@ -16,7 +29,7 @@ A private git repository of your own holds what's yours: the names you choose, a
outputs = { self, pdtv26, ... }: {
nixosConfigurations.pimote = pdtv26.lib.mkBox {
name = "pimote"; # the box's host name on your network
server = "den-pc"; # your home server's host name: speech and the brain
server = "den-pc"; # the speech server and agent host's name
wifi = "MyNetwork"; # your Wi-Fi network's name (SSID), spelled exactly
admin = "pat"; # who looks after the box, and logs in to deploy
sshKeys = [ "ssh-ed25519 AAAA... pat@laptop" ];
@@ -29,9 +42,9 @@ A private git repository of your own holds what's yours: the names you choose, a
Ports have defaults, and the box finds the IR emitter by its USB IDs. Anything else about the box's system goes in `modules = [ ./household.nix ]`, alongside: a status page (`pdtv26.box.statusUrl`), another Wi-Fi network, another private network (`pdtv26.box.network`), or no camera (`pdtv26.box.look.enable = false`).
## 2. Set up the home server
## 2. Set up the speech server
Any Linux with systemd and [Nix](https://nixos.org/download/) will do; it needn't be NixOS. Clone pdtv26 there, then:
[Install Nix](https://nixos.org/download/) if it isn't there yet. Clone pdtv26, then:
1. `sudo make -C speech install`: the speech server, its models (about 200 MB), its key, and its systemd unit.
2. `sudo make -C status install BOX=pimote`: the status page, if you want one.
@@ -51,11 +64,11 @@ After this, changes to the box go over ssh, from your household repository: `nix
## 4. Join the private network
On the box and the home server: `tailscale up`, or whatever private network you use.
On the box, the speech server, and the agent host: `tailscale up`, or whatever private network you use.
## 5. Make the keys, and start the brain
On the home server, as the user the brain will run as, in pdtv26's `box/`:
On the agent host, as the user the brain will run as, in pdtv26's `box/`:
1. `make keys BOX=pimote ADMIN=pat`: one key per connection, piped to both its ends; the box's ir and look keys come back for the brain. Put the camera's RTSP URL in `~/.config/pdtv26-camera/rtsp-url` first, or skip `rtsp-url`. If speech runs on another host, add `SPEECH=` that host: its key comes over ssh.
2. Make a fine-grained GitHub token for one repository, Issues read/write only, for problem reports, and save it as `~/.config/pdtv26-brain/report-token`.