How a Mechanical Keyboard Works (Matrix and Direct Wiring)

Ғылым және технология

In this video, we will talk about the two methods you can use to wire up a mechanical keyboard, direct wiring and a matrix with diodes. These concepts are the core knowledge you need to start designing your own mechanical keyboards from scratch, both PCB and handwired.
Find out more about the project: scottokeebs.com
Donations greatly appreciated: bit.ly/41odBEu
~ Handwiring Tools ~
TS100 Soldering Iron: amzn.to/3LCsrkb
D24 Chisel Tip: amzn.to/3VFxiES
63/37 Solder: amzn.to/3uBlMPu
~ Handwiring Parts ~
1N4148 Diodes: amzn.to/3Ccljbb
16g Copper Wire: amzn.to/3xLDVvJ
Raspberry Pi Pico: amzn.to/3HglCVb
Arduino Pro Micro: amzn.to/3HkR9Fn
Ethernet Cable: amzn.to/3uyaOKr
M2x6mm Screws: amzn.to/3UI1bDH
M2x8mm Spacer: amzn.to/3Y4KzJ3
M2 Heat Set Insert: amzn.to/3WjklB9
Durock Stabilizers: amzn.to/3FgcLQR
~ 3D Printing ~
Ender-3 Pro: amzn.to/3VIWryL
PEI Magnetic Bed: amzn.to/3Hi7URx
Dual Z Upgrade: amzn.to/3h7DTJy
BLTouch Auto-Leveling: amzn.to/3UGEBv8
~ Favorite Cheap Switches ~
Gateron Milky Yellow: amzn.to/3Bk0Cci
Akko Lavender Purple: amzn.to/3VJy440
~ Social ~
/ joe_scotto
/ joe_scotto
ko-fi.com/joe_scotto
~ Community ~
ScottoKeebs Discord: / discord
Handwired Keyboards Reddit: / handwiredkeyboards
~ Disclaimer ~
Some links may be affiliate links where I will make a small commission. Nothing in this video was sponsored by any outside party and I wasn't paid for the content in this video.
#mechanicalkeyboard #pcb #kicad

