Stufin
Home Quick Cart Profile

Raspberry Pi Keyboard and Mouse Kit (Black & Grey)

Buy Now

Compact Design

The mouse's compact size (95mm x 55mm x 35mm) makes it easy to carry and use in confined spaces.

Standard QWERTY Layout

The keyboard features a familiar QWERTY layout with 78 keys, including function keys, navigation keys, and a numeric keypad.

Hot-Swappable KeysThe keyboard's hot-swappable key design allows for easy keycap replacement and customization.

Low Power Consumption

The keyboard is designed to operate at a low power consumption of 2.5mA, making it suitable for battery-powered Raspberry Pi projects.

### Mouse Features

High-Precision Optical TrackingThe mouse features a high-precision optical sensor that provides accurate and smooth tracking.

Durable Construction

The mouse is built with a durable plastic construction that can withstand regular use.

### Kit Features

Compatibility

The kit is specifically designed for Raspberry Pi single-board computers and is compatible with Raspberry Pi OS and other popular operating systems.

Easy Installation

The kit comes with a simple and easy-to-follow installation guide, making it easy to get started with your Raspberry Pi projects.

Color Scheme

The kit's black and grey color scheme matches the aesthetic of the Raspberry Pi, providing a sleek and cohesive look.

Technical Specifications

-------------------------

### Keyboard Specifications

Interface

USB

Power Consumption

1.5mA

Operating Voltage

5V

Dimensions

95mm x 55mm x 35mm

Weight

60g

What's Included

-----------------

Raspberry Pi Keyboard (Black & Grey)

Raspberry Pi Mouse (Black & Grey)

Quick Start Guide

Warranty and Support

-----------------------

The Raspberry Pi Keyboard and Mouse Kit (Black & Grey) comes with a limited one-year warranty. For technical support, please refer to the official Raspberry Pi documentation and support resources.

Conclusion

----------

The Raspberry Pi Keyboard and Mouse Kit (Black & Grey) is a must-have accessory for anyone working with Raspberry Pi single-board computers. Its compact design, low power consumption, and high-precision tracking make it an ideal solution for a wide range of projects, from robotics and automation to media centers and retro gaming consoles. With its easy installation and compatibility with Raspberry Pi OS and other popular operating systems, this kit is perfect for developers, makers, and hobbyists alike.

Pin Configuration

  • Raspberry Pi Keyboard and Mouse Kit (Black & Grey) Pinout Guide
  • The Raspberry Pi Keyboard and Mouse Kit is a compact and versatile input device designed to work seamlessly with Raspberry Pi single-board computers. The kit includes a keyboard and mouse adapter that connects to the Raspberry Pi's GPIO (General Purpose Input/Output) pins. In this guide, we will explore the pinout of the kit, explaining each pin's function and providing a step-by-step connection guide.
  • Pinout Structure:
  • The Raspberry Pi Keyboard and Mouse Kit has a 6-pin connector that mates with the Raspberry Pi's GPIO header. The pinout is as follows:
  • | Pin # | Pin Function | Description |
  • | --- | --- | --- |
  • | 1 | VCC | 3.3V Power Supply |
  • | 2 | GND | Ground |
  • | 3 | CLK | Clock Signal for Keyboard and Mouse |
  • | 4 | DATA | Data Signal for Keyboard and Mouse |
  • | 5 | NC | Not Connected (Reserved) |
  • | 6 | GND | Ground |
  • Pin-by-Pin Explanation:
  • 1. VCC (Pin 1): This pin provides a 3.3V power supply to the keyboard and mouse adapter.
  • 2. GND (Pin 2): This pin connects to the ground plane of the Raspberry Pi and provides a return path for the power supply.
  • 3. CLK (Pin 3): This pin carries the clock signal for the keyboard and mouse protocol. The clock signal is used to synchronize data transmission between the keyboard/mouse and the Raspberry Pi.
  • 4. DATA (Pin 4): This pin carries the data signal for the keyboard and mouse protocol. The data signal transmits keyboard presses, mouse movements, and other input events to the Raspberry Pi.
  • 5. NC (Pin 5): This pin is not connected and is reserved for future use.
  • 6. GND (Pin 6): This pin connects to the ground plane of the Raspberry Pi and provides an additional return path for the power supply.
  • Connection Guide:
  • To connect the Raspberry Pi Keyboard and Mouse Kit to your Raspberry Pi, follow these steps:
  • Step 1: Identify the GPIO Header
  • Locate the GPIO header on your Raspberry Pi. It is a 2x20 pin header located on the top side of the board.
  • Step 2: Align the Connector
  • Align the 6-pin connector on the Raspberry Pi Keyboard and Mouse Kit with the GPIO header on the Raspberry Pi. Ensure that the pin 1 (VCC) on the kit aligns with pin 1 on the GPIO header.
  • Step 3: Connect the Pins
  • Carefully push the connector onto the GPIO header, ensuring that each pin engages securely. Make sure the connector is seated properly to avoid any damage to the pins or the Raspberry Pi.
  • Step 4: Secure the Connection
  • Gently tug on the connector to ensure it is securely connected to the GPIO header.
  • Step 5: Power On
  • Power on your Raspberry Pi. The keyboard and mouse adapter should now be operational, allowing you to use the keyboard and mouse with your Raspberry Pi.
  • Important:
  • Ensure that the Raspberry Pi is properly powered and configured before connecting the keyboard and mouse kit.
  • Avoid damaging the GPIO pins or the connector on the Raspberry Pi Keyboard and Mouse Kit.
  • Consult the Raspberry Pi documentation for additional information on configuring and using the GPIO header.

