Author Topic: Moving Schematic Pins on ICs  (Read 2572 times)

0 Members and 1 Guest are viewing this topic.

Offline paulca

  • Super Contributor
  • ***
  • Posts: 1950
  • Country: gb
Moving Schematic Pins on ICs
« on: February 04, 2018, 08:05:49 pm »
I'm a Kicad newbie, so be gentle!

I have a circuit an ATMega328-P in it.

However I want to move the XTAL1 XTAL2 and RESET pins to the left side of the component.

When I edit the component it is of course in the Atmel library which I don't want to edit.

So I loaded it from the Atmel library, switched the working library and saved the component into the project library.  Then I moved the PINs.

It doesn't work.  It shows as having the pins swapped in the component editor, but when I place it in my schematic the pins have moved back to default.

There is also an issue with it loading the ATMega168A instead.  What I believe is going on here is that the 328 inherits or is an alias for the ATMega168 as they have the same pin out.  So when I am editing the 328p the changes are not used in the schemtic or it's getting confused.

Is there a way around this?  Is there any easier way to switch pins to the other side of a component?
"What could possibly go wrong?"
Current Open Projects:  3 Channel Audio mixer with DAC, BT, pre-amps and h/phone amp, WS281x LED controller Version 2 5V/5A w/Atmega328, FY6600 Power supply, 5A DC Load (Still!)
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 583
  • Country: no
  • Musician, programmer and EE hobbyist
    • alexanderbrevig.com
Re: Moving Schematic Pins on ICs
« Reply #1 on: February 04, 2018, 08:19:06 pm »
Just make your own symbol for it :) takes a few minutes, plus a few more for your first part.

It's not hard and you get to do what you want.
You can edit the existing one and save to your own library :)

Offline paulca

  • Super Contributor
  • ***
  • Posts: 1950
  • Country: gb
Re: Moving Schematic Pins on ICs
« Reply #2 on: February 04, 2018, 08:54:05 pm »
You can edit the existing one and save to your own library :)

That's what I tried to do, but it fails to show any changes made to it.  I tried restarting the app too.  Maybe I can delete the .cache or something.

I created my own schematic symbol for the DS1302 RTC which was fun, but the ATMega328 has a lot more on it and the atmel library one has all the finer details filled in.

If I load, edit and save the 328P the changes do not apply and when I edit it "EDIT->Edit in libary editor" the editor opens the ATMega168 instead.

If there was a way to somehow free it from it's association.

I couldn't see anything to do with aliases while editing the lib file either.
« Last Edit: February 04, 2018, 08:56:17 pm by paulca »
"What could possibly go wrong?"
Current Open Projects:  3 Channel Audio mixer with DAC, BT, pre-amps and h/phone amp, WS281x LED controller Version 2 5V/5A w/Atmega328, FY6600 Power supply, 5A DC Load (Still!)
 

Offline Jorpy

  • Contributor
  • Posts: 37
  • Country: dk
  • EE Student
Re: Moving Schematic Pins on ICs
« Reply #3 on: February 04, 2018, 09:29:25 pm »
You can edit the existing one and save to your own library :)

That's what I tried to do, but it fails to show any changes made to it.  I tried restarting the app too.  Maybe I can delete the .cache or something.

I created my own schematic symbol for the DS1302 RTC which was fun, but the ATMega328 has a lot more on it and the atmel library one has all the finer details filled in.

If I load, edit and save the 328P the changes do not apply and when I edit it "EDIT->Edit in libary editor" the editor opens the ATMega168 instead.

If there was a way to somehow free it from it's association.

I couldn't see anything to do with aliases while editing the lib file either.

Does it have the same name?
KiCad doesn't handle components with similar names, even if they are in different libraries.
 

Offline fable

  • Regular Contributor
  • *
  • Posts: 63
  • Country: cs
Re: Moving Schematic Pins on ICs
« Reply #4 on: February 04, 2018, 10:13:36 pm »
What version of KiCad do you use... I tried it and it works no problem. I'm using 4.0.7
 

Offline whalphen

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: Moving Schematic Pins on ICs
« Reply #5 on: February 04, 2018, 11:45:00 pm »
Edit the component and save it to your own library.  Be sure to give it a different name.  Then, hover over the component on your layout, press E to edit the component, and use the Change Footprint button to change it to your new footprint.
 
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 1950
  • Country: gb
