How a Mechanical Keyboard Works (Matrix and Direct Wiring)

Sdílet
Vložit
  • čas přidán 31. 08. 2023
  • 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
  • Věda a technologie

Komentáře • 50

  • @Glarses
    @Glarses Před 9 měsíci +68

    Great channel

  • @joe_scotto
    @joe_scotto  Před 9 měsíci +8

    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.

  • @gunjja13
    @gunjja13 Před 9 měsíci +1

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

  • @ssaffann
    @ssaffann Před 9 měsíci

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

  • @TheSast
    @TheSast Před 9 měsíci +3

    Can't wait for the PCB video!

  • @dgvigil
    @dgvigil Před 9 měsíci +2

    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.

  • @lucassrossi
    @lucassrossi Před 9 měsíci +2

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

  • @dmitry_sharikov
    @dmitry_sharikov Před 9 měsíci

    Thanks Joe, very informative

  • @twintwin1005
    @twintwin1005 Před 9 měsíci

    Nice video, thanks for sharing!

  • @francescodesantis1997
    @francescodesantis1997 Před 9 měsíci +4

    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  Před 9 měsíci +1

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

  • @Krish-StarDestined
    @Krish-StarDestined Před 4 měsíci

    Thank you

  • @Tharrinne
    @Tharrinne Před 9 měsíci

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

  • @loneventhorizon
    @loneventhorizon Před měsícem

    awesome

  • @haf0
    @haf0 Před 9 měsíci +1

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

  • @evanlane1690
    @evanlane1690 Před 9 měsíci

    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  Před 9 měsíci

      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.

  • @MrPinkDino
    @MrPinkDino Před 5 měsíci

    Do you have something about building a dactyl manuform keyboard?

  • @ronaldsantosluna6148
    @ronaldsantosluna6148 Před měsícem

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

  • @streetdogarg
    @streetdogarg Před 9 měsíci +1

    GREAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT VIDEO

  • @gfhdlsk
    @gfhdlsk Před 12 dny

    Best diagram

  • @noogiesm
    @noogiesm Před měsícem

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

  • @MasterPritex
    @MasterPritex Před 9 měsíci +1

    What about leds?

  • @THEMithrandir09
    @THEMithrandir09 Před 7 měsíci +1

    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 Před 7 měsíci +1

      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 Před 7 měsíci +1

      @@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.

  • @lolyman13
    @lolyman13 Před 9 měsíci

    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  Před 9 měsíci +1

      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
    @Heron69 Před 9 měsíci

    Jovirone?

  • @MrznMkhl
    @MrznMkhl Před 9 měsíci

    can shift registers be included too?

    • @joe_scotto
      @joe_scotto  Před 9 měsíci

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

  • @gouravmehra5007
    @gouravmehra5007 Před 25 dny

    What if we will press two keys simultaneously

  • @Amy-gt5jw
    @Amy-gt5jw Před 2 měsíci

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

    • @joe_scotto
      @joe_scotto  Před 2 měsíci +1

      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 Před 2 měsíci

      ok, thank you@@joe_scotto

  • @eycksampaio2754
    @eycksampaio2754 Před 9 měsíci

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

    • @eycksampaio2754
      @eycksampaio2754 Před 9 měsíci

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

    • @rivalyralt6759
      @rivalyralt6759 Před 9 měsíci

      Arduino pico? arduino micro or pi pico?

    • @eycksampaio2754
      @eycksampaio2754 Před 9 měsíci

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

    • @rivalyralt6759
      @rivalyralt6759 Před 9 měsíci

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

    • @twintwin1005
      @twintwin1005 Před 9 měsíci +2

      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
    @Kuskus62 Před 2 měsíci

    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
    @RennanMendesSerenzaRennan Před 3 měsíci

    How are RGB LEDs connected to a printed circuit board?

  • @Barbastruzzolo
    @Barbastruzzolo Před 4 měsíci

    Settings --> Speed --> 0.5