Loading ...
Sorry, an error occurred while loading the content.

Re: {Disarmed} [kicad-users] Re: How to create components

Expand Messages
  • Ivica Kvasina
    Agreed. This has been reported several times and it is still there (someone is lazy in development team). It is very simple to check if string contains any
    Message 1 of 10 , Apr 18 3:19 PM
    View Source
    • 0 Attachment
      Agreed. This has been reported several times and it is still there (someone is lazy in development team).
      It is very simple to check if string contains any offending characters (such as space) and throw message "Invalid name".

       


      From: Charles Davis <charlesdavis@...>
      To: kicad-users@yahoogroups.com
      Sent: Wednesday, April 18, 2012 9:56:07 AM
      Subject: RE: {Disarmed} [kicad-users] Re: How to create components

       
      One other thing to be aware of .. it has caught me out a couple times …. Do NOT have any spaces in the component name
       
      Charles
       
      From: kicad-users@yahoogroups.com [mailto:kicad-users@yahoogroups.com] On Behalf Of tmortus
      Sent: 18 April 2012 01:08 AM
      To: kicad-users@yahoogroups.com
      Subject: {Disarmed} [kicad-users] Re: How to create components
       
       

      I'm not sure if I'm using the right terminology, but, at this point I'm asking about drawing a device for a schematic. The part of the tutorial I included was about drawing a component for a schematic..

      I did manage to draw something the other day, it was saved as four file extensions a: .bck, .dcm, .lib and a .bak.

      I specified the path to the directory that I saved them to in preferences/library, but, when I now try to place this component I can't find it. The other day I could find it, but, when I tried to place it all that got put in the schematic drawing was the name of the component.

      --- In kicad-users@yahoogroups.com, Andy Eskelson <andyyahoo@...> wrote:
      >
      >
      > Here is a walkthrough as I do the same sort of thing.
      > Bear in mind that I use Linux, so di4ectory locations may be diffeent to
      > your system.
      >
      >
      >
      > Open up pcbew.
      >
      >
      > Select "Open Module Editor" (5th icon)
      > Either select a module to modify, or create one from scratch.
      >
      > /using existing module/
      >
      > click load module from library (6th icon)
      > select a module of your choice I chose conn3
      >
      > Click on module properties 14th icon
      > edit the Footprint Name in lib to something else.
      > I used "test-conn3"
      >
      >
      ***
      > You can edit lines, add pads or whatever at this point
      > ***
      >
      > Click on Create new library and save current module 3rd icon
      > Navigate to your own directory and then enter a name such as modtest.mod
      > (or whatever you want to call it) then click save, you will get an
      > exported module message. Now close the module editor. If you get a
      > requester stating the module is modified, click yes.
      >
      >
      > As this is a NEW module library you now have to tell pcbnew about it.
      > Select preferences >
      >
      > library then click on add
      > Navigate to where you saved your module library and select it. (click
      > open)
      >
      > Then OK the add library requester
      > pocbnew will then ask you to save the project. This adds the new lib into
      > the file list, so select save.
      >
      > That's it. job done.
      >
      >
      > Now if you add a
      module, click on list all scroll down near to the bottom
      > of the list and you should see test-conn3 there.
      >
      >
      >
      > Now clck on module editor again.
      > To add more modules, or to edit test-conn3 you need to select your
      > now select active library.
      >
      > click on the first icon "select active library" the scroll down the list
      > and you should see your new lib at the bottom usually it has the full
      > path associated with it. Select it and click OK
      >
      >
      > Now when you click on load module from library, you will see your
      > module. You can then edit and re-save it as needed. OR you can define a
      > new module, when you save that, it will be added to your library.
      >
      > Andy
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      > On Tue, 17 Apr 2012 15:59:36 -0000
      > "tmortus" <tom_mort@...> wrote:
      >
      > > I'm trying to follow the tutorial, but, am having problems. I can pick
      > > components from libraries and manipulate and place them, but, I'm having
      > > problems trying to create new components.
      > > I get to:
      > > 49.This will open the "Libedit" window.50.Click on the
      > > "Select working library" button.51.In the "select lib"
      > > window click on "conn".52.Click on the "New part"
      > > button.53.Name the new part "MYCONN3".54.Enter the prefix as
      > > "J", and number of parts as "1". 55.If the warning
      > > "has a convert drawing" appears c lick "yes".56.In the
      > > middle of the screen the
      name of the comp onent should appear. 57.Click
      > > on the magnifier twice to zoom in on it.58.Click on the "Add
      > > Pins" button on the right tool bar
      > > I notice that when I get to the libedit window it opens as read only. I
      > > suppose this is to prevent me from changing an existing library without
      > > change the name. I can select the library as "conn"and press the add
      > > new part button and save is as MYCONN, but, I never am prompted for -
      > > Enter the prefix as "J", and number of parts as "1".
      > > When I was playing around the other day I was able to draw a part and it
      > > is listed along with the new part MYCONN, but, I can't find how to open
      > > it. If I use add part from libraries and have added the path to this
      > > folder in library preferences I don't see it listed???
      > >
      > > --- In
      ymailto="mailto:kicad-users%40yahoogroups.com" target="_blank" href="mailto:kicad-users%40yahoogroups.com">kicad-users@yahoogroups.com, Andy Eskelson <andyyahoo@> wrote:
      > > >
      > > > First thing,
      > > >
      > > > read the docs and run through the tutorial a couple of times. It's
      > > rather
      > > > old and out of data in parts, but the basic method is OK.
      > > > Each kicad program has an extensive pdf file associated with it, look
      > > in
      > > > the docs directory or access from the help menu item (it's the same
      > > file)
      > > >
      > > > You have to be a bit careful in what you ask, as there are several
      > > > distinct modules in Kicad, so it's not a totally integrated package.
      > > >
      > > > There are two main modules, eeschema, and pcbnew EACH has it's own
      > > > library of
      components. (in fact it has many sets)
      > > >
      > > > eeschema has the circuit symbols and pcbnew has the footprints (called
      > > > modules) There is not always a 1:1 relationship between the two. For
      > > > example and NPN transistor is the same symbol regardless of the case
      > > > type, but it could map to a TO91, TO220, one of several SMD
      > > > footprints and so on.
      > > >
      > > > So you first design your eeschema symbol, defining pins and so on.
      > > > Pay VERY careful attention as to what you call the pins and what type
      > > > they are. The pin names and numbers are important.
      > > >
      > > > Create your own library to stor4 things in use the create new libray
      > > > functions in the editor.
      > > >
      > > > The you need to switch to pcbnew and use the MODULE editor to create
      > > > the physical footprint. This is where you can define the pad sizes
      > > > and so on. DO put the correct numbers against the pads, or things
      > > > will not get connected correctly.
      > > >
      > > >
      > > > The last step is all about how kicad uses libs and modules.
      > > >
      > > > Both components and modules can be held in library files, you should
      > > > NOT modify the default libs or modules simply because they get
      > > > replaced during upgrades and any changes you make will be lost. So
      > > > always create your own libs and mode in your home directory (linux)
      > > > or wherever you put your files in windows)
      > > >
      > > > You need to tell eeschema and pcbnew what extra libs to load.
      > > >
      > > > In eeschema you do this via preferences>library then click add
      > > > find the
      library file that you created and select it.
      > > >
      > > > The process is the same in pcbnew apart from selecting your module
      > > > (footprint) library rather than the component.
      > > >
      > > > There is another module called cvpcb this assigns footprints to
      > > > components, Sometimes you also have to add the module libs to this
      > > > program as well. It's the same process; preferences > libraries then
      > > add
      > > >
      > > >
      > > > The workflow is:
      > > >
      > > > design your circuit with eeschema, the annotate it, run ERC as needed
      > > and
      > > > correct errors. Create the netlist. Then run cvpcb and assign what
      > > > footprints you want to each component.
      > > >
      > > > Note that there are default footprints that you can specify in the
      > > >
      component symbol if you want to automate things a bit more.
      > > >
      > > > You then re-save the netlist with the component footprints now added.
      > > >
      > > > You then run pcbnew and load the netlist, and then then you can fiddle
      > > > about placing your components, routing tracks and so on.
      > > >
      > > > Kicad only adds libs to projects, not globally so if you find that you
      > > > always want to add one or two specific libs then you can do this by
      > > > modifying the default template called kicad.pro this is held in:
      > > >
      > > > usr/local/kicad/share/template in linux and under
      > > kicad\share\template
      > > > in wherever you install it in windows.
      > > >
      > > > You can open this project, add the component and module libs, then
      > > > resave. After that any new project that you
      create will pick up the
      > > > additional libs.
      > > >
      > > > People work in different ways, so you may prefer to add libs
      > > > individually to projects or not. That's entirely up to you. The only
      > > > point I will make is that adding every lib you can find, makes the
      > > > lists long and awkward to use.
      > > >
      > > >
      > > > Shout when you get stuck again :-))
      > > >
      > > >
      > > > Andy
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > On Sun, 15 Apr 2012 00:37:51 -0000
      > > > "tmortus" tom_mort@ wrote:
      > > >
      > > > > I'm new to KiCAD can see how to add components that are in libraries
      > > to a schematic, but, I'm having trouble creating one that isn't in
      the
      > > supplied libraries.
      > > > >
      > > > > The component I am drawing is a small DCDC converter with six pins.
      > > > >
      > > > > I can draw and label the pins and save the file, but, I think
      > > somehow I have to connect all of these pins to create the component and
      > > I can't figure out how to do it.
      > > > >
      > > > > I can add the directory where I saved the drawing to and then see
      > > how to insert the component, but, all I get is the component name rather
      > > than a drawing of the pins.
      > > > >
      > > > > Also, I don't see how to specify the diameter of the pins. I'm
      > > assuming that this gets down when the PCB itself is created.
      > > > >
      > > > >
      > > > >
      > > > > ------------------------------------
      > > > >
      > > > > Please read the Kicad FAQ in the group files section before posting
      > > your question.
      > > > > Please post your bug reports here. They will be picked up by the
      > > creator of Kicad.
      > > > > Please visit http://www.kicadlib.org for details of how to
      > > contribute your symbols/modules to the kicad library.
      > > > > For building Kicad from source and other development questions visit
      > > the kicad-devel group at http://groups.yahoo.com/group/kicad-develYahoo!
      > > Groups Links
      > > > >
      > > > >
      > > > >
      > > >
      > >
      >
      style="color:white;">


    Your message has been successfully submitted and would be delivered to recipients shortly.