-
Notifications
You must be signed in to change notification settings - Fork 746
Indicate on the schematic symbol the physical motion of a potentiometer #165
Comments
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 |
@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. |
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. |
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. |
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. |
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. |
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" |
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:
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.
The text was updated successfully, but these errors were encountered: