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 - Наука
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...
Good morning Jailson, thank you for the kind words and I am glad to hear they videos are helping you! Cheers! Chris
"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!
Hi Phlex, outstanding information, thanks much for sharing!
Cheers!
Chris
Sir, you are awesome! Thank you.
Ha, you are far too kind my friend :-) Thanks for watching. Cheers! Chris
great code, going to try this out.
Hi VJ,
Thanks for taking a look and I hope the code helps you out!
Cheers!,
Chris
Very well explained, thank you.
Is there possibility to use this keyboard to make macro keypad?
Hi o5tusk804 ,
While i have not done any macro keypad projects, I don't see what you can't.
Cheers!
Chris
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?
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
@@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?
@@MakingStuffwithChrisDeHut this game can use diagonal input too like say the # 1 for one square south and one square west
@@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
@@MakingStuffwithChrisDeHut awesome can’t wait to watch that one too ! Thanks
“Good morning. Or, as my Klingon friends say, maj po.”
ruclips.net/video/XlituInwpfQ/видео.html
I really enjoy your videos. Thanks for the effort.
Thanks for stopping by! Don't know Klingon, but I always like picking a new phrase now and again. Cheers!