1. المقدمة
The Dioche 16-Key 4x4 Keyboard Module is a compact and versatile input device designed for integration with single-chip microcontrollers. This module provides 16 tactile buttons arranged in a 4x4 matrix, offering a straightforward interface for various embedded projects. Its small footprint and ease of connection make it an excellent choice for adding external keypad functionality to your microcontroller applications.

الشكل 1: أمام view of the Dioche 16-Key 4x4 Keyboard Module, showing the 16 buttons labeled 1-9, *, 0, #, and A-D.
2. مواصفات المنتج
- Versatile 4x4 Design: Features a total of 16 keys, providing diverse input options for various applications.
- مدمج ويوفر المساحة: Designed with a small footprint to occupy minimal space, ideal for integrated microcontroller setups.
- Ideal for MCU Projects: A suitable component for single-chip microcontroller applications, enhancing user interface and control.
- اتصال سلس: Ensures smooth and efficient connection with microcontrollers, allowing for quick setup and implementation.
- Robust Functionality: Carefully designed structure ensures all 16 keys are accessible and responsive for reliable operation.
3. الإعداد والاتصال
The Dioche 16-Key 4x4 Keyboard Module connects to a microcontroller using its pin header. The 4x4 matrix design typically requires 8 pins for connection (4 rows and 4 columns).
3.1 مخطط توصيل الدبابيس
Refer to the image below for a visual representation of the module's connection pins. The pins are typically arranged as 4 row pins and 4 column pins.

الشكل 2: متساوي القياس view of the keyboard module, highlighting the green PCB with solder points for connecting to a microcontroller.
3.2 خطوات الاتصال
- Identify Pins: Locate the 8 pins on the module. These will correspond to the 4 rows and 4 columns of the keypad matrix.
- Connect to Microcontroller: Connect the row and column pins of the keypad module to appropriate digital I/O pins on your microcontroller. Ensure proper wiring to avoid damage.
- مزود الطاقة: The module typically draws power directly from the microcontroller's I/O pins during operation, requiring no separate power supply.
- تكوين البرنامج: Implement a keypad scanning algorithm in your microcontroller's firmware to detect key presses. This usually involves setting row pins as outputs and column pins as inputs (or vice-versa) and scanning them sequentially.
4. Operating the Keyboard Module
Once connected and programmed, the keyboard module functions as a standard input device. Each key press can be detected by the microcontroller, allowing for various interactive applications.
4.1 Key Mapping
The 4x4 matrix typically maps keys as follows:
| العمود 1 | العمود 2 | العمود 3 | العمود 4 |
|---|---|---|---|
| 1 (Row 1) | 2 (Row 1) | 3 (Row 1) | A (Row 1) |
| 4 (Row 2) | 5 (Row 2) | 6 (Row 2) | B (Row 2) |
| 7 (Row 3) | 8 (Row 3) | 9 (Row 3) | C (Row 3) |
| * (Row 4) | 0 (Row 4) | # (Row 4) | D (Row 4) |
Your microcontroller code will read the state of the row and column pins to determine which key is pressed.
5. المواصفات
| ميزة | التفاصيل |
|---|---|
| ماركة | ديوش |
| رقم الموديل | Dioche30to2nc6kf |
| الكمية الرئيسية | 16 (4x4 Matrix) |
| مادة | نظام ABS |
| وزن العنصر | 0.847 أونصات |
| أبعاد الحزمة | 2.76 × 2.76 × 0.39 بوصة |
| الشركة المصنعة | ديوش |
6. الصيانة
The Dioche 16-Key 4x4 Keyboard Module is designed for durability and requires minimal maintenance.
- تنظيف: If necessary, gently wipe the surface of the keypad with a dry, soft cloth. Avoid using harsh chemicals or abrasive materials.
- تخزين: Store the module in a dry environment, away from extreme temperatures and direct sunlight, when not in use.
- التعامل: Avoid applying excessive force to the keys or bending the PCB to prevent damage to the internal components.
7. استكشاف الأخطاء وإصلاحها
If you encounter issues with your keyboard module, consider the following troubleshooting steps:
- No Key Press Detected:
- Verify all connections between the module and the microcontroller are secure and correct.
- Check your microcontroller's code for errors in the keypad scanning logic.
- Ensure the microcontroller's I/O pins are configured correctly (input/output modes, pull-up resistors if needed).
- Incorrect Key Detected:
- Review your key mapping in the software to ensure it matches the physical layout and pin connections.
- Check for short circuits between adjacent pins or keys on the module.
- عملية متقطعة:
- Ensure stable power supply to the microcontroller.
- تحقق من وجود وصلات مفكوكة أو لحامات باردة.
- Consider adding debounce logic in your software to handle mechanical key bounce.
8. الدعم
For further assistance or to explore other products, please visit the official Dioche store.