AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
schematic check: a polarized capacitor's +/– pins are treated as amplifier inputs
schematic check: a polarized capacitor's + / – pins are treated as amplifier inputs
Seen on: adom-aiflow 0.2.40, schematic check, Panasonic EEEFTH101XAP (adom/eeefth101xap, an aluminium electrolytic) whose symbol pins are named + (1) and – (2), both passive.
What happened: pin type: C7 pin 1 (...EEEFTH101XAP): amplifier input '+' (+) is passive; declare it input (and pin 2), as errors; the schematic check fails.
Why it is wrong: pin_types() in schematic_symbols.rs classifies any pin whose name is +/- (amp_input) as an amplifier input, on every symbol. A two-terminal part (polarized capacitor, battery, polarized supply connector) has no amplifier inputs; its pins are correctly passive. Before a board exists there is also no spec, so spec.schematic.allowPassive cannot be given at the schematic step.
Suggested fix: skip the amplifier-input rule (and opamp_check) for symbols with two distinct pin numbers, or only apply it when amp_like(sym) is true. Test: a 2-pin symbol with pins +/– passive gives no error; the existing TL072 fixture still errors.
Workaround: none at the schematic step; finish re-runs the check with the spec, where schematic.allowPassive: [{"ref": "C7", "why": "electrolytic capacitor, two passive terminals"}] applies.
1 Reply
Log in to reply.