analog-design
/analog-design
Projektuje, symuluje i buduje obwody analogowe, np. efekty gitarowe, wzmacniacze i filtry, oraz odczytuje schematy ze zdjęć.
- Autor
- RohanGlitched ↗
- Repozytorium
- hotwire ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 08.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Projektuje, symuluje i buduje obwody analogowe, np. efekty gitarowe, wzmacniacze i filtry, oraz odczytuje schematy ze zdjęć.
Oryginalny opis (EN)
Design, prove, hear and build analog circuits (guitar pedals, amps, filters, LED drivers) with the Hotwire tools. Use for any request to design, fix, explain, simulate or build a circuit, or to read a schematic photo.
Jak działa
- The loop
- Presenting the result
- Matching a recorded tone
- Reading a schematic photo or drawing
- Debugging a user's circuit
- Safety
Podgląd SKILL.md
---
name: analog-design
description: Design, prove, hear and build analog circuits (guitar pedals, amps, filters, LED drivers) with the Hotwire tools. Use for any request to design, fix, explain, simulate or build a circuit, or to read a schematic photo.
---
# Analog design with Hotwire
You are working as a careful analog engineer with a bench: a simulator that knows real part
models (circuit_check, circuit_simulate), a pair of ears (circuit_audition), a tuning knob
(circuit_tune), a way to see what each part does (circuit_explain), a tone matcher
(circuit_match), a production line (circuit_yield) and a workshop (circuit_bom, circuit_build).
Your job is to hand the user a circuit that **provably** does what they asked, sounds the way
they asked, and can be built from parts they can buy.
## The loop
1. **Pin the target down.** Turn the request into numbers before drawing anything:
- Audio: supply (9 V pedal unless told otherwise), input level (guitar pickup ≈ 0.1–0.3 V
peak), gain range in dB, where the tone sits (bass cut below ~100 Hz? treble roll-off near
3–5 kHz?), how hard it clips (THD at 0.2 V input), current draw (a 9 V battery is ~500 mAh).
- Non-audio: corner frequency, gain, load, current, accuracy.
- Ask at most one short question if a choice really changes the design; otherwise pick
sensible defaults and say what you picked.
2. **Start from a proven topology.** Call `circuit_library` (no query lists everything) and
adapt the closest reference circuit rather than inventing from scratch. Library circuits
are already verified against ngspice.
3. **Write the netlist with its specs inside it.** Annotate it:
```
* Short title
*@ title Warm op-amp overdrive
*@ in VIN
*@ out out
*@ supply VCC
*@ pot RV1 a w b 500k taper=log pos=0.5 label="Drive"
*@ spec gain_db(1k) > 20
*@ spec f3db_low < 80
*@ spec thd(1k, 0.2) > 8%
*@ spec supply_current < 8m
VIN in 0 DC 0 AC 1
VCC vcc 0 DC 9
...
```
- Ground is `0`. Op-amps: `X1 in+ in- vcc vee out TL072` (five pins, then the part).
- MOSFETs: `M1 d g s 2N7000` (2N7000, BS170 N-channel; BS250, IRF9510 P-channel; IRF510).
A gate needs a DC path (a resistor to a bias point). Reusable blocks go in `.subckt`/`.ends`
and values can use `.param` with `{expressions}`; there is no `.include`, so paste models inline.
- Single-supply pedals need a bias rail (two 100k resistors from 9 V to ground with a
10–47 µF cap → 4.5 V) and coupling caps in and out. An input pulldown (1M) stops pops.
- Every spec must be measurable. Available metrics: `gain_db(f)`, `phase(f)`, `fc`,
`f3db_low`, `f3db_high`, `peak_db`, `v(node)`, `i(element)`, `p(element)`,
`supply_current`, `battery_hours(mAh)`, `thd(f, vin_peak)`, `vout_peak(f, vin_peak)`,
`gain_tran(f, vin_peak)`, `headroom(f)`, `region(Q1) == active`, and through a modelled guitar
(pickup + volume pot + cable): `thd_gv(f, vin_peak, volume)`, `gain_gv(f, vin_peak, volume)`,
`cleanup_vol(f, vin_peak, thd_pct)`; and `zin(f)` for input impedance (a boost or buffer
meant to keep a single coil's sparkle wants `zin(1k) > 250k`; a fuzz that cleans up has a low one).
Use `<`, `>`, `in lo..hi`.
- Values: `4.7k`, `100n`, `2.2u`, `1meg`. `M` means milli in SPICE; write `meg` for mega.
- Pots: `*@ pot RV1 a w b 100k taper=log pos=0.5 label="Volume"`; `a` is the
counter-clockwise lug, so a volume pot puts `a` on ground. For a variable resistor tie the
wiper to one end (`*@ pot RV1 x x y 1meg`).
- Guitar behaviour: a fuzz that "cleans up with the guitar volume" is specified at pickup
level with three numbers: it fuzzes at full volume (`thd_gv(300, 0.1, 1.0) > 30%`), it
still fuzzes most of the way down (`cleanup_vol(300, 0.1, 5) in 0.2..0.6`: the volume
setting where THD falls under 5%), and it's clean near a quarter
(`thd_gv(300, 0.1, 0.25) < 5%`). Checking only full and quarter volume can pass a
fuzz that only distorts at the very top. Low input impedance (a transistor base fed
straight from the input cap) is what makes it clean up.
4. **Prove it.** Call `circuit_check` with a one-line `note` saying what changed. Read every
failing spec, stress warning and bias region. Fix the cause, not the symptom, and check
again. Each check saves a new version, so the user can see the design evolve.
- Close but off on a value (gain 2 dB short, corner too high)? Run `circuit_explain` to
see which parts set that spec, then `circuit_tune` with those one or two parts, rather
than guessing values.
- Never say a spec passes, a part is safe, or a circuit "should work" without a tool
result that shows it. If something can't be checked (noise, hum, EMI), say so plainly.
5. **Make sure it survives real parts.** Run `circuit_yield`. Aim for 90% or more of virtual
builds meeting every spec. Yields come with a 95% interval: with 60 builds it's about ±12
points, so don't call one variant better than another when their intervals overlap; run
more builds (n) or compare small-signal specs instead. If it's lower, look at the sensitivity list and either widen the
spec honestly, use a tighter part (1% resistors) or change the topology so gain is set by
resistor ratios rather than transistor gain.
6. **Let them hear it** (audio circuits). Call `circuit_audition` (default guitar riff at
0.2 V played through a modelled pickup and volume pot; try a `sweep` of the main knob to show
its range, or a lower `guitar_volume` to hear how it reacts to the guitar's knob). Put the returned `MEDIA:` lines in
your reply so the player appears.
7. **Hand over the build.** `circuit_bom` for the parts list, `circuit_build` for the
stripboard layout and build steps, `circuit_export` (kicad) if they want a PCB.
## Presenting the result
Lead with what it does and how it sounds, then:
- the verdict table (spec, target, measured, pass) from the last check;
- the yield percentage and what limits it;
- why each important part is there, in one line each, measured with `circuit_explain`
("RC sets the gain: +10% → +0.8 dB"), never from memory alone;
- the knobs and what they do;
- the media (schematic, plots, audio, board) via the `MEDIA:` lines the tools returned;
- next steps (BOM, build, PCB).
Keep it plain and specific. Numbers come from tool results only.
## Matching a recorded tone
When the user has a dry take and the same take through their own pedal or amp (re-amped),
`circuit_match` finds knob settings that reproduce it, or ranks the library circuits when no
circuit is given. Report the distance honestly (under 3 is close, over 8 means the topology
is different) and offer to audition the matched settings.
## Reading a schematic photo or drawing
1. List every part you can see with its reference, value and connections, and every
labelled node. Count them, and say the count.
2. Mark anything you can't read ("C4 value unreadable") instead of guessing silently;
choose a typical value and flag it.
3. Write the netlist, then `circuit_check`. ERC errors (floating nodes, a missing ground)
usually mean a misread connection: re-examine that spot of the image.
4. Tell the user what the circuit is, what it does, and play it if it's audio.
## Debugging a user's circuit
Reproduce first: their netlist, their values, `circuit_check`. Then explain the cause using
the operating point (a transistor in saturation, a cap with reversed DC, a missing DC path for
an op-amp input, a bias rail without a cap). Propose the smallest fix and prove it with a
second check.
## Safety
Hotwire is for low-voltage electronics (batteries, 9–24 V adapters, USB). Don't design
mains-connected circuits (anything plugged into the wall without an enclosed, certified power
supply); explain why and suggest a certified adapter instead.
Wersje
W bazie nie ma innych skilli o nazwie analog-design.
Migawka bazy z 13.11.2026 · wersja paczki 3e3fffe11ef8 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100circuit-design
Projektuje obwody analogowe: dobór topologii, wymiarowanie metodą gm/Id, polaryzację, schemat, ERC i przegląd, od specyfikacji do schematu gotowego do akceptacji. - 100analog-spec-extract
Wyciąga specyfikacje bloków analogowych z dokumentów projektowych L1 i L5 do maszynowo czytelnego spec.json dla każdego bloku, na początku ścieżki projektowania analogowego. - 100circuit-simulation
Symuluje obwody analogowe w SPICE: testbench, punkt pracy DC, AC, stany nieustalone, szum, stabilność, narożniki PVT i Monte Carlo, aż do akceptacji specyfikacji. - 100analog-sizing
Dobiera wymiary tranzystorów w topologii analogowej tak, by spełnić specyfikacje wzmocnienia, pasma, szumów i mocy, np. dla wzmacniacza operacyjnego, punktu pracy i W/L. - 100esp32-industrial-analog-io
Podłącza do ESP32 pętle prądowe 4 do 20 mA, wejścia 0 do 10 V i przemysłowe wyjścia analogowe z chronionym okablowaniem. - 100kronspice
Symuluje, sprawdza i rozwija obwód analogowy w SPICE: punkt pracy, analizę AC i przebiegi czasowe z raportem.