kicad-3d-models-in-freecad icon indicating copy to clipboard operation
kicad-3d-models-in-freecad copied to clipboard

Scripts you want made

Open grob6000 opened this issue 6 years ago • 43 comments

Hoping I could contribute some additional scripts. Promise to be tidier than the IDC headers this time! Let me know what you need next and I'll have a crack. Otherwise will be doing one to generate some TO92s (which were missing from my last project...).

grob6000 avatar Oct 11 '17 04:10 grob6000

Hi, thx a lot for your contribution! TO92s is fine though! We are missing also TH resistors if you want to go with... Thx 😸 Maurice

easyw avatar Oct 12 '17 15:10 easyw

Resistors it is. Starting now. Using pin headers as example as this seems to have a good config setup system!

On Fri, 13 Oct 2017 at 02:55, easyw [email protected] wrote:

Hi, thx a lot for your contribution! TO92s is fine though! We are missing also TH resistors if you want to go with... Thx 😸 Maurice

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/easyw/kicad-3d-models-in-freecad/issues/112#issuecomment-336181868, or mute the thread https://github.com/notifications/unsubscribe-auth/AIGyhOjWvfM5hNZO7TGdcjJtj3I9Jxl8ks5srjZigaJpZM4P05mY .

grob6000 avatar Oct 12 '17 21:10 grob6000

Things I would like to see: SMD Inductors!! WE_MAPI especially :) THT TO_SOT packages THT reisistors THT LEDs Pin Sockets JST_GH connector Molex Clikmate connectors Molex Duraclik connectors AC/DC and DC/DC converters Relays SMD andT LDR resistors Terminal blocks Dip switches, SMD and THT SMD crystals and Oscilattors

A small note, Jan has made a few of these using freecad and then using a script to change the parameters. The problem with these scripts are that the WRL scaling is wrong, the WRL material properties are wrong, and it cannot generate a STEP file without the fusion :) I went over all the capacitors and simply rewrote the script to cadquery framework, was the easiest way IMO

Shackmeister avatar Oct 14 '17 14:10 Shackmeister

and it cannot generate a STEP file without the fusion

for THT resistors there is also a small problem with the Sketch not fully constrained that will generate a wrong STEP file

easyw avatar Oct 14 '17 19:10 easyw

Wasn't that with Kammutierspules resistors?

Shackmeister avatar Oct 14 '17 19:10 Shackmeister

not only... I made only few test with TH resistors, but if you open the STEP exported i.e. in Varicad, you will see the errors... i.e. the R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal.FCStd PS it is always useful to check STEP models not only in FC but also in DesignSparkMechanical or Varicad or even in CadAssistance of Open Cascades

dsm-resistor-errors varicad-resistor-errors cada

easyw avatar Oct 14 '17 19:10 easyw

Should be ported to cadquery anyway :p

Shackmeister avatar Oct 14 '17 22:10 Shackmeister

@grob6000 are you working on the THT resistors?

Shackmeister avatar Oct 20 '17 21:10 Shackmeister

I have been, have a script that makes a reasonable-looking version of most of them now. Slightly simplified relative to the original WRLs but I'm not sure whether that might be a good thing. Robust discussion welcome! :)

It doesn't do the arrays yet, and I haven't verified some of the parameters properly (likely should reference a datasheet for each size; used Vishay for some things already).

See https://github.com/grob6000/kicad-3d-models-in-freecad/tree/resistors_tht

On 21 October 2017 at 08:28, Frank Severinsen [email protected] wrote:

@grob6000 https://github.com/grob6000 are you working on the THT resistors?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/easyw/kicad-3d-models-in-freecad/issues/112#issuecomment-338326601, or mute the thread https://github.com/notifications/unsubscribe-auth/AIGyhJOIxturvUaJJrMWOiUYpd9sPPvjks5suRBtgaJpZM4P05mY .

grob6000 avatar Oct 20 '17 21:10 grob6000

very nice though! It would be possible to add a fillet like in this picture? resistor-tht

and if I remember correctly Mario suggested "light brown body" as color for resistors wrl materials

easyw avatar Oct 20 '17 22:10 easyw

Awesome :) ill be digging into the SMD inductors soon :)

Shackmeister avatar Oct 21 '17 00:10 Shackmeister

Brown it is, and I’ll put the fillet in. :)

On 21 Oct 2017, at 11:24, Frank Severinsen [email protected] wrote:

Awesome :) ill be digging into the SMD inductors soon :)

― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

grob6000 avatar Oct 21 '17 02:10 grob6000

I haven't verified some of the parameters properly

if you want to easily check the model over its footprint you can add some code to load the fp in FC while generating the model. Please have a look at i.e BGA generator ...

