2 Designing your own Adapters
sanni edited this page 2023-05-06 10:29:33 +02:00

To design your own adapters you need to download and install the following software:

Making an adapter PCB will take you about three hours.

Important: This tutorial will not teach you how to use KiCad, you already need to know how Kicad works. It will just show you how I designed the adapters. To learn KiCad it's best to watch some Youtube videos about KiCad.

To start download and open the KiCad project of an already released adapter that fits your new adapter idea the best: https://github.com/sanni/cartreader/tree/master/hardware
image

Double-click on the kicad_pcb file
image

Select Global Deletion to get rid of all the traces
image
image

Delete everything you don't need
image

Open the kicad_sch file
image

Delete everything you don't need
image

Open the symbol editor
image

Right-click on the OSCR library and select new symbol
image

Give the new symbol a name
image

If you want you can copy&paste from another symbol
image

Then you can rearrange everything until it matches the desired pinout and save
image

Open the footprint editor
image

Locate the OSCR library and create a new through-hole footprint
image

Now place the needed pads, make sure you don't mix up the pin numbers compared to your symbol. You can choose a grid with the same spacing as the pin spacing of your cartridge slot to place the pads more quickly. Save once finished.
image

Back in the schematics editor you can now place the newly created symbol
image
image

Open your pinout next to the schematics editor. Now duplicate(Ctrl+D) the little flags next to the Cart Slot Top/Bottom Row pins one by one and move(m) and rotate(r) them to the right position on your newly added symbol.
image

Once done you also need to connect either the +5V or +3.3V pin to the VCC pin according to the voltage your cartridge needs using the line tool to make the adapter compatible with HW4, HW5 ignores this and has its own voltage switch. Also make sure you give your symbol a reference name like U1.
image

Now perform an electrical rules check and fix all error that appear and save
image
image

Open the kicad_pcb file again and add your newly created footprint
image

Give it the same name as you have given the symbol in the schematic
image

Press the "Update PCB with changes made to schematic" button
image

For the next step it is best if you align the grid to your solder pads. So choose same grid spacing as your pin spacing of your cartridge slot, then select a pad of your cartridge slot and press (m) then press (s) and left click. There should now be a little crosshair in the center of the pad and the grid should be aligned to the cartridge slot.
image

In the F.Silkscreen layer use the text tool to write the pinout next to each pin. This makes trouble shooting later easier. Once done save.
image

Now select "Export" and "Specctra DSN"
image

Launch FreeRouting and open the dsn file that you just exported
image

Click "Autorouter" and wait a little
image

Once the routing is done the batch optimization will start which can take quite some time
image

As soon as it has finished you can select "Export Specctra Session File"
image

Import the session file in KiCad
image

Press "Show the design rules checker window" to fix any issues. This step is super important, especially after using the autorouter. After that open the 3D viewer to check if the silkscreen looks ok too
image
image

Finally select "Plot"
image

Press the "Plot" button and the "Generate Drill Files" button
image

Press the "Generate Drill File" and "Generate Map File" buttons
image

Finally put all the Gerber files into a zip and upload it to a PCB maker image