Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the project with yamaha p35 keybed #4

Open
RikiForMusic opened this issue Jan 11, 2020 · 7 comments
Open

Use the project with yamaha p35 keybed #4

RikiForMusic opened this issue Jan 11, 2020 · 7 comments

Comments

@RikiForMusic
Copy link

RikiForMusic commented Jan 11, 2020

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
Copy link
Owner

oxesoft commented Jan 12, 2020

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
Copy link
Author

RikiForMusic commented Jan 12, 2020

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
Copy link
Owner

oxesoft commented Jan 12, 2020

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
Copy link
Author

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
Copy link

godbless876 commented Jan 13, 2020 via email

@RikiForMusic
Copy link
Author

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
Copy link

did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants