Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Indicate on the schematic symbol the physical motion of a potentiometer #165

Open
evanshultz opened this issue Jan 13, 2018 · 8 comments
Open
Assignees
Labels
Enhancement Improves existing symbol in the library Question Author wishes to ask something

Comments

@evanshultz
Copy link
Collaborator

See the previous discussion at KiCad/Potentiometers.pretty#23.

Let me summarize the issue here. Let's use an audio volume control as the most basic and easy-to-understand circuit that surfaces the issue. In this case, pretend there is a rotary volume control which should make the music louder when turned CW and quieter when turned CCW.

Here is a circuit fragment:
image

The "CW" and "CCW" text allows the user to know how the wiper will move when the schematic is being constructed. The wiper must be at the top when the pot if fully CW so the signal nearly passes through the pot, and when the volume pot is turned fully CCW the wiper should be at ground so no signal is present at the second opamp.

Without these pieces of text, the schematic designer has no way to know where the wiper will be when the pot is fully at either end. The only way to sort it out would be to design the schematic, place the parts on the board to see ratsnest (routing is optional), and then trace out the connections while reading the pot datasheet. Things will work out half the time, and the other half of the time the user will need to flip the pot symbol so the ends of the element are reversed. It's truly a random 50-50 event.

By adding the CW and CCW text, and adhering to a standard in the library, we can guide the user to the physical behavior of the pot at the schematic level, allowing reasoning through the desired circuit operation and then properly connecting the pot terminals. No more guessing and going back to fix the schematic (netlist) for things the user could not have possibly known before layout.

There are other types of pots, too, besides rotary ones. Slide potentiometers are one example. In that case, instead of "CW" and "CCW" the pot pins would need a different name. But in the end the user will still need to know which way the wiper is moving as the slide pot is moved. Otherwise you're back to rewiring the schematic. Or, in this case, one could flip the slide pot footprints 180 degrees.

I hope this makes the problem more obvious. Does it help? Some nomenclature needs to be developed for the pot pins, then this needs to be codified so it's not broken in the future and KiCad users will have confidence in the pot symbol and footprints. Likely some footprints need to be updated as well.

@evanshultz evanshultz self-assigned this Jan 13, 2018
@bobc
Copy link
Contributor

bobc commented Jan 13, 2018

CW and CCW can be ambiguous, depending on how you look at it. I prefer to use an arrow which indicates increasing magnitude, which can be used for linear and rotary pots e.g:

https://www.jameco.com/Jameco/workshop/JamecoBuilds/schemekey5.jpg
image

@LarryJoy
Copy link

LarryJoy commented Sep 4, 2018

Here is IEEE Std 315 "standard" for rotation designation:
screenshot from 2018-09-04 10-01-51
I don't know what to use for a slide potentiometer. The arrow seems to be the prudent symbol to use. Please keep in mind that for a rotary potentiometer the sense should be to increase the quantity your adjusting and this means that the resistance may not be increasing. For instance if you were trying to set the collector current on a BJT, to increase the current you would decrease the resistance in the base current circuit in order to increase the base current and thus increase the collector current. Thus the CW sense to increase is preserved.

@myfreescalewebpage
Copy link
Collaborator

myfreescalewebpage commented Mar 18, 2019

@evanshultz the above comment from @LarryJoy is helpful I think, what do you think of it ? We should also think to a new name for the CW potentiometers, but I can make a PR if we agree.
Potentiometers currently in te lib: "R_POT", "R_POT_Dual", "R_POT_Dual_Separate", "R_POT_TRIM", "R_POT_TRIM_US", "R_POT_US".
Joel
Edit: I propose CW to be pin 1 by convention in the library.

@evanshultz
Copy link
Collaborator Author

All of the above comments support having some indication of pot travel. I wasn't sure how to handle non-rotary pots (CW and CCW don't work) and Bob suggested an arrow.

I'm OK with an arrow but the exact details aren't fully nailed down, such as which end is pin 1 (does the arrow point toward pin 1 or away from it?). Is anything else not known?

So a bit more definition and then implementation.

@LarryJoy
Copy link

I am using a Bourns PV37W502C01B00 (12 turn) trimmer potentiometer. The schematic diagram of the pot shows terminals 1, 2, and 3 as follows: terminal 1 is one end, terminal 3 is the other end, and terminal 2 is the wiper. The CW (clockwise) direction is marked as being terminal 3. So if you are going to show an arrow for travel it should be from terminal 2, the wiper, with the arrow head pointing towards terminal 3.
--Larry
P.S. I had a very hard time getting to this posting. I went to GitHub directly, I have an account, and tried searching but nothing worked. The only way I got here was following the URL from the e-mail I received.

@kenneth558
Copy link

I use the PTV09A and b/c the footprint is opposite the manufacturer order for pins 1,2, and 3 I had to export the footprint and swap pins 1 and 3 in the exported copy.

I can't understand why evanshultz commented on Sep 3, 2018 says it doesn't matter that the pins are reversed. If that's true, how about NOT reversing them? That way I can further my trust in KiCad, put pin 1 to ground in the schematic like the manufacturer's datasheet would spec and not have the surprise AFTER the PCBs are made.

I'll adjust the microcontroller software temporarily to get by, but not ideal, and since I had another change or two to make in the PCB anyway, I'll live.

@evanshultz
Copy link
Collaborator Author

I'm not sure what you're referring to, but the actual pin numbers don't matter when considering a generic symbol. There will surely be conflicts with various datasheets and a generic symbol doesn't adhere to any one specific datasheet or manufacturer convention. Knowing which pin is connected to which part of the pot component (wiper and each unique end) is what matters.

Generic symbols are, by convention, generic. And in this case there's sadly a known issue.

Resolving this issue, by marking the symbols with some standardized convention and making all footprints match, means the library is consistent within itself and that's what is important to avoid issues like you outlined above.

@kenneth558
Copy link

kenneth558 commented Apr 9, 2019

No harm done, I was just referencing your comment in a closed thread where the Bourns PTV09A specifically was being discussed. That part does not appear to use a generic footprint, but rather a specific one which is why I figured it could just as well conform to Bourns' numbering. Sorry if I'm wrong, but I'd be a little surprised if it is using a generic footprint since it is titled "Potentiometer_Bourns_PTV09A-1_Single_Vertical"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement Improves existing symbol in the library Question Author wishes to ask something
Projects
None yet
Development

No branches or pull requests

6 participants