{"id":15012021,"url":"https://github.com/no0ne/ps2pico","last_synced_at":"2025-04-05T08:06:25.001Z","repository":{"id":45805961,"uuid":"514645968","full_name":"No0ne/ps2pico","owner":"No0ne","description":"USB keyboard to PS/2 / AT / XT interface converter using a Raspberry Pi Pico","archived":false,"fork":false,"pushed_at":"2025-01-29T09:36:08.000Z","size":1051,"stargazers_count":134,"open_issues_count":2,"forks_count":25,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-05T08:06:20.105Z","etag":null,"topics":["at-keyboard","hid","keyboard","pc-at","pc-xt","pcat","pcxt","pio","ps2","ps2-keyboard","raspberry-pi-pico","rp2040","usb-keyboard","xt-keyboard"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/No0ne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-16T17:40:28.000Z","updated_at":"2025-03-28T22:21:39.000Z","dependencies_parsed_at":"2024-09-15T22:04:13.826Z","dependency_job_id":"6b1cbf78-67d4-4f20-8896-29462e62e2a1","html_url":"https://github.com/No0ne/ps2pico","commit_stats":{"total_commits":49,"total_committers":2,"mean_commits":24.5,"dds":"0.020408163265306145","last_synced_commit":"3ed4e767f7f5db6691214f302cc2b604874485b0"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/No0ne%2Fps2pico","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/No0ne%2Fps2pico/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/No0ne%2Fps2pico/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/No0ne%2Fps2pico/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/No0ne","download_url":"https://codeload.github.com/No0ne/ps2pico/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305933,"owners_count":20917208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["at-keyboard","hid","keyboard","pc-at","pc-xt","pcat","pcxt","pio","ps2","ps2-keyboard","raspberry-pi-pico","rp2040","usb-keyboard","xt-keyboard"],"created_at":"2024-09-24T19:42:00.823Z","updated_at":"2025-04-05T08:06:24.985Z","avatar_url":"https://github.com/No0ne.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ps2pico\nUSB keyboard to PS/2+AT or XT interface converter using a Raspberry Pi Pico\n\n|![hw1](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw1.jpg) |![hw2](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw2.jpg) |![hw3](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw3.jpg) |![hw4](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw4.jpg) |\n|-|-|-|-|\n\nKeyboard + Mouse variant: https://github.com/No0ne/ps2x2pico\n\nAdditional excellent documentation by Ray: https://minuszerodegrees.net/keyboard/ps2pico.htm\n\n# Usage\n* Download `ps2pico.uf2` or `ps2pico-XT.uf2` from https://github.com/No0ne/ps2pico/releases\n* Copy `ps2pico.uf2` or `ps2pico-XT.uf2` to your Pi Pico by pressing BOOTSEL before pluggging in.\n* Afterwards connect a USB keyboard using an OTG-adapter and PS/2+AT or XT 5V to Pico VBUS.\n* Also works with wireless keyboards with a dedicated USB receiver.\n* 3.3V/5V conversion is done with two NPN transistors, two zener diodes and four resistors as shown below:\n```\n                 PS/2+AT / XT CLOCK\n                       |           ____\n                       |__________|10k |___________ GPIO 14\n            ____       |          |____|     |\nGPIO 15 ___|2k2 |____|/  BC547             __|__\n           |____|    |\\e                    / \\  3V6\n                       |                     |\n                   ____|__GND________________|___\n\n\n                 PS/2+AT / XT DATA\n                       |          ____\n                       |_________|10k |____________ GPIO 17\n            ____       |         |____|      |\nGPIO 16 ___|2k2 |____|/  BC547             __|__\n           |____|    |\\e                    / \\  3V6\n                       |                     |\n                   ____|__GND________________|___\n```\n![ps2pico](https://github.com/No0ne/ps2pico/assets/716129/b0133c44-c170-40f4-a3ad-c545aee92532)\n\n# NuXTv2\nIf you have a [NuXTv2](https://monotech.fwscart.com/NuXT_v20_-_MicroATX_Turbo_XT_-_10MHz_832K_XT-IDE_Multi-IO_SVGA/p6083514_19777986.aspx) you can build an internal version of the ps2pico-XT! Replace U10 with the pico, remove RN13 and add two 4k7 pull-up resistors as shown below:\n\n|![hw5](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw5.jpg) |![hw6](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw6.jpg) |![hw7](https://raw.githubusercontent.com/No0ne/ps2pico/main/doc/hw7.jpg) |\n|-|-|-|\n\n# Build\n```\nexport PICO_SDK_PATH=/path/to/pico-sdk\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n# Resources\n* https://wiki.osdev.org/PS/2_Keyboard\n* https://github.com/Harvie/ps2dev/blob/master/src/ps2dev.cpp\n* http://www.lucadavidian.com/2017/11/15/interfacing-ps2-keyboard-to-a-microcontroller/\n* https://download.microsoft.com/download/1/6/1/161ba512-40e2-4cc9-843a-923143f3456c/translate.pdf\n* https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-XT-Keyboard-Protocol\n* https://github.com/AndersBNielsen/pcxtkbd/blob/master/XT_KEYBOARD.ino\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fno0ne%2Fps2pico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fno0ne%2Fps2pico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fno0ne%2Fps2pico/lists"}