Interfacing a Matrix Keypad to the Raspberry Pi PICO microcontroller

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • Keypads are very economical devices used to input data into microcontrollers. In this video we will explore how to use them with the Raspberry Pi PICO microcontroller using micropython. Covered in this video:
    * What the keypads are
    * What applications / uses they have
    * How they work
    * Wiring example in Fritzing format
    * Program example & overview for unique method to use them
    SEE ASSOCIATED VIDEOS:
    Raspberry Pi PICO Setup and Preparation for Programming • Raspberry Pi PICO Setu...
    PICO Machine Library PIN Class • PICO Machine Library P...
    Using PICO Interrupts • Using PICO Interrupts
    VISIT OUR COMPANION WEBSITE -- makingstuffwit...
    DOWNLOAD FILES HERE -- makingstuffwit...
    SOURCED ITEMS USED IN SOME OF THE VIDEOS
    5 pcs of 4 x 4 Matrix Keypad (digital) amzn.to/3NQ0c22
    3 pack of breadboards amzn.to/3oAkK3H
    200 pc assortment of LEDs amzn.to/3JfLQVc
    450 pc assortment of LEDs amzn.to/3sr1vKL
    38 value / 1200 pcs resistor assortment amzn.to/3Llxq8k
  • НаукаНаука

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

  • @jrbinfor
    @jrbinfor Год назад +1

    Good morning, my name is Jailson, I'm Brazilian, I admire your work a lot, I don't miss a video of yours, thank you very much for transmitting your knowledge.
    hug...

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Год назад +1

      Good morning Jailson, thank you for the kind words and I am glad to hear they videos are helping you! Cheers! Chris

  • @phlexy
    @phlexy Год назад +2

    "Borrowed" the entire code, tested this code against other ones that use loops but are more compact and your code was 10% faster on average. ~380cpu ticks vs ~430.
    Also a note for anyone who is doing this with threading, avoid using interrupts. It is not well documented but if you use threading + interrupts Pico will randomly stop working(on interupt), took me two days to figure that one out.
    Cheers!

  • @geniusmwatsiya3084
    @geniusmwatsiya3084 Год назад +1

    Sir, you are awesome! Thank you.

  • @TheUnofficialMaker
    @TheUnofficialMaker Год назад +1

    great code, going to try this out.

  • @pawecybulski261
    @pawecybulski261 Год назад

    Very well explained, thank you.

  • @o5tusk804
    @o5tusk804 11 месяцев назад

    Is there possibility to use this keyboard to make macro keypad?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  11 месяцев назад

      Hi o5tusk804 ,
      While i have not done any macro keypad projects, I don't see what you can't.
      Cheers!
      Chris

  • @Elmorji
    @Elmorji Год назад

    Ok I would be very greatfull if you could make this work with instead of a keypad.. a joystick say press down = 2, left = 4, right = 6, up = 8, with up down left right and 5 with button press. output to computer can this be done?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Год назад

      Hi, thanks for the request. Can you explain in a bit more detail, I am not sure of exactly what you want and for what purpose.
      Cheers!
      Chris

    • @Elmorji
      @Elmorji Год назад

      @@MakingStuffwithChrisDeHut o so I have a game that uses movement with the number pad then the number 5 is used as a mappable key in game like potion to heal. I would like to use a joystick to move around in the game and have my other 4 fingers free for other keyboard use so down on the joystick acts like I am pressing a keyboard keypad #2 and so on is this possible?

    • @Elmorji
      @Elmorji Год назад

      @@MakingStuffwithChrisDeHut this game can use diagonal input too like say the # 1 for one square south and one square west

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Год назад +1

      @@Elmorji Ok, I think I understand what you want. I was planning on a circuit python keyboard emulator project in the future, unfortunately, I don't believe that will make it to RUclips until mid-to-late July based on my current schedule.
      Chris

    • @Elmorji
      @Elmorji Год назад

      @@MakingStuffwithChrisDeHut awesome can’t wait to watch that one too ! Thanks

  • @oraflores
    @oraflores 2 года назад

    “Good morning. Or, as my Klingon friends say, maj po.”
    ruclips.net/video/XlituInwpfQ/видео.html
    I really enjoy your videos. Thanks for the effort.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  2 года назад

      Thanks for stopping by! Don't know Klingon, but I always like picking a new phrase now and again. Cheers!