main
Ray Publish 0.1.1 083c838

name: build-a-component-page description: Build an Adom wiki component (part) page yourself, the way Adom's parts factory does, when the wiki has no page for a part or a part request came back "We couldn't build it". Covers the order of work (datasheet, package, footprint checked against the package drawing, pinout read twice, symbol, 3D model, hero, page), the checks that catch wrong footprints and wrong pinouts, what to do for each failure reason in the request email, and when to stop instead of guessing. Trigger words - build this part myself, make a component page, part request failed, couldn't build this part, no datasheet, no land pattern, make a footprint from the datasheet, do it yourself part page, factory could not build.

Build a component page yourself

Adom's parts factory builds most requested parts on its own. When it cannot, it says why. This skill is the factory's method written out so that you, an AI working for one person, can finish the part. You have two things the factory lacks: the person, who can answer a question or hand you a file, and time to read one datasheet closely.

The page you make goes under the person's own name on the wiki (<their-handle>/<part>), and they can use it in a design straight away.

First: do you need to build it at all?

  1. Look for the page: adom-wiki discover find "<part number>". Try the number without its packaging suffix as well (tape-and-reel and lead-free suffixes share one page).
  2. If there is none and nobody has asked yet, ask: adom-wiki part request <MPN> --manufacturer "<maker>" --datasheet <link>. Passing a link to the maker's datasheet removes the most common reason for failure. adom-wiki part status shows the outcome and the reason.
  3. Build it yourself when the request ended in "could not be built", or the person does not want to wait.

The order of work, and why it is this order

Each step is checked against the one before it. Do not reorder them.

Step What you produce What it is checked against
1. Datasheet the maker's own PDF it names this part
2. Package the exact package of this orderable number the ordering table
3. Footprint a .kicad_mod the package drawing's numbers
4. Pinout pin number and name for every pad the footprint's pads, and a second reading
5. Symbol a .kicad_sym the pinout
6. 3D model a STEP and a GLB the package drawing and the footprint
7. Page page.json, README, hero the checklist at the end

The footprint comes before the pinout on purpose. The pad set is the anchor: a pinout that does not fit it belongs to a different package.

1. Datasheet

  • Use the manufacturer's own, current datasheet. A distributor's copy can be an old edition, and a distributor's "datasheet" link is often a product web page, not a PDF.
  • Check that it is a PDF and that its text names the part: the whole part number, or the device number the orderable number extends. A family sheet that only shows a sibling is the wrong document.
  • For a standard chip resistor, capacitor or inductor, the document is the maker's series datasheet (Panasonic ERJ, Yageo RC, Murata GRM, Samsung CL, and so on). There is usually no sheet for one value.
  • Keep the URL, the date you fetched it and the page numbers you read. They go on the page.
  • If a maker's site blocks automated downloads, ask the person to download the PDF and give you the file.

2. Package

  • Find the ordering information table and decode this exact part number. The suffix chooses the package.
  • One part number family often comes in several packages with different pin orders. From here on, read only the figures and tables for this package.
  • Write down the package drawing's numbers with their page: pin count, pitch (e), overall width across the leads (E), body width (E1), body length (D), height (A), and any exposed pad. If a number is not printed, record it as Unknown. Do not estimate it from the picture.

3. Footprint

Choose the footprint by its dimensions, never by its name. Package names are reused by different makers for different bodies (a TSSOP-8 can be 3 mm or 4.4 mm wide), and a footprint picked by name is the most common way a part page goes wrong.

  1. If the datasheet prints a recommended land pattern for this package, that drawing decides.
  2. For a standard package, fetch the matching footprint from KiCad's library: service-kicad fp fetch <library> <name> (service-kicad fp --help). Then check it against the numbers from step 2:
    • the pad pitch equals e;
    • the pads reach the lead tips (the outer pad edges are at or beyond E/2), and do not belong to a wider or narrower body;
    • the body size in the footprint's name matches E1 and D;
    • the pad count equals the pin count, with the exposed pad counted when the package has one;
    • for a DIP, the row spacing matches the drawing.
  3. If no library footprint passes, draw the pads from the datasheet's land pattern with adom-footprint create (adom-footprint create --help shows the JSON it takes).
  4. If the datasheet has no land pattern and no library footprint matches, look for the maker's separate package or land-pattern document. If that does not exist either, stop and tell the person. Do not invent a land pattern.

