Sign in to follow this  
Followers 0
aristidesfl

Make Arcade Controller from PC Keyboard

14 posts in this topic

Hi, I was searching for a cheap solution to build a midi controller and I tried to open a pc keyboard to understand how it works.

It seems that is easy to make the arcade buttons work using the controller of the keyboard, and since traktor allows mapping keyboard keys to everything we are good.

Now I have 2 questions for you:

1 - Are you aware of any latency problems with pc keyboard? Witch have least latency, pc keyboard or midi?

2 - I would like to put some endless dented knobs in the controller too. Do you know how they work? May be possible to assign the turning of the knob in one direction to a key and the other direction to other key?

Thank you

Share this post


Link to post
Share on other sites

Hi, and welcome!

1 - Since the latency would be the same as when typing, it should be low enough...just try using Traktor with mapped keys ;)

2 - Those Knobs are called encoders, and they don't behave like you suggested. They put out two phase-shifted pulses while turned.

    So it's not possible to connect them directly to the keyboard-controller, but through some extra electronics, it might work.

Share this post


Link to post
Share on other sites

So do you know some rotary enconder or some simple way to achieve that?

Share this post


Link to post
Share on other sites

There is no way of using knobs attached in a pckeyboard, because the keys are digital inputs,then you need an ADC to attach em.

btw, this instructable maybe can be interesting for you.

http://www.instructables.com/id/Hacking-a-USB-Keyboard/

K.

Edit: Also you can use the keys from the PCkeyboard to send MIDI messages. Spending 30 minutes even in Visual Basic you can write your own  app to do this via MIDI Yoke or whatever. Check this example: I made this app in Visual Basic (of course  :P), it sends MIDI NOTE messages via MIDI Yoke for my host, that's Fl Studio, so I can switch effects, channels etc.

download link: http://www.oitodigiarts.xpg.com.br/MIDIitSM.rar

UI picture:

mitsm.jpg

Share this post


Link to post
Share on other sites

If I want to implement rotary encoders without the keyboard what would I need? How would they work with traktor for instance?

Share this post


Link to post
Share on other sites
It would be nice.. but no chance to get one of those..

I have an extra C64 keyboard if you like. I'll send it to you for no charge - except you would have to pay for shipping. I'm located in Kansas City, MO, USA.

Share this post


Link to post
Share on other sites

a core and a din module at the least. You can buy them from Smashtv or Mike. You probably want to spend a bit more time reading up around here and on the ucapps site. The keyboard could be used to replace a bunch of switches.

If you read and search you will see that lots of controllers to do what you want have already been made.

If I want to implement rotary encoders without the keyboard what would I need? How would they work with traktor for instance?

Share this post


Link to post
Share on other sites

Is it possible to implement the rotary enconders with the C64 keyboard?

Share this post


Link to post
Share on other sites

Picture_1.jpg

Picture_2.jpg

If I understood well I could assign each encoder to 2 different keys and then decode the change of the keys using software, am I right?

The best would make it using some piece of hardware to make it faster.. any ideas?

Hmm forget it.. with many enconders, many keys would stay on at same time for long periods of time lefting no room for other buttons, it had to be done using hardware..

Share this post


Link to post
Share on other sites

Bear in mind that the keyboard repeats after x seconds - I don't think I could turn it off when I tried the same thing.

cheers

Share this post


Link to post
Share on other sites

actually the signal sent by the keyboard keys is continuous. The software is the one that repeats a letter when a key is pressed for a long period of time

Share this post


Link to post
Share on other sites

I stand corrected aristidesfl

thanks for that.

Its been some years since I played with keyboard signals, but you are correct. I should have explained that I was using VBasic at the time, and thats why I could not turn off the repeat. The pc keyboard does send a continuous stream of data, as yo say.

I humbly bow out

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0