The mouse's compact size (95mm x 55mm x 35mm) makes it easy to carry and use in confined spaces.
The mouse's compact size (95mm x 55mm x 35mm) makes it easy to carry and use in confined spaces.
The keyboard features a familiar QWERTY layout with 78 keys, including function keys, navigation keys, and a numeric keypad.
Hot-Swappable Keys | The keyboard's hot-swappable key design allows for easy keycap replacement and customization. |
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 Tracking | The mouse features a high-precision optical sensor that provides accurate and smooth tracking. |
The mouse is built with a durable plastic construction that can withstand regular use.
### Kit Features
The kit is specifically designed for Raspberry Pi single-board computers and is compatible with Raspberry Pi OS and other popular operating systems.
The kit comes with a simple and easy-to-follow installation guide, making it easy to get started with your Raspberry Pi projects.
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
USB
1.5mA
5V
95mm x 55mm x 35mm
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.
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.