adom-ds2sf extract also writes a footprint. Treat it as a draft: its pin names have been reliable in our tests and its footprints have not. Run the same dimension check on it as on any other candidate.

Also check that no two pads with different numbers touch, and that no copper lies outside the courtyard.

4. Pinout

  • Read the pin table or pin figure for this package only. Make sure you know whether a figure is a top view or a bottom view.
  • Get two independent readings and compare the whole pinout. adom-ds2sf extract can be one. The other can be your own reading of the pin table text, or another model's. If they differ anywhere, read the datasheet again and settle it from the page, or ask the person. Never build a pinout by taking each pin from whichever reading was in the majority: that can produce a pinout no reading gave.
  • Every pin must be a pad and every signal pad must have a pin. Thermal and mounting pads are the exception.
  • Pin names are the datasheet's spelling, exactly. VDD stays VDD. Do not rename pins to a house style.
  • Every name must appear in the datasheet text. A name that appears nowhere is a misread.
  • Polarity comes from the part's own datasheet. If anode and cathode are shown only in a drawing you cannot tie to pad numbers, stop and ask. A two-pin LED has the cathode on pin 1 and the anode on pin 2, which matches KiCad's LED footprints. A polarised capacitor or a diode is never described as "either orientation".
  • An unpolarised two-terminal part (resistor, ceramic capacitor, inductor, fuse) whose datasheet prints no pin numbers takes pins 1 and 2 by library convention. Say so on the page.

5. Symbol

  • adom-symbol create builds the .kicad_sym from the pin list (adom-symbol create --help).
  • Give the exposed pad its own pin when the footprint has one.
  • The symbol must carry its own pins. A symbol that extends a library symbol it does not include loads with no pins.
  • Check that the symbol's pins equal the page's pins, and that no two pin names overlap in the drawing.

6. 3D model

  • Prefer the maker's STEP if their site offers one and its terms allow redistribution. Otherwise use the KiCad model for the package: step2glb from-library "<Library>/<Name>" or service-kicad model fetch.
  • Pose: Z up, the lowest point seated on z = 0, the body centred on the pad pattern (not on pin 1), no extra rotation between model and footprint.
  • Fit: the model's height is within A, and its outline is within D by E, from the datasheet. A generic model that is too tall or too wide for this maker's package is wrong for this part.
  • Marking: adom-chip-laser etch puts the part number on the top of the body as a flat mark.
  • Convert with step2glb convert. Colours follow the datasheet (housing colour, plating).

Connectors, switches and other electromechanical parts with no usable maker model

Defect it prevents: a plain box published as the model of a USB receptacle or a pushbutton.

  • A generated prism is fine for a chip package, never for a connector, switch, header or terminal block.
  • Draw the part yourself from the maker's published drawing (CadQuery works): the real shapes, such as the mouth or opening, the cap and its bevel, formed terminals, stakes and standoffs. Take every dimension from the drawing, and list the ones you had to estimate.
  • The geometry is ours, made from the maker's drawing. Never put a CADENAS / PARTcommunity / 3D-portal file or a vendor's licensed model in the bundle, and never use a maker's form-based model generator.
  • Pose it like any model, then say on the page: "3D model authored from drawing ; not the maker's model".

Plating and colour when the sheet offers options

Defect it prevents: silver-contact parts shown with gold terminals.

  • A line such as "silver or gold plating" does not say which one this part has. The ordering code in the MPN decides (for example NKK UB2: W = silver, G = gold, from the ordering-key page).
  • If nothing in the MPN decides, leave the plating as drawn and say it is undecided. Never take the first word.

Mark only where the maker marks

Defect it prevents: a part number etched on a switch cap or a connector shell that carries no marking.

  • Etch the part number only on a body the maker marks (most ICs). Switch caps, connector shells, passives and headers usually carry none: ship the plain model and say why.

Record the model's pose

Defect it prevents: a model whose pose nobody can check later.

  • Add the model to component.models_3d with its file, sha256 and pose (up: Z, seated: true, origin: pad centre). component-page-verify warns when it is missing.