Пікірлер: 51

  • @Glarses
    @Glarses10 ай бұрын

    Great channel

  • @Dan_The_Paper

    @Dan_The_Paper

    7 ай бұрын

    Glarses!?

  • @disolsole9847

    @disolsole9847

    7 ай бұрын

    GLARSES

  • @drauc

    @drauc

    7 ай бұрын

    Glimsons??!?

  • @eris-cs

    @eris-cs

    6 ай бұрын

    d a v i d

  • @farnone6166

    @farnone6166

    3 ай бұрын

    Eh?

  • @joe_scotto
    @joe_scotto10 ай бұрын

    Here it is... the first video in the PCB series. This information is essential to be successful in designing a PCB but once you know it, you're 90% of the way there. I'm sure some people will have questions, so feel free to ask! I'm currently getting ready to release the second video in the next few days, I just have to finish editing it.

  • @AlphabetsFailMe
    @AlphabetsFailMe6 күн бұрын

    Thanks, very clear explanation.

  • @gunjja13
    @gunjja1310 ай бұрын

    So excited for the PCB series from you! Always such great videos coming from you.

  • @ssaffann
    @ssaffann10 ай бұрын

    You cant understand how much this video helpful for me! Thank you!

  • @TheSast
    @TheSast10 ай бұрын

    Can't wait for the PCB video!

  • @lucassrossi
    @lucassrossi10 ай бұрын

    OMG I was looking for content like this just a month ago, thanks a lot man!

  • @dgvigil
    @dgvigil10 ай бұрын

    I’m currently building the scottogame for my son and learned a lot in the process. I’m super interested in the next PCB video and expanding my knowledge to that next step.

  • @dmitry_sharikov
    @dmitry_sharikov10 ай бұрын

    Thanks Joe, very informative

  • @twintwin1005
    @twintwin100510 ай бұрын

    Nice video, thanks for sharing!

  • @francescodesantis1997
    @francescodesantis199710 ай бұрын

    Can't wait for the design PCB video. I've just built my first handwired keyboard and I'd like to design its PCB

  • @joe_scotto

    @joe_scotto

    10 ай бұрын

    It will be out very soon and because you’ve handwired, it will be extremely easy to follow along with!

  • @Tharrinne
    @Tharrinne10 ай бұрын

    I just started watching so I can't comment on the video itself but that necklace is awesome!

  • @Krish-StarDestined
    @Krish-StarDestined4 ай бұрын

    Thank you

  • @loneventhorizon
    @loneventhorizonАй бұрын

    awesome

  • @haf0
    @haf010 ай бұрын

    ay would you explain Japanese duplex matrix or robin duplex matrix too?

  • @gfhdlsk
    @gfhdlsk27 күн бұрын

    Best diagram

  • @MrPinkDino
    @MrPinkDino6 ай бұрын

    Do you have something about building a dactyl manuform keyboard?

  • @evanlane1690
    @evanlane16909 ай бұрын

    Not sure if one of my headphone's battery died, but I'm only getting audio out of the left channel. If you recorded in mono, remember to double it to both left and right channels. This content is awesome!!! I'm really excited about building my own.

  • @joe_scotto

    @joe_scotto

    9 ай бұрын

    Thank you, glad you enjoyed it! It's definitely your headphones died lol... I upload in mono to both left/right for my dialogue channels.

  • @ronaldsantosluna6148
    @ronaldsantosluna6148Ай бұрын

    Hello, greetings from Peru, I would like to know which microcontroller to use for a full size keyboard?

  • @streetdogarg
    @streetdogarg10 ай бұрын

    GREAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT VIDEO

  • @noogiesm
    @noogiesmАй бұрын

    waittt that necklace is so cute, did you make it yourself?

  • @Barbastruzzolo
    @Barbastruzzolo4 ай бұрын

    Settings --> Speed --> 0.5

  • @MasterPritex
    @MasterPritex10 ай бұрын

    What about leds?

  • @THEMithrandir09
    @THEMithrandir097 ай бұрын

    If I understand this correctly, a matrix should have issues with multiple keys being pressed at the same time, right? So if you press 0,0+1,0 and then add 0,1 the board wouldn't know if you added 0,1 or 1,1 right? Because row 0 and 1 are already active the board won't know which circuit was closed now since they're on the same column. It won't short because of the diodes, but it cannot really know what happend then right?

  • @karelissomoved1505

    @karelissomoved1505

    7 ай бұрын

    It will know every key pressed. lets call the 3 column A B C. and the 3 row are 1 2 3. In this case you presses the A1 A2 and B2 key. there are pins that can tell wether you activated 1, 2, 3 they are independent of each other. Now the trick is that voltage is only applie at one column at the same time. First you apply voltage to the A column. 1 and 2 will active. then you apply voltage only on the B column 2 is active. last you apply voltage on C column this time nothing has recieved any signal.

  • @THEMithrandir09

    @THEMithrandir09

    7 ай бұрын

    @@karelissomoved1505 Ohh, so it's basically scanning the matrix regularly? I thought it'd apply power all the time and basically instantly see when a switch is closed. But that makes sense that not all rows and columns always have power.

  • @MrznMkhl
    @MrznMkhl10 ай бұрын

    can shift registers be included too?

  • @joe_scotto

    @joe_scotto

    10 ай бұрын

    I haven’t personally used them but many people in my discord have: discord.gg/vN6X3z8eyv

  • @lolyman13
    @lolyman139 ай бұрын

    I’m not sure I fully understand how the controller understands which key is pressed on the matrix. Is it sending an impulse one column after the other? Would this mean that theoretically, a key press could be missed if pressed between impulses? Does it consume more energy than a direct wiring?

  • @joe_scotto

    @joe_scotto

    9 ай бұрын

    Basically that’s why we use diodes. The columns send a signal one after the other and the rows are all listening for them. For building a board it’s not super important to know the specifics but the docs do a really nice job explaining in detail: github.com/qmk/qmk_firmware/blob/master/docs/how_a_matrix_works.md

  • @Heron69
    @Heron6910 ай бұрын

    Jovirone?

  • @gouravmehra5007
    @gouravmehra5007Ай бұрын

    What if we will press two keys simultaneously

  • @Amy-gt5jw
    @Amy-gt5jw3 ай бұрын

    I have a doubt, with the button matrix you don't need the resistors, it's just buttons and diodes?

  • @joe_scotto

    @joe_scotto

    3 ай бұрын

    No resistors needed, just buttons and diodes. The diodes allow you to create a matrix with more buttons than you have pins but if you only needed 4, you could leave out the diodes and just direct wire it.

  • @Amy-gt5jw

    @Amy-gt5jw

    3 ай бұрын

    ok, thank you@@joe_scotto

  • @eycksampaio2754
    @eycksampaio275410 ай бұрын

    The arduino pico can identify 2 different switches on the same row?

  • @eycksampaio2754

    @eycksampaio2754

    10 ай бұрын

    If so, he can identify 2 switches on the same row, even when more than 1 column was "used"?

  • @rivalyralt6759

    @rivalyralt6759

    10 ай бұрын

    Arduino pico? arduino micro or pi pico?

  • @eycksampaio2754

    @eycksampaio2754

    10 ай бұрын

    @@rivalyralt6759 Arduino Pro Micro, the microcontroler used on the video, sorry for the typo

  • @rivalyralt6759

    @rivalyralt6759

    10 ай бұрын

    if i get it right. Normally it can check 2ways, rows and columns. so maybe it could @@eycksampaio2754

  • @twintwin1005

    @twintwin1005

    10 ай бұрын

    I do not know how the author of the video will do it. But if the algorithm (code) of sequential "polling" of each matrix cell is applied, then you can hold down any combination of buttons at any time and it will work correctly. I recently started learning how button matrices work and this is a very optimized way to create keyboards. Before that, I used a multiplexer to get more inputs. But now you can connect everything together and the multiplexer can work as "columns" and arduino inputs as "rows". This will give a matrix with more buttons.

  • @Kuskus62
    @Kuskus623 ай бұрын

    My mechanical space bar is broken: •If I touch the 2 pins its temporary fix it •the Switch bark works normal •But it will break down again if I not use the space bar for a few secs •Try to resoldering it, but its break again in the next day. •Try to replace the switch with another switch, its works fine but again same problem, its break down again in the next day. •The only solution for me is to touch the 2 pins with my finger while tapping the space button. •what is going on?. I dont get it.

  • @RennanMendesSerenzaRennan
    @RennanMendesSerenzaRennan3 ай бұрын

    How are RGB LEDs connected to a printed circuit board?

  • @RennanMendesSerenzaRennan

    @RennanMendesSerenzaRennan

    3 ай бұрын

    ​@@Cobalt985 the whole circuit.

Келесі