How Do You Connect Resistors in a Keypad Interface?

  • Thread starter smuscat
  • Start date
  • Tags
    Schematic
In summary, the conversation is discussing the need for a circuit diagram to connect resistors to the keypad in a tutorial. The resistors are used to pull the column lines high, and the row connections are connected to output pins. The conversation also includes links to different resources for visual aid.
  • #1
smuscat
31
0
Hi guys

Can please someone submit a circuit diagram for the resistors connections to the keypad of the below tutorial?
http://www.winpicprog.co.uk/pic_tutorial9.htm
"As the switches are all interconnected, we need a way to differentiate between the different ones - the four resistors on the interface board pull lines COL1 to COL4 high, these four lines are the ones which are read in the program. So in the absence of any switch been pressed these lines will all read high. The four ROW connections are connected to output pins, and if these are set high the switches will effectively do nothing - connecting a high level to a high level, results in a high level."
Thanks!
 
Engineering news on Phys.org
  • #2
smuscat said:
Hi guys

Can please someone submit a circuit diagram for the resistors connections to the keypad of the below tutorial?
http://www.winpicprog.co.uk/pic_tutorial9.htm
"As the switches are all interconnected, we need a way to differentiate between the different ones - the four resistors on the interface board pull lines COL1 to COL4 high, these four lines are the ones which are read in the program. So in the absence of any switch been pressed these lines will all read high. The four ROW connections are connected to output pins, and if these are set high the switches will effectively do nothing - connecting a high level to a high level, results in a high level."
Thanks!

They are just for resistors that pull the COL (column) lines high, probably to 5V or 3.3V, whatever the PIC power supply is.
 
  • #3
Last edited by a moderator:
  • #5


Hi there, thank you for your question. Based on the information provided, it sounds like the keypad interfacing schematic for the tutorial you linked is using a pull-up resistor configuration. This means that the four resistors on the interface board are connected to the four input lines (COL1 to COL4) and are pulling them to a high voltage (usually 5V). This is done to ensure that the input lines are not floating and to provide a defined voltage level when no switch is pressed.

The four ROW connections are connected to output pins, which means they are controlled by the microcontroller. When the microcontroller sets a ROW pin to a high voltage, it effectively disconnects that particular input line from the pull-up resistor, resulting in a high voltage reading on the input line. This is why, as mentioned in the tutorial, connecting a high level to a high level results in a high level.

I hope this helps clarify the circuit diagram for you. Let me know if you have any further questions. Good luck with your project!
 

FAQ: How Do You Connect Resistors in a Keypad Interface?

1. What is keypad interfacing and why is it important?

Keypad interfacing is the process of connecting a keypad to a microcontroller or other digital device in order to receive input from the user. This is important because it allows for user interaction with the device and enables it to perform specific functions based on the input received from the keypad.

2. What components are needed to create a keypad interfacing schematic?

The main components needed for a keypad interfacing schematic include a keypad, a microcontroller or other digital device, and appropriate wiring or connectors to connect the two. Additionally, resistors may be used to limit current flow and diodes may be used for protection against reverse voltage.

3. How does a keypad interfacing schematic work?

A keypad interfacing schematic works by connecting each button on the keypad to a specific input pin on the microcontroller. When a button is pressed, it creates a connection between the row and column lines of the keypad, which is then detected by the microcontroller and translated into a specific key press. The microcontroller then performs the desired function based on the key press.

4. Can any keypad be used for keypad interfacing?

No, not all keypads are compatible with keypad interfacing. It is important to check the specifications of the keypad and ensure that it uses a compatible communication protocol, such as 4x3 or 4x4 matrix scanning, in order to be used for keypad interfacing.

5. Are there any common issues or troubleshooting tips for keypad interfacing?

One common issue with keypad interfacing is "ghosting", where pressing one button on the keypad may result in multiple button presses being detected. This can be resolved by adding diodes to the keypad circuit. Additionally, it is important to ensure that the microcontroller is properly configured and programmed to read the keypad input correctly.

Back
Top