How a Mechanical Keyboard Works (Matrix and Direct Wiring)

Поделиться
HTML-код
  • Опубликовано: 31 авг 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
  • НаукаНаука

Комментарии • 50

  • @Glarses
    @Glarses 9 месяцев назад +70

    Great channel

  • @joe_scotto
    @joe_scotto  9 месяцев назад +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 9 месяцев назад +1

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

  • @TheSast
    @TheSast 9 месяцев назад +3

    Can't wait for the PCB video!

  • @francescodesantis1997
    @francescodesantis1997 9 месяцев назад +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  9 месяцев назад +1

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

  • @dgvigil
    @dgvigil 9 месяцев назад +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.

  • @ssaffann
    @ssaffann 9 месяцев назад

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

  • @lucassrossi
    @lucassrossi 9 месяцев назад +2

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

  • @dmitry_sharikov
    @dmitry_sharikov 9 месяцев назад

    Thanks Joe, very informative

  • @twintwin1005
    @twintwin1005 9 месяцев назад

    Nice video, thanks for sharing!

  • @Tharrinne
    @Tharrinne 9 месяцев назад

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

  • @Krish-StarDestined
    @Krish-StarDestined 4 месяца назад

    Thank you

  • @loneventhorizon
    @loneventhorizon Месяц назад

    awesome

  • @evanlane1690
    @evanlane1690 9 месяцев назад

    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.

  • @noogiesm
    @noogiesm Месяц назад

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

  • @streetdogarg
    @streetdogarg 9 месяцев назад +1

    GREAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT VIDEO

  • @haf0
    @haf0 9 месяцев назад +1

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

  • @gfhdlsk
    @gfhdlsk 18 дней назад

    Best diagram

  • @MrPinkDino
    @MrPinkDino 6 месяцев назад

    Do you have something about building a dactyl manuform keyboard?

  • @ronaldsantosluna6148
    @ronaldsantosluna6148 Месяц назад

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

  • @THEMithrandir09
    @THEMithrandir09 7 месяцев назад +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 7 месяцев назад +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 7 месяцев назад +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.

  • @MasterPritex
    @MasterPritex 9 месяцев назад +1

    What about leds?

  • @MrznMkhl
    @MrznMkhl 9 месяцев назад

    can shift registers be included too?

    • @joe_scotto
      @joe_scotto  9 месяцев назад

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

  • @lolyman13
    @lolyman13 9 месяцев назад

    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 месяцев назад +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

  • @gouravmehra5007
    @gouravmehra5007 Месяц назад

    What if we will press two keys simultaneously

  • @Amy-gt5jw
    @Amy-gt5jw 2 месяца назад

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

    • @joe_scotto
      @joe_scotto  2 месяца назад +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 2 месяца назад

      ok, thank you@@joe_scotto

  • @Kuskus62
    @Kuskus62 2 месяца назад

    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.

  • @eycksampaio2754
    @eycksampaio2754 9 месяцев назад

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

    • @eycksampaio2754
      @eycksampaio2754 9 месяцев назад

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

    • @rivalyralt6759
      @rivalyralt6759 9 месяцев назад

      Arduino pico? arduino micro or pi pico?

    • @eycksampaio2754
      @eycksampaio2754 9 месяцев назад

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

    • @rivalyralt6759
      @rivalyralt6759 9 месяцев назад

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

    • @twintwin1005
      @twintwin1005 9 месяцев назад +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.

  • @Barbastruzzolo
    @Barbastruzzolo 4 месяца назад +1

    Settings --> Speed --> 0.5

  • @Heron69
    @Heron69 9 месяцев назад

    Jovirone?

  • @RennanMendesSerenzaRennan
    @RennanMendesSerenzaRennan 3 месяца назад

    How are RGB LEDs connected to a printed circuit board?