https://github.com/c4software/pi-as-keyboard
Make your Raspberry act as a Keyboard
https://github.com/c4software/pi-as-keyboard
keyboard linux raspberry-pi
Last synced: 2 months ago
JSON representation
Make your Raspberry act as a Keyboard
- Host: GitHub
- URL: https://github.com/c4software/pi-as-keyboard
- Owner: c4software
- License: apache-2.0
- Created: 2017-03-21T20:35:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-08-19T08:59:59.000Z (7 months ago)
- Last Synced: 2025-08-19T11:17:54.882Z (7 months ago)
- Topics: keyboard, linux, raspberry-pi
- Language: C
- Homepage:
- Size: 66.4 KB
- Stars: 126
- Watchers: 10
- Forks: 31
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pi-as-keyboard
Make your Raspberry Pi act like a Keyboard via HID emulation.
The main purpose of this script is to make the Pi emulate a keyboard when connected to a computer.
## Information
This project is voluntary work and is small and simple designed to be used as a base for more complex projects (like hot keyboard remapping, etc)
This has been tested on my Raspberry Pi Zero W with Rasbian Buster the 18/04/2020
## WARNING
⚠️️⚠️️Do not connect the Pi using the power connector. Use the data port instead.
## Kernel Warning
Since 2017 the default Kernel on the Rpi W seems broken with keyboard emulation. To fix the problem upgrade to the latest version with the ```rpi-update``` command (not installed by default)
## Install
On the Pi and run the setup script.
```sh
$ sudo ./setup.sh
$ sudo reboot
```

## Test the setup
This script will send scancodes to the computer connected to the Pi.
```
$ sudo ./test.sh
```