DIY POCKET CYBERDECK
DIY POCKET CYBERDECK
Materials used :
(If you and can’t access the link,
please use a VPN)
How to set up 4inch Resistive Touch Screen : Link Here
How to set up card KB:
sudo apt update
sudo apt install -y i2c-tools python3-pip git
Check if the keyboard is detected:
sudo i2cdetect -y 1
You should see:
5f
If 0x5F appears, your CardKB is connected correctly.
Install uinput
sudo modprobe uinput
echo uinput | sudo tee -a /etc/modules
git clone https://github.com/ian-antking/cardkb.git
cd cardkb
sudo pip3 install .
test:
sudo cardkb
Press a few keys.
If everything is working, the keyboard should behave like a USB keyboard
press Ctrl + C to exit
sudo nano /etc/systemd/system/cardkb.service
and pate this:
[Unit]
Description=CardKB Service
After=multi-user.target
[Service]
Type=simple
ExecStartPre=/usr/sbin/modprobe uinput
ExecStartPre=/bin/sleep 3
ExecStart=/usr/local/bin/cardkb
Restart=always
RestartSec=2
User=root
[Install]
WantedBy=multi-user.target
save: Ctrl+O -> enter -> Ctrl+X
sudo systemctl daemon-reload
sudo systemctl enable cardkb.service
sudo systemctl start cardkb.service
CardKB uses I2C address 0x5F.
Tested on Raspberry Pi 5 with Ubuntu 24.04 or Pi OS.
Requires the uinput kernel module to emulate a USB keyboard.
for more relaxing DIY electronics, creative builds & satisfying tech art! Thank you for the support!
Join the Huy Vector Community — a place to share projects, circuits, ideas, and behind-the-scenes content from the channel.