Code Examples

Raspberry Pi Keyboard and Mouse Kit (Black & Grey) Documentation
Overview
The Raspberry Pi Keyboard and Mouse Kit (Black & Grey) is a compact and convenient input solution designed specifically for Raspberry Pi boards. This kit includes a sleek and compact keyboard and a corresponding mouse, both of which connect to the Raspberry Pi via a single USB port. The kit is ideal for Raspberry Pi projects that require user input, such as home automation, media centers, and retro game consoles.
Technical Specifications
Keyboard:
	+ 79-key layout with integrated numeric keypad
	+ Compatible with Raspberry Pi boards (Model B, B+, 2, 3, and 4)
	+ USB connectivity
 Mouse:
	+ Optical sensor with 1000 CPI resolution
	+ Ergonomic design for comfortable use
	+ USB connectivity
Getting Started
Before using the Raspberry Pi Keyboard and Mouse Kit, ensure that your Raspberry Pi board is properly configured and running the latest version of the Raspbian operating system.
Code Examples
### Example 1: Reading Keyboard Input in Python
In this example, we'll demonstrate how to read keyboard input using Python on the Raspberry Pi. We'll use the `keyboard` library to read keyboard events and print the corresponding key presses to the console.
```python
import keyboard
while True:
    key = keyboard.read_key()
    if key:
        print(f"Key pressed: {key}")
```
Run this code on your Raspberry Pi, and press keys on the keyboard to see the corresponding output in the terminal.
### Example 2: Controlling a Robot using Keyboard and Mouse Inputs
In this example, we'll demonstrate how to use the keyboard and mouse inputs to control a robot using Python and the `RPi.GPIO` library. We'll assume you have a robot connected to your Raspberry Pi via GPIO pins.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins for motor control
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)  # Left motor
GPIO.setup(23, GPIO.OUT)  # Right motor
while True:
    # Read keyboard input
    key = keyboard.read_key()
    if key == 'w':
        # Move forward
        GPIO.output(17, GPIO.HIGH)
        GPIO.output(23, GPIO.HIGH)
    elif key == 's':
        # Move backward
        GPIO.output(17, GPIO.LOW)
        GPIO.output(23, GPIO.LOW)
    elif key == 'a':
        # Turn left
        GPIO.output(17, GPIO.HIGH)
        GPIO.output(23, GPIO.LOW)
    elif key == 'd':
        # Turn right
        GPIO.output(17, GPIO.LOW)
        GPIO.output(23, GPIO.HIGH)
# Read mouse input (assuming mouse is connected to USB port)
    x, y = mouse.get_position()
    if x > 500:
        # Move robot forward
        GPIO.output(17, GPIO.HIGH)
        GPIO.output(23, GPIO.HIGH)
    elif x < 200:
        # Move robot backward
        GPIO.output(17, GPIO.LOW)
        GPIO.output(23, GPIO.LOW)
time.sleep(0.1)
GPIO.cleanup()
```
In this example, we use the keyboard to control the robot's movement (forward, backward, left, and right) and the mouse to control the robot's speed (based on the x-axis mouse position).
Troubleshooting
Ensure that the keyboard and mouse are properly connected to the Raspberry Pi via USB.
 Verify that the Raspbian operating system is up-to-date and configured correctly.
 Check the GPIO pin connections and robot hardware configuration if you're using the robot control example.
By following these examples and guidelines, you should be able to successfully integrate the Raspberry Pi Keyboard and Mouse Kit into your projects and take advantage of its convenient input capabilities.