EEVblog Electronics Community Forum

Electronics => PCB/EDA/CAD => KiCad => Topic started by: paulca on November 02, 2022, 05:20:34 pm

Title: Label interconnects?
Post by: paulca on November 02, 2022, 05:20:34 pm
I need a way to interconnect two labels and emit the error about them being connected to the same thing if possible.


I am doing a schematic, the first in a long while.  I'm trying sectionalise it as much as practical.

I have 2 MCUs an ESP32 and a STM32F411.  The ESP32 is just a Wifi module.

Version 1:  Will be for my own purposes and only used pins will be routed and connected.  Interconnects will be straight through as tracks.  A custom SPI header for an ILI9341 TFT screen.
Version 2:  If V1 works.  Will breakout all the GPIO pins on both MCUs and provide jumpers for the "standard" inter-connects, so that they may be disconnected and tapped for other purposes.... thus making the board a generic dev module.  The TFT may, or may not remain.

So in planning ahead I created labels on each MCU, distinct on both sides.  Example:

STM32:WIFI_IC_ENABLE  ----   ESP32:ESP32_ENABLE

Then I show a block of interconnects right in the middle of the schematic.  Later these distinct labels will terminate on a jumper on either side.

KiCAD flags this as an error as they are both on the same wire technically.

Options:
1.  Give up and just make the labels the same and re-label them when the jumpers are added.
2.  Find a way to exclude that specific error and accept the tranlated net names.
3.  Some other way to do the same thing....
4.  Don't bother it just adds complexity, call the spade a spade on both sides!

Thoughts?  Opinion?  Suggestions?
Title: Re: Label interconnects?
Post by: paulca on November 02, 2022, 05:21:31 pm
Ooops.  PFA draft, work in progress schematic.

[attach=1]
Title: Re: Label interconnects?
Post by: Benta on November 02, 2022, 07:51:30 pm
Quite frankly, I hate that way of drawing "schematics", and KiCAD will not support it well.
"Little boxes, little boxes, made of ticky-tacky...", well you get the idea.
What's your problem with wires/connections?

If you want to "sectionalise" it, the solution is hierachical sheets. But that would be a total overkill for a circuit that simple.

Title: Re: Label interconnects?
Post by: julian1 on November 02, 2022, 08:05:31 pm
I would almost be temped to use net-ties to support indpendent nets that are semantically equivalent. Although it's definitely a smell/messy. Normally they are reserved for when one needs to break trace/netclass properties (eg. star gnds, kelvin sensing etc).

Alternatively, use parallel resistor packs, or 0R jumpers.
Title: Re: Label interconnects?
Post by: SiliconWizard on November 02, 2022, 08:26:46 pm
I don't really get your problem. If you want to use different net names that end up interconnected, use hierarchical sheets, and connect those nets on the higher level. Done.
Title: Re: Label interconnects?
Post by: paulca on November 02, 2022, 09:20:16 pm
Not a problem.  An annoyance.  I ploughed on with the first draft, a mess on the pcb layout, but learnt a lot.  The warning is not a problem and doesn't affect routing. 

Honestly not a problem either, because now I have picked KiCad up again a little, the time it would take to add the jumpers when I add them and rename the nets is probably less time than the warnings will annoy me.  (Annoyance is always a function of time - debate me).

As you say, simple circuit.  I did add a few things, like the ILI9341 header etc.  It's just the last time I spent with KiCad was a lot more complicated and I was just trying to avoid harassment later, by being a good boy from the start.
Title: Re: Label interconnects?
Post by: paulca on November 02, 2022, 09:25:18 pm
On my first PCB draft in a while, lets say, I was doing well until I realised most of the stuff on the left MCU pins should probably been on the left side of the board.  More importantly.  The left side of the board with the XTL and power, should not really be the side you favoured for SPI and GPIOs.  At least in the STM32 world you can move the pins around somewhat.

Will connect the Cube MX pin diagram with the KiCAD PCB layout in my head the next time.