Need some help with a PCB design

DaGameFace

04 Oct 2015, 21:55

I already know what I want; a 3x3 of cherry mx switches with 4 empty holes at one edge so I can mount 2 other switches elsewhere by soldering some jumper wire in. All of these would be connected to an Arduino.

I have only one problem, I don't know how to use any PCB design software, I do however know how to use photoshop, and have a basic understanding of how a PCB works.

This is a photoshop file that shows what I want.
https://drive.google.com/file/d/0B6kP6Z ... sp=sharing

So, I have no idea how to proceed from here, I have already gotten my thoughts out the best way I know how.

User avatar
ne0phyte
Toast.

05 Oct 2015, 15:12

There is a basic tutorial how to design a keyboard PCB with KiCad on the wiki: http://deskthority.net/wiki/KiCAD_keybo ... sign_guide

Then again.. I spent way too much time in KiCad lately so this didn't take much time :D
Is this what you want (-> spoiler)? And should the Teensy be on the front next to the switches?
Or rather on the back between the 3x3 matrix so you only see the switches on the front and have a rectangular PCB?

Oh and what kind of Arduino did you have in mind? I just used a Teensy2.0 since I had a component and footprint for KiCad for that. Did you want to connect each switch to a separate pin or use them in a ghost-free matrix with diodes like I did it?
Spoiler:
Image
Image

DaGameFace

05 Oct 2015, 23:55

whoa, that was quick..
Thank you for helping me out! That does look mostly right, but i am using an ATmega32U4/(Pro Micro - 3.3V/8MHz) instead of a teenesy. I have already written the code for it to work with a 3x3 of keys set up each with its own positive but shared ground wire. The pin layout in the photoshop file is the one I had intended on using for this to save time on re-coding for a matrix layout (i think that's what yours has)

finally, on a small note i was planning on putting the mx switches as close together as possible and 3d print my own keycaps.I think only a couple millimeters between them would be best.

User avatar
ne0phyte
Toast.

06 Oct 2015, 02:12

How about this? I used your pin mapping and the switches are now in a 14.5mm grid instead of 19.5mm.
Spoiler:
Image
Image

DaGameFace

06 Oct 2015, 02:52

Dude, that looks great! cant thank you enough, if you make it a little wider and give me like 4 holes on it each corner itll be perfect,

Cant thank you enough for helping me out so much.

Can you send over the Gerber file or whatever format you used?

User avatar
ne0phyte
Toast.

06 Oct 2015, 11:32

How big should the screw holes be? Or do you know which screws you are going to use?

DaGameFace

06 Oct 2015, 14:47

im going to 3d print a shell for this, just going to have plastic pegs for now, so whatever size works

would like there to be mounting options if i change my mind though

User avatar
ne0phyte
Toast.

07 Oct 2015, 00:11

Dunno if this is what you had in mind, I added four 2.5mm holes and attached the gerber files. I could also upload the KiCad project files if you need them.
Image
Attachments
gerber_3x3.zip
(55.61 KiB) Downloaded 151 times

DaGameFace

07 Oct 2015, 00:52

if you could send over the kikad as well that would be appreciated, might try to teach myself kikad by attempting to do the led mounts/tracings (you dont have to do that, its not important to me)

Thank you again for this help, some forum people are just amazing. Its times like this that I am grateful to live in a time and a country with internet.

User avatar
ne0phyte
Toast.

08 Oct 2015, 11:13

Here you go. Be warned that KiCad is really annoying to learn and use, crashes regularly and the library management is not very intuitive... :?
...but it's open source and usually you can somehow work around the bugs :lol:

I used the latest 2015 Stable (KiCad 4.0.0-rc1) to create that PCB. You should download that or a newer version from the KiCad website.
Attachments
keyboard_3x3.zip
(486.37 KiB) Downloaded 155 times

DaGameFace

09 Oct 2015, 01:18

Reverse engineering your project, this is actually helping me learn quite a bit. In the meantime id like to order the board you designed, any suggestions for websites? preferably American but not necessary.

User avatar
ne0phyte
Toast.

11 Oct 2015, 23:45

Sorry, no idea regarding US companies for PCBs. Maybe someone else here has a recommendation.

You could always order from china real cheap, though.
http://www.elecrow.com/10pcs-2-layer-pcb-p-1175.html
http://smart-prototyping.com/PCB-Protot ... r_name=pcb

User avatar
chzel

11 Oct 2015, 23:51

I have used Seeedstudio's Fusion PCB service before and the boards were perfect.

User avatar
flabbergast

12 Oct 2015, 08:41

I've used iTeadStudio a couple of times and the PCBs were okay quality (I mean there was absolutely nothing wrong with them, but they don't look as professional as OSH Park's ;)

Post Reply

Return to “Workshop”