USING MATRIX 4X4 KEYPAD

Working libraries, libraries being ported and related hardware
Post Reply
yacok@yahoo.com
Posts: 4
Joined: Mon Jul 06, 2020 11:08 pm

USING MATRIX 4X4 KEYPAD

Post by yacok@yahoo.com »

Hello Friends,
I have a projet that needs to input a password.
For that I want to connect a 4x4 keyboard matrix to a blue pill.
Could you please tell me a library to manage the keboard?
For arduino i found some, but for stm I didnt.
Thanks a lot.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: USING MATRIX 4X4 KEYPAD

Post by ag123 »

if you can afford to use 8 pins, it would be to digitalWrite() 4 output gpio pins in sequence and digitalRead() the other 4 input gpio pins in sequence to scan for that closed switch
https://learn.adafruit.com/matrix-keypad/overview
https://playground.arduino.cc/Code/Keypad/
if you are starved of pins, PCF8574 may help
https://playground.arduino.cc/Main/I2CP ... ndKeypads/
yacok@yahoo.com
Posts: 4
Joined: Mon Jul 06, 2020 11:08 pm

Re: USING MATRIX 4X4 KEYPAD

Post by yacok@yahoo.com »

Thank you for your answer. I knew that library, but are you sure it works with stm32? I thought it works just with arduino.
Olelarem
Posts: 1
Joined: Sun Sep 20, 2020 8:39 am

Re: USING MATRIX 4X4 KEYPAD

Post by Olelarem »

yacok@yahoo.com wrote: Mon Jul 27, 2020 9:45 am Thank you for your answer. I knew that library, but are you sure it works with stm32? I thought it works just with arduino.
Did the keypad worked with Stm32?? if yes kindly share pin connection and code.
yacok@yahoo.com
Posts: 4
Joined: Mon Jul 06, 2020 11:08 pm

Re: USING MATRIX 4X4 KEYPAD

Post by yacok@yahoo.com »

I dont know. I didnt try all the different configurations. I ended abandon the stm32 and went back to arduino. The stm32 has great features but it is difficult to work with if you are not engineer.
Post Reply

Return to “Libraries & Hardware”