oxesoft / keyboardscanner

Turn your broken (or unused) keyboard into a MIDI controller (with pedal and veloticy)
https://www.youtube.com/watch?v=z840N9P-T2k
74 stars 30 forks source link

Use the project with yamaha p35 keybed #4

Open RikiForMusic opened 4 years ago

RikiForMusic commented 4 years ago

Hi, i have a yamaha p35 with a broken motherboard and i want to use your project with this keybed. It is a simple diode matrix but for 88 keys and not for 61, i have found the colums and rows but i never used and arduino so i don't know how to connect the wires to the pins and how to modify your code for 88 keys with velocity and pedal. I read about pull up resistors but i don't know if they are necessary in your scheme, i hope you could give me some advice. Thank you so much

oxesoft commented 4 years ago

Hi. No additional components are necessary if you use an Arduino Mega because it already have internal pull up resistors activated in line 110 with "pinMode(PEDAL_PIN, INPUT_PULLUP)". You can just connect your keyboards directly to the Arduino pins, like I did.

RikiForMusic commented 4 years ago

thank you very much for the answer! I have only a doubt: are there any changes to make to the code to adapt it to 88 keys? i have read "#define KEYS_NUMBER 61" and "byte output/input_pins[] = { numbers}"(i suppose here to declare the rows and colums connected to the pins of the arduino). And how could i wire the pedal jack and a midi output jack to the arduino? thanks for listening and for the help I am really grateful

oxesoft commented 4 years ago

You just need to change "KEYS_NUMBER" to 88, "output_pins" and "input_pins" to reflect the rows/cols of the matrix and "black_keys" with the number of items of KEYS_NUMBER identifying the black keys in case of BLACK_KEYS_CORRECTION is defined.

RikiForMusic commented 4 years ago

Oh right! thank you very much for your help, when i'll get the arduino i'll try and I'll let you know how it goes

godbless876 commented 4 years ago

I had tried it with a mega and didn't even get a beep. I don't know what I was doing wrong... Am going to try a teensy with another project I found...

On Sun, Jan 12, 2020, 8:56 AM RikiForMusic notifications@github.com wrote:

Oh right! thank you very much for your help, when i'll get the arduino i'll try and I'll let you know how it goes

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/oxesoft/keyboardscanner/issues/4?email_source=notifications&email_token=AKN773443VRXWUHMGG2E7CDQ5MOSBA5CNFSM4KFSDOD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIW2R5A#issuecomment-573417716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKN7737KVJ7TDLB2ANVZLZLQ5MOSBANCNFSM4KFSDODQ .

RikiForMusic commented 4 years ago

hi, i've connected the wires into the pins of the arduino but i have some problems: my pc doesn't recognize the arduino has a midi device so i've connected a midi din to the arduino to use a midi-to-usb cable. from the midi out i don't receive any output put the led blink when i press two buttons at the same time, is there any code or library to include to have a midi out connector working? and in your code i have only changed 61 keys into 88 keys and written my cols has outputs and rows has inputs one below the other, is it correct? thanks in advance, i hope that you could give to me some little advice

estebanhirzfeld commented 1 year ago

did you solve it?