Eagle Schematic - Rename socket and pins

Eagle Schematic - Rename socket and pins

Anonymous
Not applicable
6,812 Views
4 Replies
Message 1 of 5

Eagle Schematic - Rename socket and pins

Anonymous
Not applicable

Hi folks,

 

 

Apologies if this is a really dumb question but I've been messing around now for days with it.

 

I have the following:

 

sockq.png

 

I want to name the pins VCC, GNC, BLA, BLA2.

If I right click on one of the pins and go to Properties, I can change the component value and show that (Socket1)

How do I change the pin values? I cannot get it to not say EE-1, 2, 3 etc.

 

I've watched a few sparkfun tutorials (for example) but alas, I cannot see how the named JP2 pins.

I've clicked on the "R2/10K NAME" function in the toolbar but that just makes my laptop gong at me when I click on a pin....

 

 

Many thanks for any help or pointers.

 

C

 

0 Likes
Accepted solutions (1)
6,813 Views
4 Replies
Replies (4)
Message 2 of 5

one-of-the-robs
Advisor
Advisor
Accepted solution

The short answer is you can't. The longer one is that it needs trickery.

When you place a component in your design, the name of the whole component is editable but the name of an individual gate of that component is fixed as being that "whole component" name plus the pre-defined suffix in the library. If a particular gate has a particular function, then the library should name it appropriately. An example of this would be a subsection of a micro containing all the "port B" pins, which you might name "-PB" or similar. Another, from a recent thread on here, is a dual-LED where the "gates" are named "RED" and "GREEN".

Another option is to define your connector as a single "gate" with multiple pins on the symbol, and name the pins for what they connect to. This is what the Sparkfun tutorial did. However, that's not really appropriate for a connector. Really, you want that connector to show pin numbers because that's what the connector defines. Unless it's a special connector that only has one purpose, of course, such as a USB socket.

I would recommend, for your purposes, that you leave the connector showing pin numbers but add labels on each of the nets attaching to it, placed close to the connector symbol. These labels will automatically show the name of the net, which should be "GND", "VCC", "BLA", etc. because power nets always have such names and you will name the other nets to suit.

Message 3 of 5

Anonymous
Not applicable

@one-of-the-robs wrote:

I would recommend, for your purposes, that you leave the connector showing pin numbers but add labels on each of the nets attaching to it, placed close to the connector symbol. These labels will automatically show the name of the net, which should be "GND", "VCC", "BLA", etc. because power nets always have such names and you will name the other nets to suit.


Thanks @one-of-the-robs I am glad you've said the above because after realising (from one of the tutorials) I can have nets not connect just named the same with a label, I've been doing that.  

 

Thanks for taking the time. Eagle seems like quite a complete tool; nore so for a noob. Not sure I'll understand it all by Wednesday 😁

 

thanks again

 

C

0 Likes
Message 4 of 5

Anonymous
Not applicable

@one-of-the-robs  - in the sparkfun tutorial, https://cdn.sparkfun.com/assets/6/e/4/f/4/52127868757b7f30438b4567.pdf, they have JP2 pins named and JP1 pins not.

 

Is this because, as you said, JP2 is a custom component? I cannot see in the tutorial how they are adding or doing this.

 

 

Cheers,

C

 

0 Likes
Message 5 of 5

one-of-the-robs
Advisor
Advisor

@Anonymous wrote:

@one-of-the-robs  - in the sparkfun tutorial, https://cdn.sparkfun.com/assets/6/e/4/f/4/52127868757b7f30438b4567.pdf, they have JP2 pins named and JP1 pins not.

 

Is this because, as you said, JP2 is a custom component? I cannot see in the tutorial how they are adding or doing this.


Yes, this is because they're using a custom connector. If you look in the tutorial linked in your first post, at "Step 5", there is a table of the connectors they use. I think JP2 is

6-Pin Serial Programming Header	SparkFun-Connectors	ARDUINO_SERIAL_PROGRAMPTH

So it's a custom, Arduino-specific connector from their own library. I think "J2" is

2x3 AVR Programming Header	SparkFun-Connectors	AVR_SPI_PRG_6PTH

which is again custom but, in my view, more nicely designed.

Unfortunately, that tutorial makes no mention of the library editor. There are plenty of good tutorials out there for that, and one of these days I'll remember to make a list somewhere I can paste from.

0 Likes