7. The page

  • Hero: a 16:10 PNG at least 1600 px wide. step2glb thumbnail --width 2400 --height 1500 renders one from the STEP.
  • Fusion and EAGLE library: adom-lbr generate from the symbol and footprint, then adom-lbr validate.
  • page.json component block: part number, manufacturer, package, the pin list, the datasheet link, the files (symbol, footprint, STEP, GLB), the package numbers from step 2, and where each fact came from (datasheet URL, fetch date, pages).
  • Ratings and limits: state each figure with its conditions and its datasheet page. Leave out what the datasheet does not say.
  • Distributor numbers: DigiKey and Mouser numbers from adom-parts-search. An LCSC number is written with its C prefix (C377955).
  • License: state one. CAD taken from KiCad's libraries is CC-BY-SA-4.0.
  • Publishing: the mechanics (creating the page, pushing files, setting the hero) are in the skills adom-hardware-component-publish and wiki-publish-safely. Push page.json last. Publish private first, check it, then make it public with open source: adom-wiki page visibility <ref> --preset open. A public page with sealed source shows no footprint or model to anyone else.

Before you call it done

Go down this list. Each line is a defect that reached a published page at least once.

  • The datasheet is the maker's and names this part.
  • The footprint's pitch, pad reach, body and pad count agree with the package drawing.
  • No two different pads touch. No copper is outside the courtyard.
  • Every pin is a pad. Every signal pad has a pin.
  • Two readings agreed on the whole pinout.
  • Every pin name is printed in the datasheet, spelled the same way.
  • The pinout is from the diagram for this variant and this package.
  • Polarity is from the datasheet, and nothing polarised says "either orientation".
  • The symbol's pins equal the page's pins, and the symbol does not depend on a missing base.
  • The model is Z up, seated, centred on the pads, and fits A, D and E.
  • A connector or switch model shows the part's real shapes and is ours, never a box or a CADENAS/vendor file.
  • Plating follows the MPN's ordering code where the sheet offers options; the part number is etched only where the maker marks the part.
  • component.models_3d records the model with its pose.
  • The hero is 16:10 and at least 1600 px wide.
  • The .lbr validates.
  • Distributor numbers are present; LCSC has its C.
  • A license is stated.
  • Open the live page and look at it: the symbol, the footprint and the 3D model all render.

Tell the person which of these you checked and which you could not. List every value you read off a drawing by eye (a pad size measured from a picture, a dimension whose leader line was ambiguous, a pitch printed to one decimal), with its page, so a person can check those few readings against the sheet. Defect it prevents: a misread dimension that nobody knew to look at.

By failure reason

The request email and adom-wiki part status give a reason. Start where it points.

The reason says What to do
No datasheet, or could not get a datasheet Step 1. Find the maker's PDF (for a chip passive, the series sheet). You can also request again with --datasheet <link>.
Wrong document The fetched sheet did not name the part. Find the sheet that does, usually the family's or the orderable number's own.
No land pattern or terminal drawing Step 3. Check the package numbers against a KiCad footprint. Look for the maker's separate land-pattern document. Ask the person if neither exists.
No footprint for the package; footprint failed the fit check Step 3, item 3: draw the pads from the datasheet drawing and check every number.
Readings disagreed; pin or footprint guard Step 4. Two readings gave different pinouts, or the pinout did not fit the pads. First confirm the package (step 2): this usually means the wrong package variant.
3D model pose; model outside the package Step 6. Re-seat and centre the model, or pick the model that fits A, D and E.
Waiting on a maker 3D model Ask the person whether they have the maker's STEP. If not, model the body from the datasheet drawing and say it is generated; for a connector or switch, draw its real shapes (step 6, electromechanical parts).
Unsupported kind (a development kit or module board) A board is not a single-package part. It needs its own header footprint, pinout and 3D; say so and ask the person how far they want to go.
Not orderable Confirm the exact orderable number with the person. adom-wiki part candidates "<partial number>" lists them.

When to stop and ask

Stop and tell the person, with the page number, when:

  • no document names the part;
  • the package drawing lacks a number you need and no other maker document has it;
  • two careful readings of the pinout still disagree;
  • polarity cannot be tied to pad numbers;
  • the only 3D model available has terms that forbid sharing it.

A page with an honest gap ("Unknown", with the reason) is useful. A page with a guessed value causes a board that does not work.