Pico-Rickroll-HID
🎵 A Raspberry Pi Pico HID script that instantly Rickrolls any computer by opening YouTube, going fullscreen, and maxing out the volume!
🖥️ Raspberry Pi Pico HID Rickroll Script
🇹🇷 Türkçe okumak için tıklayın

This project is a HID (Human Interface Device) attack script that uses Raspberry Pi Pico as a keyboard to automatically open a Rickroll video on the connected computer.
✅ Supports Windows and macOS.
✅ Fully compatible with Turkish Q keyboard layout.
✅ Automatically opens YouTube, switches to fullscreen, and maximizes volume.
📌 Requirements & Setup
1️⃣ Required Hardware
- Raspberry Pi Pico
- USB Type-C or micro USB cable
2️⃣ Required Software
- CircuitPython 8.x or 9.x must be installed on the Pico.
- Adafruit HID Libraries must be loaded.
📌 Step-by-Step Setup:
Boot Raspberry Pi Pico in BOOTSEL mode.
- Hold the
BOOTSELbutton before plugging in the Pico. - Plug it into your computer, then release the button.
- A drive named
RPI-RP2should appear.
- Hold the
Install CircuitPython Firmware
- Download the latest version from: https://circuitpython.org/board/raspberry_pi_pico/
- Drag and drop the
.uf2file onto theRPI-RP2drive.
Install Adafruit HID Libraries
- Download
adafruit_hidfrom: https://github.com/adafruit/Adafruit_CircuitPython_HID/releases - Copy the
adafruit_hidfolder into thelibdirectory insideCIRCUITPY.
- Download
🔍 How It Works
- The Pico automatically starts working when plugged in.
- It detects the operating system.
- If Windows: Opens the Run dialog (
Win + R). - If macOS: Opens Spotlight (
Cmd + Space).
- If Windows: Opens the Run dialog (
- Types the URL correctly based on the Turkish Q keyboard layout.
- Opens YouTube and starts playing the video.
- Switches to fullscreen and maximizes the volume.
📢 Works instantly when plugged in, stops when unplugged!
⚙️ Keyboard Layout Support
| Keyboard Layout | Support Status |
|---|---|
| 🇹🇷 Turkish Q | ✅ Supported |
| 🇹🇷 Turkish F | ❌ Not Supported |
| 🇺🇸 English Q (US) | ✅ Supported |
| 🇬🇧 English UK | ❌ Not Supported |
📢 NOTE: This script is designed for Turkish Q keyboard layout.
If you are using a UK keyboard, switch your OS language settings to "English (US)".
🚀 Usage Instructions
1️⃣ Upload the Code to the Pico
- Copy
code.pyto theCIRCUITPYdrive on your Pico.
2️⃣ Unplug and Replug the Pico
- It will start working instantly!
3️⃣ Did the Rickroll Start?
- If
https://www.youtube.com/watch?v=dQw4w9WgXcQopens and the volume is maxed out, EVERYTHING IS WORKING! 😈🎵
🛠 Possible Issues & Solutions
1️⃣ Issue: The URL is typed incorrectly, / appears as another character.
✅ Solution:
- Change your computer’s keyboard layout to English (US).
2️⃣ Issue: YouTube opens but does not switch to fullscreen.
✅ Solution:
- The
Fkey may not work on some systems. Try replacingKeycode.FwithKeycode.CONTROL, Keycode.COMMAND, Keycode.Fin the code.
3️⃣ Issue: Volume is not increasing to the maximum.
✅ Solution:
- Volume keys may behave differently depending on the OS. Try replacing
ConsumerControlCode.VOLUME_INCREMENTwithKeycode.VOLUME_UP.
📢 Legal Disclaimer
This script is intended for ethical cybersecurity purposes. Unauthorized use may be illegal.
🔹 Use it for security testing and entertainment purposes only!
🔹 Be mindful when Rickrolling someone! 😆
🤝 Contributing
All contributions, issue reports, and feature requests are welcome! You are free to fork this project, improve it, and submit fixes or enhancements.
If you find a bug or want to suggest a new feature, feel free to open an issue or submit a pull request.
📜 License
This project is licensed under the MIT License.
🔹 You are free to use, modify, and share this project. 🔹 Just make sure to follow the license terms! 📜
For more details, check the LICENSE file. 🚀
🎵 "Never gonna give you up, never gonna let you down..." 🎵
cagatayuresin