Giter Site home page Giter Site logo

no0ne / ps2pico Goto Github PK

View Code? Open in Web Editor NEW
98.0 14.0 19.0 1.02 MB

USB keyboard to PS/2 / AT / XT interface converter using a Raspberry Pi Pico

License: MIT License

C 82.19% CMake 17.81%
ps2-keyboard raspberry-pi-pico usb-keyboard keyboard pio ps2 rp2040 hid pc-at pc-xt

ps2pico's Introduction

ps2pico

USB keyboard to PS/2+AT or XT interface converter using a Raspberry Pi Pico

hw1 hw2 hw3 hw4

Keyboard + Mouse variant: https://github.com/No0ne/ps2x2pico

Usage

  • Download ps2pico.uf2 or ps2pico-XT.uf2 from https://github.com/No0ne/ps2pico/releases
  • Copy ps2pico.uf2 or ps2pico-XT.uf2 to your Pi Pico by pressing BOOTSEL before pluggging in.
  • Afterwards connect a USB keyboard using an OTG-adapter and PS/2+AT or XT 5V to Pico VBUS.
  • Also works with wireless keyboards with a dedicated USB receiver.
  • 3.3V/5V conversion is done with two NPN transistors, two zener diodes and four resistors as shown below:
                 PS/2+AT / XT CLOCK
                       |           ____
                       |__________|10k |___________ GPIO 14
            ____       |          |____|     |
GPIO 15 ___|2k2 |____|/  BC547             __|__
           |____|    |\e                    / \  3V6
                       |                     |
                   ____|__GND________________|___


                 PS/2+AT / XT DATA
                       |          ____
                       |_________|10k |____________ GPIO 17
            ____       |         |____|      |
GPIO 16 ___|2k2 |____|/  BC547             __|__
           |____|    |\e                    / \  3V6
                       |                     |
                   ____|__GND________________|___

ps2pico

NuXTv2

If you have a NuXTv2 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:

hw5 hw6 hw7

Build

export PICO_SDK_PATH=/path/to/pico-sdk
mkdir build
cd build
cmake ..
make

Resources

ps2pico's People

Contributors

no0ne avatar vovams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ps2pico's Issues

Works only without Zener diode?!?

Hi.

I have assembled the ps2pico and have a question about it. I took the version which is for PS/2 Keyboards

I currently have the whole thing put together on a breadboard. It didn't work initially. After some tests, I figured out to remove the Zener diode between GPIO14 and Ground. The other one from GPIO17 to Ground is still in place.

After removing it, everything worked immediately. Now I'm concerned that I might face issues with overvoltage later on.

In the picture, you can see my wild setup. ๐Ÿ˜‰
Inside the rectangle is the Zener diode from GPIO 17 to Ground, and where the arrow is pointing, I removed it.
ps2picotest

On the VBUS, there is pretty much exactly 5 volts. If I measure GPIO 14 to Ground or even GPIO 17, it's 0.5?!?! Whether the Zener diode is connected or not. Maybe I'm doing something wrong or I assembled it incorrectly. The Zener diodes are 3.6V 5W.
When I place a 10K resistor between GPIO 14 and Ground, everything still works.

Should I just leave it or is something "wrong", even though it works without the diode?
Thanks in advance!

5v/3v

can i use the sparkfun bi directional logic converter for this project instead of the transistor/diode/resistor converter.

Came across this project

Anyway we can get a clear schematic diagram showing all the connections and parts used.

For whatever reason I can't tell by your pictures the layout of the circuit.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.