easyw avatar Oct 21 '17 06:10 easyw

@Shackmeister you mentioned DIP switches above. As I have just made a script for DIP sockets and since I am a newbie to pyton I wanted to learn more about the language. I am in the process of recoding my script to utilize object oriented programming and I have started to add other DIP parts as "part" objects to verify my approach, the first beeing slide type DIP switches. As these has text/numbers on the body (ON and switch number) I wonder if anyone has successfully added text to the body via CadQuery and if so how and which font to use. Or should the text be left out to reduce file size?

bilde

terjeio avatar Oct 25 '17 08:10 terjeio

@terjeio That is really nice looking! is it made for the Kicad footprints? I havent made anything with text on the model, also adds too much size for my taste. You could consider making a small triangle for pin 1 and leave it like that :) Make sure to upload the models to the Kicad Library when you are finished :D can you also make the SMD version? :)

Shackmeister avatar Oct 25 '17 09:10 Shackmeister

@Shackmeister It is for the Kicad footprints and I have a SMD version in the pipeline. Triangle it will be and I am going to upload when I am happy with the script.

terjeio avatar Oct 25 '17 10:10 terjeio

@Shackmeister During QC of my footprints I see that the THT DIP-sockets has different models assigned for "normal" version and LongPads version. Maybe I am a bit thick but aren't the models supposed to be the same? If not what are the (physical) differences?

terjeio avatar Oct 26 '17 20:10 terjeio

I strongly believe both should refer to the same model ("normal"). I noticed the kicad-library is still containing the old wings models. Can you please make sure both are up to date and has all the "possible" models?

Shackmeister avatar Oct 26 '17 20:10 Shackmeister

I see that the footprints are already updated - I need to update more often... I now have 126 models ready for review, next step is to learn how to make a PR.

bilde

terjeio avatar Oct 27 '17 09:10 terjeio

You should always update footprints before adding models :) would you like some tips on the kicad PR? Or is it the git stuff in general which is trouble some? :)

BTW those models look really sweet! Keep up the good stuff!

Shackmeister avatar Oct 27 '17 17:10 Shackmeister

Oh, it seems that we have made the same work in parallel without knowing each other work, i just pushed some 3D models for DIP switched SMD https://github.com/KiCad/kicad-packages3D/pull/151

Fell free to overwrite mine

Misca1234 avatar Oct 28 '17 13:10 Misca1234

@Shackmeister About the THT LEDs, in kicad-library there are extensive amount of .wrl files for THT Leds, but they have not been copied to the package3D repository

A couple are made in wings but they are few

Misca1234 avatar Oct 28 '17 13:10 Misca1234

@misca1234 these are made by Jan with a Freecad script but not CQ.. For this reason they don't make step models, correctly scaled WRL or step models at all... My take for the caps made by him was simply to rewrite them to CQ. After this I modified his footprint generator to output the correct parameters

Shackmeister avatar Oct 28 '17 14:10 Shackmeister

Ok

Misca1234 avatar Oct 29 '17 08:10 Misca1234

FYI, so we don't get efforts made in parallel, I am currently fixing 3D models for Coverters_ACDC_DCDC

Misca1234 avatar Oct 29 '17 09:10 Misca1234

And I am working on socket strips - coding is nearly finished, need to verify parameters.

bilde

terjeio avatar Oct 29 '17 12:10 terjeio

wow ... what a great MCAD team we are getting! Thanks all for your great job! Maurice

easyw avatar Oct 29 '17 13:10 easyw

Great job guys! @terjeio I did a pretty big overhaul of the pinheader footprints, can you have a look at the socket strips footprints or should I? Also we should prepare ourself for people going apesh*t if we add 2000 models more for the socket strips

Shackmeister avatar Oct 29 '17 13:10 Shackmeister

@Shackmeister I believe I have the code ready for the socket strips now, but need to fine tune pin-parameters. A previous test run generated over 1GB...

What to do about the footprints for these? They have model-parametes (offset and rotation) incompatible with StepUp and there are many. Do you know if they have been generated by a script that could be rerun?

Another example, too much details?...

bilde

...maybe not, your pin headers folder is 1.4GB.

terjeio avatar Oct 29 '17 18:10 terjeio

any kind of rotation, scaling or offset should be done in the 3D mode, not the footprint! they should always be 111 for scaling, 000 for rotation and 000 for offset. I love the high detail level, I think we should deal with the size issue in another way than cutting down the quality.

footprint script can be found here, please let me know if you need some help :) https://github.com/pointhi/kicad-footprint-generator/tree/master/scripts/pin-headers_socket-strips the footprints will probably need some adjustment. but its much easier to use to change the wrong scalings

Shackmeister avatar Oct 29 '17 21:10 Shackmeister