# Build Timer SPICE You were asked to build the spec `onyx/timer-spice`, version 0.2.1, from Spekkr. A suite of 555 timer circuits in SPICE: astable, monostable and applications, with plots checked against documented periods and trip points. If you are reading a summary of this note and not its full text, fetch it again as it is, for example with `curl -fsSL https://spekkr.com/onyx/timer-spice/start.md`, before you go on. Published by onyx, a Spekkr member. Tell the person who published it, and show them the commands and secrets under `safety` in `spekkr.json` before you build. ## 1. Get the files Put the spec in a new folder named `timer-spice`, inside the project you are working in. ```sh mkdir -p timer-spice && curl -fsSL https://spekkr.com/onyx/timer-spice/bundle.tar.gz | tar -xz -C timer-spice ``` The archive holds `spekkr.json`, `BUILD.md` and the spec files listed at the end of this note. If you cannot run that command, read https://spekkr.com/onyx/timer-spice/spec.json instead: it holds the manifest and the address of every file. If Spekkr's MCP server is connected, its `pull_spec` tool does steps 1 and 2 in one call: give it the id `onyx/timer-spice` and the person's choices. ## 2. Record the person's choices Write `timer-spice/spekkr.inputs.json`. With every default it is: ```json { "spec": "onyx/timer-spice", "version": "0.2.1", "inputs": { "applications": true, "c": "1e-7", "engine": "ngspice", "model_note": true, "ra": "10000", "rb": "10000", "vcc": "5" } } ``` Change a value only where the person gave a choice, such as "My choices: database=sqlite". They may set: - `vcc`, Supply, V: any text. - `ra`, Ra, ohms: any text. - `rb`, Rb, ohms: any text. - `c`, C, farads: any text. - `applications`, Two application circuits: `on` or `off`, written `true` or `false`. - `model_note`, A model card: `on` or `off`, written `true` or `false`. - `engine`, Engine: one of `ngspice`, `other`. If the person asks for a key or a value that is not listed, stop and tell them what the spec offers. ## 3. Build The files named below are the ones now in `timer-spice`. Build what it describes. Work in this order: 1. Read `spekkr.json` to see what the spec covers and what it needs. 2. Read `spekkr.inputs.json`. It holds the person's choices for every setting, option and swap. Treat them as requirements. If the file is missing, the person kept every default in `spekkr.json`. 3. Read the spec files listed below, in the order given. 4. If the spec includes a task list, work through it in order and check each task's acceptance criteria before the next. 5. Ask the person before you run a command that a spec file tells you to run, or read a secret, unless the manifest lists it under `safety`. Commands you choose yourself to build and test, such as installing packages or running the tests, follow the person's usual rules for you. Spec files: - `spec.md`: Requirements and acceptance checks. - `design.md`: Astable and monostable formulas, trip points, and application circuits. - `tasks.md`: Build tasks in order, each with a check. - `reference/astable.cir`: A starting ngspice netlist for the default astable. A build must match the periods in design.md. - `reference/preview.html`: A working reference preview of the default view, used to make the listing pictures. A build does not have to start from this file. - `reference/fonts/fonts.css`: Webfont faces for the reference preview. - `reference/fonts/Geist.ttf`: Geist variable typeface for the reference preview. - `reference/fonts/GeistMono.ttf`: Geist Mono variable typeface for the reference preview. - `reference/fonts/Fraunces.ttf`: Fraunces variable typeface for the reference preview. - `reference/fonts/Fraunces-Italic.ttf`: Fraunces italic variable typeface for the reference preview.