# Kicad pinout

**URL:** <https://community.zymbit.com/t/kicad-pinout/1610>\
**Category:** HSM4\
**Created:** [December 4, 2023, 9:03pm UTC](https://community.zymbit.com/t/kicad-pinout/1610 "2023-12-04T21:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tennisparty](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tennisparty](https://community.zymbit.com/u/tennisparty)\
**Post date:** [December 4, 2023, 9:03pm UTC](https://community.zymbit.com/t/kicad-pinout/1610/1 "2023-12-04T21:03:05Z")

</div>

Hello, I am trying to design a HSM4 into my project. I am struggling because the pinout on the DF40C-30DP-0.4V(51) connector is a mirror image of the Zymkey HSM4 cad layout

 ![Screenshot 2023-12-04 at 20.58.57](https://canada1.discourse-cdn.com/flex027/uploads/zymbit/original/2X/7/7f3bdd91076d18a4165abf374bb851535b4ecc2a.png)  
 ![Screenshot 2023-12-04 at 21.01.23](https://canada1.discourse-cdn.com/flex027/uploads/zymbit/original/2X/4/4c746f66146f92dee0d7d05d5209d70b8ec377b8.png)

Do I need to alter the pin assignment on the DF40C-30DP-0.4V(51) connector so that it matches the underside pinout of the HSM4?

Do you have a CAD layout of the HSM to PiZero HAT that I can use as a guide?

Many thanks,  
Sam

---

<div class="post-metadata">

**Author:** ![Finbarr\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@Finbarr\_of\_Zymbit](https://community.zymbit.com/u/Finbarr_of_Zymbit)\
**Post date:** [December 5, 2023, 12:37am UTC](https://community.zymbit.com/t/kicad-pinout/1610/2 "2023-12-05T00:37:23Z")

</div>

@tennisparty  
Yes you will need to alter the pin assignment on the DF40C-30DP-0.4V(51) connector so that it matches the underside pinout of the HSM4. \*\*  
See the image below of “HSM PiZeroHat with pin numbers”. More details are available in [getting-started-HSM4.](https://docs.zymbit.com/getting-started/hsm4/quickstart/)

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/zymbit/original/2X/0/03deb0829161126b7c33baff5b76f08ed5bb911a.jpeg)

\*\* Zymbit made a call on identifying pin 1, before Hirose documentation was available :(.

---

<div class="post-metadata">

**Author:** ![tennisparty](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tennisparty](https://community.zymbit.com/u/tennisparty)\
**Post date:** [December 5, 2023, 5:25pm UTC](https://community.zymbit.com/t/kicad-pinout/1610/3 "2023-12-05T17:25:51Z")

</div>

Thankyou, that’s really useful. I managed to mirror the layout in the library manager so it matches,

Thanks again,  
Sam