Re: Moving Schematic Pins on ICs
« Reply #6 on: February 05, 2018, 08:14:55 am »
It's version 4.0.4 and I was giving it the same name.  I'll try and rename it tonight when I get in from work.

On libraries....  I tend to try and create one library for the project and keep/move anything custom to that.  I'm not sure I want to start creating new libraries with individual components.  Though there might not be anything wrong with that.

Ideally I would then use a text editor to collect components I might use in other projects and have a personal shared library.
"What could possibly go wrong?"
Current Open Projects:  3 Channel Audio mixer with DAC, BT, pre-amps and h/phone amp, WS281x LED controller Version 2 5V/5A w/Atmega328, FY6600 Power supply, 5A DC Load (Still!)
 

Offline donotdespisethesnake

  • Frequent Contributor
  • **
  • Posts: 877
  • Country: gb
  • Embedded stuff
Re: Moving Schematic Pins on ICs
« Reply #7 on: February 05, 2018, 10:18:43 am »
If you create your own version of a standard part, make sure your own library is higher up the list than the standard library. KiCad v4 takes the first version it finds.

If a part has aliases you don't want: find the base part, delete the aliases, then rename and save the part to your own library.
Bob
"All you said is just a bunch of opinions."
 

Offline whalphen

  • Regular Contributor
  • *
  • Posts: 90
  • Country: us
Re: Moving Schematic Pins on ICs
« Reply #8 on: February 05, 2018, 03:05:25 pm »
There's no need to create individual libraries.  Just use 'Set Active Library'  (leftmost icon) to select the one you want to use before you save it.  KiCad library management tools can be confusing.  I think it's the weakest functionality in KiCad.  But, once you get used to its quirks, it's not so bad.  The development team is promising some significant improvement with version 5.
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 1950
  • Country: gb
Re: Moving Schematic Pins on ICs
« Reply #9 on: February 10, 2018, 05:42:05 pm »
I renamed my version "328P" and it worked fine.

Thanks for the help!
"What could possibly go wrong?"
Current Open Projects:  3 Channel Audio mixer with DAC, BT, pre-amps and h/phone amp, WS281x LED controller Version 2 5V/5A w/Atmega328, FY6600 Power supply, 5A DC Load (Still!)
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 1570
  • Country: us
Re: Moving Schematic Pins on ICs
« Reply #10 on: February 10, 2018, 06:23:40 pm »
I tend to add my initials to things I create. That way not only are they unique, I'm never in doubt as to which copy I'm picking, and whose fault it is.
 

Offline saike

  • Regular Contributor
  • *
  • Posts: 74
  • Country: gb
Re: Moving Schematic Pins on ICs
« Reply #11 on: February 10, 2018, 07:09:06 pm »
If you are only experimenting with Kicad it might be worth downloading one of the nightly builds which are soon (maybe) to become Version5 of the software.
A lot of improvements, especially in the library system have happened since V4.x
 

Offline salfter

  • Contributor
  • Posts: 23
  • Country: us
    • My Blog
Re: Moving Schematic Pins on ICs
« Reply #12 on: March 06, 2018, 01:39:22 am »
You can edit the existing one and save to your own library :)
That's what I tried to do, but it fails to show any changes made to it.  I tried restarting the app too.  Maybe I can delete the .cache or something.
Does it have the same name?
KiCad doesn't handle components with similar names, even if they are in different libraries.

KiCad loads the first symbol that matches the name.  In the schematic editor under Preferences -> Component Libraries, have a look at this:



R is defined in both proper-passives (with the ANSI symbol for a resistor) and in device (with the IEC (?) symbol).  Since proper-passives is higher up the list, its definitions are prioritized.  If you want to override a stock symbol, this is one way you can do it...but you should probably not move pins around if you do as this could lead to broken nets if your modified symbol goes missing at some point.
 

Offline bson

  • Supporter
  • ****
  • Posts: 1553
  • Country: us
Re: Moving Schematic Pins on ICs
« Reply #13 on: March 07, 2018, 10:32:15 pm »
Yeah, grab the latest nightly.  Much of the library editing is totally reworked and VASTLY easier to use.  As in, create a library, then add components to it, or import from another library and edit.  It will also automatically prompt if you want to add it to the current project or globally.  (I'd recommend against globally though.  Ever.)

There are many other improvements too, for example the gerb viewer is totally redone and actually usable (though bare bones).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf