Author Topic: Should the schematic reflect the circuit or the layout?  (Read 4622 times)

0 Members and 1 Guest are viewing this topic.

Offline YuuTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Should the schematic reflect the circuit or the layout?
« on: December 12, 2023, 09:32:09 pm »
This may sound like a silly question but after designing a couple of boards in Kicad, I've come across situations similar to what you see below:



As you can see, in my schematic, I use the 1x1 connector socket symbol because that reflects the actual PCB I'm making. It makes it super easy to assign the pre-made footprint.
However, the actual components I'm putting there are just resistors so at the same time, I would like a schematic that shows resistors instead of the socket symbols. If I did that though, I can't assign any pre-made footprints that have two 1x1 sockets. I would have to make a custom footprint. That's not a big deal because I already do that for plenty of things but I'm curious on what is proper? Do you put the sockets like I've done? Do you put resistors? Do you somehow show both in the schematic? Do you make two schematics?

If it was TH or SMT, I put the resistor symbol of course but I'm not sure what is best for off-board connections/sockets/etc.
 

Online thm_w

  • Super Contributor
  • ***
  • Posts: 7236
  • Country: ca
  • Non-expert
Re: Should the schematic reflect the circuit or the layout?
« Reply #1 on: December 12, 2023, 10:10:27 pm »
Lazy solution would be to just draw the resistor symbol there where it is connecting, and have it as graphical only.

If the end result is them being populated, IMO, the proper thing is to have a custom symbol, that shows resistor and socket together. Then with that you can't screw up by placing J2 beside J10 on the PCB and having it go to the wrong place.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline YuuTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Re: Should the schematic reflect the circuit or the layout?
« Reply #2 on: December 13, 2023, 12:29:29 am »
Ah that's a good point. I had somewhat forgotten you could create custom symbols.

One thing that made me think about this topic was seeing a schematic of someone's lofi noise box. In the pic below, you can see he denotes the potentiometer R49 is external to the board by placing it between the X15 and X16 labels. I think that's sloppy and hard to recognize because they look like net labels instead.


If I had to make a schematic where an external potentiometer is soldered to pads on a circuit board. I'm not sure how I would do that yet. I wouldn't make a custom symbol with socket symbols because that would just look funky. Maybe mounting hole symbols on each end of the potentiometer symbol. Nothing satisfying immediately pops into my head. Would have to think about it later.
 

Online thm_w

  • Super Contributor
  • ***
  • Posts: 7236
  • Country: ca
  • Non-expert
Re: Should the schematic reflect the circuit or the layout?
« Reply #3 on: December 13, 2023, 01:11:51 am »
Most would just have the potentiometer symbol as in a normal schematic. You can look up some audio amp schematics, or old PSU schematics that use multi turn pots.

I agree I don't like the X15 mark, I think a normal pot symbol is better, and then a normal symbol with some note or additional markings showing its panel mount would be best. Then for soldering, silkscreen labeling with wire colors or designations on the PCB. But different people/companies have different preferences.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5463
  • Country: us
Re: Should the schematic reflect the circuit or the layout?
« Reply #4 on: December 13, 2023, 05:37:48 am »
Simply placing the pot in the schematic causes another problem.  It will create a part that needs placing on the PCB.  As near as I can figure the best approach is to create connection points (connectors, solder eyes or whatever) for the pot that will then be placed in the PWB, and then use a symbol with no footprint for the pot.  That is still likely to give you an issue at BOM time.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3901
  • Country: nl
Re: Should the schematic reflect the circuit or the layout?
« Reply #5 on: December 13, 2023, 06:05:16 am »
The first and most important goal for the schematic is to have a user readable reference of what a circuit does and how it works.
The schematic is all about function, and not about form.

For you as the designer it does not matter much (at the moment) because you've probably put a bunch of hours into designing it and know every detail intimately.
But what if someone else reads it, or if you want to make a modification 5 or 10 years later?

For the function it does not matter at all whether a (power?) resistor is soldered directly to the PCB or via some connector. But if you do not even show there is a resistor in your circuit the schematic is broken. I have no idea how many and how the resistors are intended to be connected to your connector. I could guess there would be 4 resistors, horizontally connected, but it's a guess, and I don't like to guess. Your schematic also does not show the value or power rating of the resistors. It's not even in your BOM so you probably forget to order it.

The schematic of the "lofi noise box" is the expected and normal way to draw a schematic. For the function it does not matter (except for some parasitic inductance / capacitance) whether the potentiometer is somewhere else. If you want to be explicit, then you could draw a dashed line around it and add a comment that the potentiometer is off-board, but I regard that as mostly clutter and implementation details that obfuscate the function.

It really should be big things first. And the big thing is that there are resistors in your circuit, and how they are connected to the rest of the schematic.

Similar for IC's. When I see a circuit in which all the pins are drawn in the order they are on the IC, then my first question is "does this make sense here?" and almost always the answer is no. (Sometimes it makes sense, for example for a test socket in an universal programmer). Another example is showing operational amplifiers as a square box instead of triangles, or even worse, a quad op-amp which has a single dip-14 schematic symbol. Yuch! When I see those things, I rarely look further at the rest of the circuit but just post a remark to redraw the schematic. I am just not willing to waste time into deciphering such stuff.
 

Offline YuuTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Re: Should the schematic reflect the circuit or the layout?
« Reply #6 on: December 13, 2023, 09:50:28 pm »
Thanks for the reply Doctorandus. Makes a lot of sense.
It's funny. I had socketed op-amps in that same circuit but I used the op-amp symbol in the schematic and just set the footprint to the socketed one. Not using the op-amp symbol, and instead using a box with 8 pins, would be very cancerous and make the schematic unreadable.
In the future, I'll use the regular resistor symbol. Then I can just make a custom footprint. As far as BOM stuff goes, I can add as many digikey attributes to a symbol as I need. Works great for personal projects but likely slightly improper for formal situations.
I looked at some older schematics at work today and they use dashed lines to indicate whether components are external or not so I think I'll adopt that when I feel it bugs me.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2925
  • Country: us
  • Not An Expert
Re: Should the schematic reflect the circuit or the layout?
« Reply #7 on: December 13, 2023, 10:28:25 pm »
Another thing to consider is that if you are generating your BOM from your schematic, then you will need to remember to add those resistors to a higher level assembly BOM somewhere or they won't get purchased.

Another sort of related problem I've run into is with something like the Raspberry Pi CM4 module.  I have a single CAD part that represents that module as one thing (mounting holes, connectors, outline, etc).  But the actual parts that need to go on the PCB BOM are two individual SMT headers.  This screws up the pick and place file because it only shows one part with a central pick point, not two separate connectors each with their own pick points. 
 

Offline JohanH

  • Frequent Contributor
  • **
  • Posts: 655
  • Country: fi
Re: Should the schematic reflect the circuit or the layout?
« Reply #8 on: December 13, 2023, 11:24:39 pm »
Simply placing the pot in the schematic causes another problem.  It will create a part that needs placing on the PCB. 

No. Just assign three holes as footprint to the potentiometer symbol, or a three pin terminal, connector, whatever you use to connect the potentiometer to the PCB.

Also, you could create a whole off-board part of a schematic and mark the parts as not to be placed on the PCB (in the symbol properties). For clarity, add some graphic and/or comment that makes it clear they are not part of the circuit board.
 
The following users thanked this post: thm_w

Offline YuuTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Re: Should the schematic reflect the circuit or the layout?
« Reply #9 on: December 13, 2023, 11:27:24 pm »
Another sort of related problem I've run into is with something like the Raspberry Pi CM4 module.  I have a single CAD part that represents that module as one thing (mounting holes, connectors, outline, etc).  But the actual parts that need to go on the PCB BOM are two individual SMT headers.  This screws up the pick and place file because it only shows one part with a central pick point, not two separate connectors each with their own pick points.

Yeah I can see things getting a little tricky if you're using pick and place and not just hand soldering all the parts. I haven't had to delve into that yet since I've just been doing personal small stuff at this point.
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1626
  • Country: ua
Re: Should the schematic reflect the circuit or the layout?
« Reply #10 on: December 13, 2023, 11:36:12 pm »
FYI the image isn't loading for me, probably because imgur doesn't like my proxy server. The error code is "429 Too many requests".

This is an example why hotlinking images should be avoided.

 

Offline YuuTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Re: Should the schematic reflect the circuit or the layout?
« Reply #11 on: December 13, 2023, 11:40:41 pm »
Hmm, I figured imgur is the cleanest option because then the images are inline. It looks pretty to me. I prefer it over having it as an attachment and then having to click them and what not.
I wasn't aware imgur doesn't work for some people.
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4778
  • Country: dk
Re: Should the schematic reflect the circuit or the layout?
« Reply #12 on: December 13, 2023, 11:45:23 pm »
Another thing to consider is that if you are generating your BOM from your schematic, then you will need to remember to add those resistors to a higher level assembly BOM somewhere or they won't get purchased.

Another sort of related problem I've run into is with something like the Raspberry Pi CM4 module.  I have a single CAD part that represents that module as one thing (mounting holes, connectors, outline, etc).  But the actual parts that need to go on the PCB BOM are two individual SMT headers.  This screws up the pick and place file because it only shows one part with a central pick point, not two separate connectors each with their own pick points.

the CM4 module is iffy anyhow, the connector datasheet specifically says to only use one because the mounting tolerances for mounting more is +/-0 i.e. impossible
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1626
  • Country: ua
Re: Should the schematic reflect the circuit or the layout?
« Reply #13 on: December 13, 2023, 11:55:49 pm »
Hmm, I figured imgur is the cleanest option because then the images are inline. It looks pretty to me. I prefer it over having it as an attachment and then having to click them and what not.
Yes attachments in this forum engine suck. That's why I use a (somewhat tedious) workaround of opening them in a new window, then editing the message and copying the image URLs and pasting them back enclosed in the img - /img tags. That saves them on the server(s) along with the forum's data and they work for a given visitor whenever the rest of the forum works.

I wasn't aware imgur doesn't work for some people.
I wasn't aware either before I started to notice an occasional missing message in some posts :). Apparently they treat my proxy server's subnet block as "bots" and respond with a 429 regardless of whether my specific IP address has ever done anything bad or not. Which sucks.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2925
  • Country: us
  • Not An Expert
Re: Should the schematic reflect the circuit or the layout?
« Reply #14 on: December 14, 2023, 06:44:29 pm »
Another thing to consider is that if you are generating your BOM from your schematic, then you will need to remember to add those resistors to a higher level assembly BOM somewhere or they won't get purchased.

Another sort of related problem I've run into is with something like the Raspberry Pi CM4 module.  I have a single CAD part that represents that module as one thing (mounting holes, connectors, outline, etc).  But the actual parts that need to go on the PCB BOM are two individual SMT headers.  This screws up the pick and place file because it only shows one part with a central pick point, not two separate connectors each with their own pick points.

the CM4 module is iffy anyhow, the connector datasheet specifically says to only use one because the mounting tolerances for mounting more is +/-0 i.e. impossible

Yup. 
https://www.eevblog.com/forum/manufacture/fine-pitch-high-speed-connector-alignment-issues-(ex-rpi-cm4-headers)/
 

Offline babysitter

  • Frequent Contributor
  • **
  • Posts: 899
  • Country: de
  • pushing silicon at work
Re: Should the schematic reflect the circuit or the layout?
« Reply #15 on: December 14, 2023, 10:25:17 pm »
I put a lot of comments in schematics, boxes for parts that should go together or in a certain place, and if a wire needs special attention, it will be thicker, e.g. when carrying power or should be really, really short. Must confess, I might still be more accurate.
BR
I'm not a feature, I'm a bug! ARC DG3HDA
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf