# Mix of 2.54mm and 2mm (English and metric) components

**URL:** <https://librepcb.discourse.group/t/mix-of-2-54mm-and-2mm-english-and-metric-components/633>\
**Category:** Libraries\
**Created:** [December 5, 2023, 8:43am UTC](https://librepcb.discourse.group/t/mix-of-2-54mm-and-2mm-english-and-metric-components/633 "2023-12-05T08:43:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gariac](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gariac](https://librepcb.discourse.group/u/gariac)\
**Post date:** [December 5, 2023, 8:43am UTC](https://librepcb.discourse.group/t/mix-of-2-54mm-and-2mm-english-and-metric-components/633/1 "2023-12-05T08:43:54Z")

</div>

I am building a simple breakout board. Just a 10 pin 2x5 socket that will mate with a ribbon cable and some 5 pin headers on both sides of the socket to slip some I/O device wires onto. The pin headers are 5 pin in line 0.1 inch/2.54mm. The socket is a 10 pin 2x5 on 2mm pitch.

The socket isn’t in the library. I am attempting to make a component in a local library. At this stage I discovered librepcb is set up with a 2.54mm grid and I need to put pins on a 2mm grid. What do I do?

I put some 2mm header on my latest parts order so i could try to make the entire board metric if need be.

I built a version of the board using components in the LibrePCB libraries. (attached)

 ![breakout_Board](https://global.discourse-cdn.com/free1/uploads/librepcb1/original/1X/c5e36364ec19dfe15588de60c48a9b6113f97546.png)

---

<div class="post-metadata">

**Author:** ![sasmus](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sasmus](https://librepcb.discourse.group/u/sasmus)\
**Post date:** [December 5, 2023, 9:31am UTC](https://librepcb.discourse.group/t/mix-of-2-54mm-and-2mm-english-and-metric-components/633/2 "2023-12-05T09:31:07Z")

</div>

> [@gariac](#):
>
> The socket isn’t in the library. I am attempting to make a component in a local library. At this stage I discovered librepcb is set up with a 2.54mm grid and I need to put pins on a 2mm grid. What do I do?

just change the grid - under “grid properties” (F4)  
you get this dialog, where you can change the current grid - eg to 2mm. If needed change to the default 2,54mm later.

 ![Bildschirmfoto 2023-12-05 um 10.30.15](https://global.discourse-cdn.com/free1/uploads/librepcb1/original/1X/cf61002b21ecce417b870b4c15f79479bc910c49.png)

---

<div class="post-metadata">

**Author:** ![gariac](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gariac](https://librepcb.discourse.group/u/gariac)\
**Post date:** [December 7, 2023, 8:45am UTC](https://librepcb.discourse.group/t/mix-of-2-54mm-and-2mm-english-and-metric-components/633/3 "2023-12-07T08:45:17Z")

</div>

Thanks. I though the grid was a global setting.
