# The Gherkin Build Guide

## Required to Build:

Before we start, let’s check we've got everything included in the kit. If there’s anything missing, send us a message [here](https://mechboards.co.uk/pages/faq) so we can get you back to the build ASAP!&#x20;

|                                     |                     |                  |
| ----------------------------------- | ------------------- | ---------------- |
| 1 x Gherkin PCB                     | 1 x Switch Plate    | 1 x Back Plate   |
| 30 x Through-hole Diodes            | 16 x 12mm Standoffs | 32 x 6mm Screws  |
| 1 x RP2040 Controller + Header Pins | 4 x Rubber Feet     | 30 x MX Switches |
| 1 x Keycap Set                      |                     |                  |

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2F8LVyIbYCqpcEgMhD7VHC%2Fimage.png?alt=media&#x26;token=fb5af435-26a9-4400-98bf-ca1a0f41ee76" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FaiNsCx3mTrHN9idALGWz%2Fimage.png?alt=media&#x26;token=892f3a9a-11ed-41ec-bc3d-3663bc7992dc" alt="" width="563"><figcaption></figcaption></figure>

## Tools Required:

Here's a list of the tools you need to build the keyboard:

|                  |                                |        |
| ---------------- | ------------------------------ | ------ |
| Soldering iron   | Phillips head screwdriver (M2) | Solder |
| Snippers/Cutters | Diode Bender (Optional)        |        |

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FAebACtCIKBIxR0ENnxya%2Fimage.png?alt=media&#x26;token=870d7884-223f-4232-96ae-e438f99b4e33" alt=""><figcaption><p>Tools required</p></figcaption></figure>

## Making the Gherkin:

### Step 1: Soldering the Controller Headers

First things first, we can solder the controller headers (they may be one pin too long, if so, you can just snip it off!), you'll want to orientate them by putting the longer pins through the bottom of the PCB. Once they're soldered, we need to snip off any excess pin to avoid them interfering with the switches.

{% hint style="danger" %}
It's important not to get ahead and solder the controller yet, we'll need to solder the switches and diodes underneath it first!
{% endhint %}

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2F9QW023WSXf9R2o0FswuI%2Fplaceholder.png?alt=media&#x26;token=bb9027de-1427-47f7-b012-8100903b90bf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2F9QW023WSXf9R2o0FswuI%2Fplaceholder.png?alt=media&#x26;token=bb9027de-1427-47f7-b012-8100903b90bf" alt=""><figcaption><p>Snipping the excess pin</p></figcaption></figure>

### Step 2: Bending and Soldering the Diodes

Now we can install our diodes. You can usually get away with estimating the bends, using the distance between the diode holes as a guide. A diode bender does make the job much more accurate and quicker if you've got one!

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FRULzZJKB21NTL88dmK2l%2Fimage.png?alt=media&#x26;token=cb2acb65-b954-4cdf-b9ef-ab392139a752" alt=""><figcaption></figcaption></figure>

Once they're bent, we can insert and solder them into the holes on the top of the PCB, making sure that the black end is pointing the same way as the line on the PCB.

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2Fg3KlBVjgeO4nyUXRTvFA%2Fimage.png?alt=media&#x26;token=481048dc-419a-46e5-878a-2614ee44cfb6" alt=""><figcaption></figcaption></figure>

### Step 3: Installing the Switches

Next up we can insert the switches into the switch plate, the orientation isn't vital here, but the notch on switch plate should allign with the notch on the PCB.

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2F0822joNCzGhQuffm8wrB%2Fimage.png?alt=media&#x26;token=f31b91fe-e5d9-4294-b225-6e6e66b2111f" alt=""><figcaption></figcaption></figure>

Now we can insert the switches into the top of the PCB carefully, making sure the pins allign with the holes on the PCB. A nice firm press should be enough! And once they're inserted we can solder each switch pin on the back of the PCB.

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FXC5yGnbgnFbByUwZOTdE%2Fimage.png?alt=media&#x26;token=076a8bf2-7181-4b54-a112-7bf069bec5f3" alt=""><figcaption></figcaption></figure>

### Step 4: Flashing and Installing the Controller

Before we install the controller, it's worth checking there's no obvious issues with it (desoldering controllers can be a big pain!). If you're unsure how to do this, [click here.](https://guides-mechboards.gitbook.io/guides/other-guides/controller-flashing-guide-rp2040-wired#flashing-a-wired-rp2040-controller)

After its been flashed we can solder it to the headers, components side down.

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2F8Zy0VRtV4sxfQHo4FyhU%2Fimage.png?alt=media&#x26;token=ee5aa3c4-a68b-4dca-9a9f-ce6ad3922ed0" alt=""><figcaption></figcaption></figure>

### Step 5: Installing the Case and Keycaps

Now we can screw the standoffs to the bottom plate (checking the orientation of the notch again), and place the rest of the Gherkin on top, screwing it into place.

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FME7n5EeYE2hROFwpTOfP%2Fimage.png?alt=media&#x26;token=93d85050-f909-49f6-a656-841c355cf77d" alt=""><figcaption></figcaption></figure>

Finally, we can install the keycaps by simply pressing them onto the switches.

<figure><img src="https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FoOtpfZZQZqtDbBybp7rh%2Fgherking_com.webp?alt=media&#x26;token=09b0dae4-24e5-4b36-8e13-a1513100e699" alt="" width="563"><figcaption><p>Fully assembled</p></figcaption></figure>

And there we have it, you should now have a fully assembled Gherkin!

## Additional Info:

RP2040 firmware:

{% file src="<https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FI9zZqPbJDlgPkI3ypKyF%2F40percentclub_gherkin_via.uf2?alt=media&token=39f5c27d-3600-4d54-a6e7-e289502c6046>" %}

To customise your layout in VIA, you'll need to upload this .json file:

{% file src="<https://456586235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bjiReLol1HqmhjbjtT5%2Fuploads%2FtUjdFGI8WQLLEjfeQCY1%2Fgherkinvia.json?alt=media&token=215dcaf7-9651-4758-9d1f-3fa785e18d79>" %}

All you need to do is go to the settings tab in VIA, enable 'Show Design tab'.\
Now you can select the design tab, press the 'Load' button, and upload the .json file there!
