Page 1 of 1

USING MATRIX 4X4 KEYPAD

Posted: Fri Jul 24, 2020 10:58 am
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.

Re: USING MATRIX 4X4 KEYPAD

Posted: Fri Jul 24, 2020 11:28 am
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/

Re: USING MATRIX 4X4 KEYPAD

Posted: Mon Jul 27, 2020 9:45 am
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.

Re: USING MATRIX 4X4 KEYPAD

Posted: Sun Sep 20, 2020 8:42 am
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.

Re: USING MATRIX 4X4 KEYPAD

Posted: Sun Sep 20, 2020 10:06 pm
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.