# DC Power jack polarity

**URL:** <https://forum.fritzing.org/t/dc-power-jack-polarity/20579>\
**Category:** beginners\
**Created:** [September 19, 2023, 5:37pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579 "2023-09-19T17:37:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainS](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@alainS](https://forum.fritzing.org/u/alainS)\
**Post date:** [September 19, 2023, 5:37pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/1 "2023-09-19T17:37:13Z")

</div>

I am not sure of the polarity of the DC power jack barrel  
 ![barrelCon](https://forum.fritzing.org/uploads/default/original/3X/0/a/0ae9ff1b7fb16653d3d8fe4c05c68935e5c03a50.png)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [September 19, 2023, 5:55pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/2 "2023-09-19T17:55:35Z")

</div>

For the one you ordered it is in the schematic

![capture1](https://forum.fritzing.org/uploads/default/original/3X/a/1/a10a86e2343b724073310fdd151214843cd756e1.jpeg)

The center pin (which can be + or - depending on the polarity of the wall wart) is pin 1 and the sleeve is pin2, pin 3 is the switch connection. If the barrel jack isn’t plugged in pin2 shorts to pin3.

Peter

---

<div class="post-metadata">

**Author:** ![alainS](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@alainS](https://forum.fritzing.org/u/alainS)\
**Post date:** [September 20, 2023, 11:06pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/3 "2023-09-20T23:06:23Z")

</div>

With the polarity of the source, the positive is on pin2 and negative on pin1 but on the PCB the outline of the part should be turned 90 deg. counter clockwise on my project. How d  
 ![outlinePart](https://forum.fritzing.org/uploads/default/original/3X/0/f/0fde9e48663c8f8ef6699aa5d9de0b147862c4e5.png)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [September 20, 2023, 11:18pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/4 "2023-09-20T23:18:50Z")

</div>

While I’m not clear on the question here, to rotate any part, click on it to select it, right click on it then select how much you want to rotate it.

 ![capture](https://forum.fritzing.org/uploads/default/original/3X/2/d/2d451777699fb08aeda30077187ed4beacc5e7ab.jpeg)

alternately click on a corner til you get the rotate symbol and drag the part the amount you want it rotated.

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/e/c/ec67ab493c583f039b614cf4289b649953549835.jpeg)

Peter

---

<div class="post-metadata">

**Author:** ![alainS](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@alainS](https://forum.fritzing.org/u/alainS)\
**Post date:** [September 21, 2023, 1:02am UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/5 "2023-09-21T01:02:13Z")

</div>

I know how to rotate a part and I’m sorry to not be clear enough:  
I have now the part on hand: There are 3 pins two (+ and -) are aligned, I would say from front to back on the center of the part, and the third (power ground) is to the left of them,. In order to put the part on the border of the PCB where the user can connect the power plug, I could not figure out how to rotate it as if I rotate the connections rotate too. Here, on red, the way how I would like the part to look like on the PCB:  
 ![outlinePart](https://forum.fritzing.org/uploads/default/original/3X/a/4/a4fa6bf550f268b7fa6d352463b3ef8e588a622d.png)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [September 21, 2023, 2:17am UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/6 "2023-09-21T02:17:49Z")

</div>

As noted, click on the part to select it

 ![capture](https://forum.fritzing.org/uploads/default/original/3X/1/e/1e6f257182a9d09fe17c43400fb2e929fbe27e41.jpeg)

then right click and select rotate 90 counterclockwise

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/0/a/0a2029d79d9af489a01a330adad1edd3918a2ae7.jpeg)

and the part rotates.

 ![capture2](https://forum.fritzing.org/uploads/default/original/3X/3/7/37307b6196b0f90629282f7de1d8c19c7152e408.jpeg)

You can also click on a corner of the part until you see a 1/4 circle with 2 arrows on each end then drag the part to the rotation you want.

Peter

---

<div class="post-metadata">

**Author:** ![alainS](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@alainS](https://forum.fritzing.org/u/alainS)\
**Post date:** [September 21, 2023, 5:19pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/7 "2023-09-21T17:19:58Z")

</div>

Sorry to come back to this subject but it seems to me that there is an error on the Fritzing part.  
 ![powerJackAmaz](https://forum.fritzing.org/uploads/default/original/3X/3/0/30a1dc9ddce54451615000368ee6de9d2202269f.png)  
As it is the pcb layout top view from Amazon the pin 3 is to the right looking at the picture and it is to the left in the drawing that may have been used for the part?

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [September 21, 2023, 6:02pm UTC](https://forum.fritzing.org/t/dc-power-jack-polarity/20579/8 "2023-09-21T18:02:54Z")

</div>

As far as I can see, the part matches the picture.

 ![capture](https://forum.fritzing.org/uploads/default/original/3X/1/2/1283cea02ddc4ff3593edfcb4de39f1415c6bff1.jpeg)

pin 1 on the bottom

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/7/3/73a7ec130f22e7f04bcc447b5feb0b5053ba4458.jpeg)

pin 3 above it and to the left

 ![capture3](https://forum.fritzing.org/uploads/default/original/3X/c/1/c1a13e9b49a986e9bfe9108d7f2893bb36a13fcf.jpeg)

pin 2 on the top. If the part is inserted on the top of the board it should connect correctly.

Peter
