# Pins Not Lining Up With Breadboard

**URL:** <https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380>\
**Category:** bugs\
**Created:** [May 23, 2023, 3:08am UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380 "2023-05-23T03:08:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![janna\_camp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/janna_camp/32/16252_2.png) [@janna\_camp](https://forum.fritzing.org/u/janna_camp)\
**Post date:** [May 23, 2023, 3:08am UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/1 "2023-05-23T03:08:11Z")

</div>

I’m having the same issue as in this post from a few years ago where the pins aren’t always lining up with the breadboard. Any ideas on why it is happening or how to fix? It is happening sometimes, but not all the time, though it seems like once it starts happening on a specific breadboard, that breadboard doesn’t function correctly so I just have to move everything to a new one.  
In the screenshot below, the right board is working correctly, the left board is not working, using many of the same components on both.

[Breadboard Layout Doesn’t Line Up - beginners - fritzing forum](https://forum.fritzing.org/t/breadboard-layout-doesnt-line-up/1702)

 ![Screenshot 2023-05-22 220209](https://forum.fritzing.org/uploads/default/original/3X/3/8/3815c3ee5590f32807a4d37bd7b76adaacd1f41a.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:** [May 23, 2023, 3:30am UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/2 "2023-05-23T03:30:05Z")

</div>

The usual reason (although perhaps not in this case) is misalignment on loading of the breadboard when Fritzing starts. The cure is to enable snap to grid (it is usually on by default but can be off if the previous sketch disabled it.)

![capture](https://forum.fritzing.org/uploads/default/original/3X/c/6/c6fb6b7374f8ea4fc82d28b1eb7cd23f9380f59b.jpeg)

and then move the breadboard so it snaps to the grid. I tried a couple of times to get a breadboard to load out of alignment but of course it won’t work for me right now (every try is on the grid even when I went back to 0.9.10 in case this is fixed in 1.0) so I faked it by turning off snap to grid and moved the breadboard 0.05 in off the grid in x and y like this which is the typical load misalignment that I have seen (and what looks to be occurring in your image):

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/2/8/28e3b1dd5b8e6a1f603934a7dec01fc08cf20c38.jpeg)

note the breadboard holes are not on the 0.1in grid. Here I enabled snap to grid again then moved the breadboard so it snaps to the grid.

 ![capture2](https://forum.fritzing.org/uploads/default/original/3X/3/5/35a91ea57fa009effe616e0bfcc2afd231725582.jpeg)

and now it is properly aligned and should work correctly.

Peter

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [May 23, 2023, 4:37pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/3 "2023-05-23T16:37:34Z")

</div>

You can get the same symptom if the grid size is not 0.1 inch.

---

<div class="post-metadata">

**Author:** ![janna\_camp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/janna_camp/32/16252_2.png) [@janna\_camp](https://forum.fritzing.org/u/janna_camp)\
**Post date:** [May 23, 2023, 8:26pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/4 "2023-05-23T20:26:04Z")

</div>

I’ve played around with it to see how this issue is happening. I do have aligned to grid checked and the components seem to be able to line up most of the time so it’s not one specific thing having a problem. The most consistent recreation I’ve been able to come up with is using the half+ breadboard size (though other sizes are having the same issue also). Components will align fine until you move the breadboard. In the screenshot attached, I placed a few components which were fine, and then moved the breadboard (which kept the attached components fine). The subsequently placed components, however were not aligning correctly. I had turned on bendable wires and wondered if that triggered the problem but turned it back off and the problem persists.

 ![Screenshot 2023-05-23 142441](https://forum.fritzing.org/uploads/default/original/3X/a/c/acb11486af8f12e3f9da2be66b1c7bdb72867843.png)

In the full size breadboard I also seemed to have a couple spots that were registering connections where nothing was connected, which could be related or a separate issue.

 ![Screenshot 2023-05-23 142507](https://forum.fritzing.org/uploads/default/original/3X/e/0/e00eb0814090f12f68f222e8d42d0336a595b225.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:** [May 23, 2023, 8:43pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/5 "2023-05-23T20:43:54Z")

</div>

Huh! Which operating system are you on? On Windows 10 and Fritzing 0.9.10 I can’t reproduce this. Here I changed to a half+ breadboard added a resistor and a couple of LEDs then moved the breadboard a bit

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

and then dragged in another LED and resistor but they align to the grid properly and connect when dropped.

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

Unless I just haven’t tried it enough times to trip the bug (assuming it isn’t something specific to your system!) It may be profitable to try clearing the user directories (saving the current ones if you have custom parts!) to see if that helps. I haven’t seen other reports of this particular problem either and I would expect someone would have commented.

"There are two user directories (with your parts and the parts database) which don’t get touched during an install (to not affect your sketches during upgrades). On Windows they are in

c:\users\username\AppData\Fritzing\roaming\Fritzing (which is a hidden directory so you need to enable hidden directories in explorer) and

c:\Users\username\My Documents\Fritzing (where username is your windows id)

If you don’t have any parts or sketches you want to keep you can just delete those two directories and Fritzing will recreate them, or you can move them aside by renaming them if you want to keep something in them.

linux

~/Documents/Fritzing/parts  
~/.config/Fritzing

Mac

/Users/username/Documents/Fritzing/parts  
~/.config/Fritzing"

edit: another possibility just occurred to me. It is possible that moving the breadboard is changing which pin is aligned to the grid as the power strips are offset 0.05in. Indeed that looks to be the problem here (which I still can’t reproduce though) as your image above has the breadboard aligned to the grid on the power strip which puts the component strips 0.05in off the grid:

![capture3](https://forum.fritzing.org/uploads/default/original/3X/9/7/97d21b43735416c6b467aca54cb9c41377f13825.jpeg)

Here the power strip is aligned to the grid but the main pads are now 0.05in off the grid, The solution to this is probably an enhancement request (that is active I believe) to be able to specify which pin aligns to the grid (it is currently a mystery which pin Fritzing chooses although it is supposed to be connector0, although breadboards don’t have a connector0 and I have seen odd results from tests. This won’t happen on the full size breadboard because the power strip there is aligned to the grid:

 ![capture4](https://forum.fritzing.org/uploads/default/original/3X/b/e/bef42b9492687f68a04b5de4440f8bef04178fb4.jpeg)

Peter

---

<div class="post-metadata">

**Author:** ![roboteach](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/r/e274bd/32.png) [@roboteach](https://forum.fritzing.org/u/roboteach)\
**Post date:** [May 23, 2023, 9:03pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/6 "2023-05-23T21:03:20Z")

</div>

Hi there,

Lately I’m working a lot with the Half+ breadboards and I can confirm that the strange behaviour happens sometimes, even with all the “Align to grid” and “move to re-catch” actions.

My suspicion is that, as this breadboard has power lines that are half a mil moved laterally, sometimes it triggers the behaviour…

How does Fritzing “select” the “main pin” to align components to the grid?

Best regards

Edit: @vanepp was editing his post as I was writing mine… 😅 Same idea!

---

<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:** [May 23, 2023, 9:09pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/7 "2023-05-23T21:09:49Z")

</div>

> [@roboteach](#):
>
> How does Fritzing “select” the “main pin” to align components to the grid?

That is the question of the day! As I said in the edit above there is an issue (not an enhancement request) here on github to fix this. At present how Fritzing selects is a mystery. Testing tells me it isn’t as simple as always connector0 I wasn’t able to figure out what it is selecting on.

> <https://github.com/fritzing/fritzing-app/issues/3927>
>
> \## Problem
> The current part format does not specify an origin for the part. Fri…tzing uses the upper left corner of the svg for positioning the part. If you drag a part from the bin and the align to grid is enabled, Fritzing aligns one of the connectors to the grid. However, when there is a swap, the position of the old part is maintained. This does not make sense as all the pins can be not aligned. 
> See the example with a potentiometer:
> Before is swapped all the pins are aligned to the grid:
> !\[image\](https://user-images.githubusercontent.com/5708642/150091581-ee6981be-3cfc-445d-9730-451e681d56c0.png)
> 
> After swapping to a rotary potentiometer, all the pins are not aligned:
> !\[image\](https://user-images.githubusercontent.com/5708642/150091720-b77e78e3-4a0a-42e0-9445-c988f61dde4f.png)
> 
> If we place another trimmer potentiometer overlapping the rotary potentiometer, we can see how the upper left corner is at the same place:
> !\[image\](https://user-images.githubusercontent.com/5708642/150091997-95580120-bd6e-4ea1-8b03-55ca158811ab.png)
> 
> Issue #3077 suggests to align to the grid after swapping and rotating, but this is not enough for swapped parts. If the new part is offset 0.05in, the aling to grid could decide to align to two different positions in the grid. In addition, when obsoleting parts, it could be that the size of the parts has changed. Having a connector that specifies what the origin is would allow having at least one connector placed at the correct position.
> 
> 
> \## Proposed Solution
> Save in the part file a connector that will be used as an origin for the part. This was suggested by @mMerlin in #299.
> \> The uno and other boards that use the same header spacing have the same problem. Even more so, when the ICSP headers are included. What I think is really needed, is a way to specify which connector in the part to use as the 'origin', to align to the grid. That way the part creator can choose which block(s) of pins align, and which don't. Like:
> \> 
> \> \`\`\`
> \> \<connector id="connector9" origin="true\>
> \> \`\`\`
> \> 
> \> or
> \> 
> \> \`\`\`
> \> \<connector id="connector9"\>
> \> \<breadboardView\>
> \> \<p layer="breadboard" origin="true" …/\>
> \> \`\`\`
> \> 
> \> These cases are all microcontroller boards, and are not normally placed on breadboards. They typically (should) have type="female" connectors, so that parts (shields) can connect to them. The alignment is still annoying, because wires do not connect "straight" to (some of) the pins. No really "good" fix, since want to keep the part (bb view) matching the physical board. It would be possible to create variant parts where the bb view connectors are deliberately not where they are on the physical board. That would look a bit cleaner when running wires directly to the pins. It would also break if attempting to position an "accurately" designed shield/hat board over top.
> \> 
> \> Discontinued parts may not get 'priority', but they can still be useful. They still exist 'in the wild'.

Peter

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [May 23, 2023, 9:15pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/8 "2023-05-23T21:15:14Z")

</div>

A work around (not a solution), is to set the grid size to 0.1 inch, place a part (not on the breadboard), change the grid size to 0.05 inch, align the breadboard with the part, lock the position of the breadboard, then change the grid back to 0.1 inch. All further part placements should then align to the main part of the breadboard (but not the bus lines).

---

<div class="post-metadata">

**Author:** ![janna\_camp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/janna_camp/32/16252_2.png) [@janna\_camp](https://forum.fritzing.org/u/janna_camp)\
**Post date:** [May 24, 2023, 10:19pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/9 "2023-05-24T22:19:41Z")

</div>

Thanks all for your tips! I haven’t had a chance to play around with it the last couple days but these suggestions give me some things to look out for at least. 🙂

---

<div class="post-metadata">

**Author:** ![andrew\_heard](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/a/7993a0/32.png) [@andrew\_heard](https://forum.fritzing.org/u/andrew_heard)\
**Post date:** [February 10, 2025, 5:25am UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/10 "2025-02-10T05:25:13Z")

</div>

I’d been working on a layout for weeks with 1.27mm (0.05") grid alignment i.e. 1/2 pitch of 2.54mm. No alignment/ snapping issues . I’d just renamed the file (unsure if the reason). Now a simple custom part (red dot) which I created, if moved or new, are out of alignment by a fraction of the grid pitch. Standard parts are fine. But nothing has changed since my last edit a few days ago. Confusing. Windows 11, latest build. Thanks for any suggestions.  
 ![20250210-162811-stripboard layout.fzz_ - Fritzing - Breadboard View](https://forum.fritzing.org/uploads/default/original/3X/d/1/d1d51faca17071b965f8e439973f0ecf97f9088b.jpeg)

PS. if I go back to a previous backup version of the .FZZ file, adding my part snaps to the grid correctly. So appears to be some weird bug. I can’t reproduce the exact steps but after closing the new (good) file then re-opening, it has the snap offset again. grrr

---

<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:** [February 10, 2025, 5:11pm UTC](https://forum.fritzing.org/t/pins-not-lining-up-with-breadboard/19380/11 "2025-02-10T17:11:27Z")

</div>

Can you upload a copy of the sketch (the .fzz file, upload is 7th icon from the left in the reply menu) and what you do to create the offset? With a sketch to work from we may be able to figure out what is happening. The likely answer is a part that isn’t on 0.1in boundaries. With one of those Fritzing will sometimes select the wrong pin to anchor the grid (and it can change from one load to the next, i.e. one load aligns correctly, the next is offset at random intervals.) It would be better if there was a way to specify a reference pin but that hasn’t yet been implemented.

Peter
