Coder Social home page Coder Social logo

chuoique / stm32-ps2-usb-converter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trilader/stm32-ps2-usb-converter

0.0 0.0 0.0 41 KB

A simple USB <-> PS/2 converter with GPIO multimedia keys

License: MIT License

Makefile 17.88% C++ 45.66% C 36.46%

stm32-ps2-usb-converter's Introduction

STM32: PS/2 to USB Converter

This code facilitates a STM32 chip to convert between PS/2 and USB. It is meant to connect a keyboard, which only provides a PS/2 connector, to a computer via USB. This code powers on a daily basis:

  • Cherry G80-3000LSMDE

Dependencies

  • arm-none-eabi-gcc
  • arm-none-eabi-gdb
  • arm-none-eabi-binutils
  • arm-none-eabi-newlib
  • stlink
  • openocd
  • mpfr

Preparations

After cloning the repository you need to make the following preparations:

git submodule init
git submodule update
cd libopencm3
make
cd ..
make

Hardware and Setup

You will obviously need a STM32 chip. At least, it should have connectors on PINs A6 and A7, as well on 5V and GND. Take a freely connectable PS/2 socket and connect its 5V and GND with the STM. Also connect its DATA pin to A6 and its CLK pin to A7. Add two pull-up resistors (10k Ohm works well) between A6/A7 and 5V, respectively.

Connect your STM via a microUSB/USB cable to your computer to power it up. Use a ST-Link v2 Programmer (or similar) to flash the program using make flash onto the STM32. You should then be able to connect your keyboard to the PS/2 socket and have it enumerated as an USB device on your computer.

stm32-ps2-usb-converter's People

Contributors

trilader avatar extmind avatar

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.