The 5-Way Navigation Key Module is a user interface component designed to provide directional input through a central button and four surrounding buttons. This module is commonly used in various electronic devices, such as remote controls, handheld devices, and user interfaces for embedded systems. Its intuitive design allows users to navigate menus, select options, and control devices with ease.
Specification | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Current Rating | 20mA (max per button) |
Button Type | Tactile switch |
Dimensions | 30mm x 30mm x 10mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | Up | Connects to the Up button |
2 | Down | Connects to the Down button |
3 | Left | Connects to the Left button |
4 | Right | Connects to the Right button |
5 | Select | Connects to the Central Select button |
6 | Ground | Common ground connection |
Here is a simple example of how to use the 5-Way Navigation Key Module with an Arduino UNO:
// Pin definitions
const int upPin = 2;
const int downPin = 3;
const int leftPin = 4;
const int rightPin = 5;
const int selectPin = 6;
void setup() {
// Initialize pins as input with pull-up resistors
pinMode(upPin, INPUT_PULLUP);
pinMode(downPin, INPUT_PULLUP);
pinMode(leftPin, INPUT_PULLUP);
pinMode(rightPin, INPUT_PULLUP);
pinMode(selectPin, INPUT_PULLUP);
Serial.begin(9600); // Start serial communication
}
void loop() {
// Check each button state
if (digitalRead(upPin) == LOW) {
Serial.println("Up button pressed");
delay(200); // Debounce delay
}
if (digitalRead(downPin) == LOW) {
Serial.println("Down button pressed");
delay(200); // Debounce delay
}
if (digitalRead(leftPin) == LOW) {
Serial.println("Left button pressed");
delay(200); // Debounce delay
}
if (digitalRead(rightPin) == LOW) {
Serial.println("Right button pressed");
delay(200); // Debounce delay
}
if (digitalRead(selectPin) == LOW) {
Serial.println("Select button pressed");
delay(200); // Debounce delay
}
}
Buttons Not Responding:
Multiple Button Presses Detected:
Incorrect Button Mapping:
By following this documentation, users can effectively integrate the 5-Way Navigation Key Module into their projects, ensuring a smooth and functional user interface experience.