KiCad / kicad-library

The schematic and 3D libraries for KiCad 4.0. Note that the footprint libraries are the *.pretty repos themselves. This is an orphaned repo, the news about the v5 libs, http://kicad.org/post/kicad-official-libraries/.
Other
749 stars 955 forks source link

Discret:TO92DGS has pins ordered SGD #176

Closed strykeroz closed 9 years ago

strykeroz commented 9 years ago

Hi,

Please correct me if I'm wrong, but this appears to have D & S pins swapped. to92dgs

Geoff

odurc commented 9 years ago

Where does this footprint come from? Which .pretty directory?

strykeroz commented 9 years ago

According to my library table, ${KIGITHUB}/Discret.pretty should be the source. This is from a recent launchpad build, 2015-04-09 BZR5589

odurc commented 9 years ago

It's named as DGS, since the square pin is the first, it seems right, though, it's violating some KLC rules.

michal777 commented 9 years ago

TO-92 packages that meet KiCad Library Convention rules are in: Housings_TO-92.pretty This one is going to be removed (when somebody will find some time to sort out Discret.pretty).

strykeroz commented 9 years ago

The schematic symbol for the BS170 MOSFET in the transistors library has pads D-G-S however all TO-92 packages in Housings_TO-92.pretty currently have pads 1-2-3. Choosing any of those footprints results in no ratsnest to the BS170 footprint.

michal777 commented 9 years ago

This is because schematic symbol is also bad and should be improved to use standard numbering.

odurc commented 9 years ago

The BS170 that I have here, from transistors lib, is numbered from 1 to 3. Did you install your libraries manually or from your distro repo (in the case that you are using linux)?

strykeroz commented 9 years ago

Interesting. This was a version made last week using the repo through kicad-winbuilder. I'll update and report here if it changes.

odurc commented 9 years ago

Is that kicad-winbuilder for libraries or the KiCad program?

strykeroz commented 9 years ago

It downloads everything. A search for transistors.lib only shows the instances in the source files it has downloaded and the KiCad directory tree it creates. There are no other copies on this PC. I will archive the KiCad build I used for the above, and rebuild.

strykeroz commented 9 years ago

I archived the existing build to a 7z, deleted the directory and rebuilt. No errors but the version number curiously remains the same. As does the component in eeschema: capture

strykeroz commented 9 years ago

Further, as expected, when importing .cmp into Pcbnew, the following errors: * Error: Component 'Q1' pad 'D' not found in footprint 'Housings_TO-92:TO-92_Molded_Wide_Oval' * * Error: Component 'Q1' pad 'G' not found in footprint 'Housings_TO-92:TO-92_Molded_Wide_Oval' * * Error: Component 'Q1' pad 'S' not found in footprint 'Housings_TO-92:TO-92_Molded_Wide_Oval' *

odurc commented 9 years ago

That's odd. Could you paste your netlist and cmp files at pastebin? [edit] Should be better if you create a new project containing only this part.

ghost commented 9 years ago

@strykeroz: Please remove project library cache, reopen schematic, recreate netlist and pass through CvPcb again.

IMO this issue is invalid in a certain part. Yes, Discreet.pretty should be cleaned up. No, current symbol in transistors.lib is good. No, it looks like a problem in schematic and his cache. So, I will not pinned yet the Invalid label.

strykeroz commented 9 years ago

@keruseykaryu you are correct. This is now solved as being my project library cache issue.

Thankyou everyone who looked into this for me.