01The Problem
Par2Pro fits addressable RGB accent lighting into simulator rooms — the strip that washes the walls and ceiling around a golf screen. The engineering for it lives in a planning guide: formulas for pixel count and wattage, a table of standard power supplies, a rule for how many points along the run need power injected into them, conductor gauges, labour bands, and a worked materials table at five specific lengths.
Quoting one meant working through that document by hand every time. It is not difficult work, but it is the kind of work where a dropped step is invisible until an installer is standing in a finished room with a supply that is 20% too small, or a 5-volt run that is long enough to brown out the far end of the strip.
The goal was a tool that takes the single measurement a salesperson actually has — how many inches of strip are going on the walls — and returns everything downstream of it, with each figure carrying a citation back to the section of the guide it came from.
- InputOne field: total installed strip length, in inches
- OutputMaterials, power, distribution, conductors, labour, quote
- Deploys asTwo files — double-click, works fully offline
- VerificationReproduces all five published guide rows exactly
02Try It Yourself
The real tool is running below. Drag the length field or use the quick-set buttons to jump to a guide length, and watch every panel recompute. Open the assumptions panel to change a price or a labour rate — those persist in the browser — and press the verification button at the bottom of it to re-run the whole published table live.
03Two Documents, One Winner
There were two source documents, and they did not agree. One is the planning guide: the forward-looking specification, where the formulas, prices, supply table and labour bands come from. The other is the as-built record of the showroom installation — what was actually put in, how long it actually took, and what it actually drew in practice.
The clearest disagreement was the power supply. The showroom runs two 50-watt supplies; the guide says to use one correctly sized supply. It would have been easy to "follow the real installation" and build the two-supply layout into the tool. That would have been wrong, and the as-built record says so itself — it is an installed record, not a design rule. So the calculator follows the guide and selects one supply, and the showroom's figures are used for what they genuinely are: a sanity check, and a real-world operating-brightness fraction that nothing in the guide provides.
Deciding which document governs, and then writing that decision down so it is not relitigated every time someone notices the discrepancy, was the single most valuable half hour of the project. Every rule in the code carries an inline citation to the guide section it implements.
04Reverse-Engineering Three Rules
Most of the model is a straight transcription of published formulas: metres from inches, rolls as the ceiling of metres over five, pixels at sixty per metre, maximum watts at eleven per metre, minimum supply rating as that load divided by the 80% derating, injection points as rolls plus one, and channel sections as whole two-metre lengths.
Three figures, though, appear in the guide's tables without a formula behind them. They had to be inferred from the numbers themselves — and then checked against every published row rather than the one that inspired them.
| Figure | Rule derived | Reproduces |
|---|---|---|
| Electrical hardware | $30 base + $10 per injection point | 5 / 5 rows |
| Power-feed cable | Linear interpolation through the published anchors | 5 / 5 rows |
| Injection locations | Rolls + 1 | 5 / 5 rows |
The cable allowance is the interesting one. Its anchors run from $35 at five metres to $70 at twenty, and past the last anchor the final slope continues at ten dollars per five metres — a deliberate, flagged extrapolation rather than a silent one. There is also an override field, so when a real quote comes back from a supplier the actual price goes in and the estimate steps aside.
05Power & Supply Selection
Supply selection is a ladder: the smallest standard unit whose rating clears the minimum, stepping 90 watts, then 150, then 300. One supply covers every system up to twenty metres, which matches the guide exactly.
The subtlety is that there are two different load numbers and they are used for different jobs. The maximum load — every pixel at full white — is what sizes the supply, because a supply has to survive the worst case even if nobody ever runs it there. The operating load is what the room actually draws, and the showroom record pins that at roughly 58% of theoretical maximum because a brightness cap is applied in practice. The panel shows both, along with nameplate utilisation and the headroom left at the 80% limit, so the person quoting can see at a glance whether a system is comfortably inside its supply or sitting right on the edge.
06Why Voltage Drop, Not Ampacity
This is the part of the tool I am most pleased with, because it answers a question people usually get wrong.
Gauge is selected on branch current — the total divided by the number of injection points, not the whole system current — because that is what each conductor actually carries. That alone prevents the classic mistake of specifying a needlessly heavy cable for a run that was always going to be split.
But at five volts, ampacity is almost never the binding constraint. The guide's 5% limit means a quarter of a volt, and a 5-volt run hits that long before the wire gets anywhere near warm. So rather than climbing an ever-thicker gauge ladder, the calculator expresses the answer the way the installer needs it: a maximum one-way run length. Two of them, in fact — the run you can achieve at full brightness, and the longer run you can achieve at the operating cap.
When a planned run only passes at the cap, it is flagged, because that quietly converts a brightness preference into a brightness requirement. The gauge ladder deliberately stops at 12 AWG: past that the guide tells you to add fused branches instead of carrying the full current down one long 5-volt conductor, and the tool says so rather than inventing a thicker wire.
07Labour and the Retrofit Trap
Labour uses the guide's published bands unchanged, stepping from two to three hours on a short run up to four or five hours past fifteen metres, with an extra-hours field for the conditions the guide calls out: difficult access, exposed routing, complex distribution.
The thing the tool goes out of its way to say is what the labour number is not. The showroom installation took about twelve hours, and that figure is sitting right there in the as-built record waiting to be mistaken for a quoting basis. Roughly eight or nine of those hours were research, pad rearrangement, drilling through finished walls, and hunting for existing cable — none of it repeatable. The panel states that explicitly next to the band, because the most expensive error this tool can prevent is quoting a planned install at retrofit hours, or the reverse.
Labour rate, margin, and extra hours all default to zero on purpose. They are business decisions, not engineering ones, and nothing in either source document sets them. At zero, the tool shows hours without pretending to know what an hour costs.
08Proving It
A quoting tool that cannot be audited will not be trusted, and it should not be. So the calculator carries a verification button that re-runs the entire published materials table at guide-default pricing and shows the calculated figure beside the published one, row by row.
It matches at every documented length — not approximately, exactly — and the same check covers roll counts, supply selection, injection counts and channel sections, not just the dollar total.
| Guide length | Rolls | Supply | Injections | Calculated | Published | Result |
|---|---|---|---|---|---|---|
| 5.0 m | 1 | 90 W | 2 | $320.07 | $320.07 | Match |
| 10.0 m | 2 | 150 W | 3 | $394.16 | $394.16 | Match |
| 12.5 m | 3 | 300 W | 4 | $483.25 | $483.25 | Match |
| 15.0 m | 3 | 300 W | 4 | $488.25 | $488.25 | Match |
| 20.0 m | 4 | 300 W | 5 | $552.34 | $552.34 | Match |
09Past the End of the Tables
The guide's tables stop at twenty metres. The material formulas keep working past that, but two things become extrapolation, and the tool flags both rather than quietly continuing.
Supply count. One 300-watt supply carries about 21.8 metres at the 80% limit. Beyond that the calculator stacks supplies and raises a warning that repeats the guide's wiring rules: keep grounds common and data continuous, isolate each supply's positive output into its own zone, and never parallel outputs unless the manufacturer explicitly supports current sharing. That is the sort of mistake that quietly destroys hardware, so it gets said loudly.
Labour. It continues the published pattern at an extra hour per additional five metres, labelled as an extrapolation.
The tool is also explicit about its own boundaries. Shipping, travel, electrician and line-voltage work, permits and room-specific work are excluded and listed. Conductor ampacity, enclosure, fusing and anything at 120 volts has to comply with the electrical code and the component nameplates. This is a planning and quoting aid, and it says so on its own face rather than in a footnote.
10How AI Actually Built This
The code was written by a large language model, in a working session where my job was to supply the two source documents, decide which one governed where they conflicted, and interrogate every number that came back.
The genuinely interesting part was the derivation work. Three of the guide's figures had no stated formula, and finding a rule that reproduces a table is exactly the kind of task where a model is both fast and dangerous — fast because it will propose candidate rules immediately, dangerous because a rule that fits one row looks identical to a rule that fits all of them until you check. The discipline that made it work was refusing to accept any derived rule until it reproduced every published row, and then building that check into the product so it stays true.
The judgement calls were mine and they are what the tool is actually made of: that the planning guide outranks the as-built record, that gauge should be selected on branch current, that the useful answer at five volts is a run length rather than a wire size, that the showroom's twelve hours must never become a quoting basis, and that labour rate and margin are the business's numbers to set rather than the tool's to guess. A model can write all the arithmetic. Knowing which arithmetic is the right question is still the work.
11Status & Next Steps
Finished and in use. It is two files in a folder — open the page, no install, no server, no internet — which is deliberate: the fewer dependencies a quoting tool has, the more likely it is to still work in two years. It prints to PDF with the controls hidden for attaching to a quote, and copies a plain-text summary for pasting into an email.
A short list of what I would add:
- Multi-zone rooms. Today it quotes one continuous run; larger installs are really several runs sharing a controller, and the injection maths changes when they do.
- A supplier price feed. The pricing panel is already editable and persists locally; pulling current prices in would stop the allowances going stale.
- A printed wiring diagram. The tool already knows how many injection points there are and where they fall; drawing that would give the installer the one page they are currently sketching by hand.
The build embedded on this page is the real tool. The pricing shown is a working allowance, not a published rate card, and the planning rules belong to Par2Pro.