How to make a MIDI keyboard using Arduino | Small Project

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ •

  • @GoodElectronics
    @GoodElectronics  4 роки тому +42

    // Here's the CODE:
    // works with keyboards with matrix 7x8
    #define matrix1 7
    #define matrix2 8
    #include "MIDIUSB.h"
    int octave = 0; // add or subtract 8 for one octave
    bool currentState[matrix1 * matrix2];
    bool requestState[matrix1 * matrix2];
    void setup()
    {
    //------matrix1 number of pins--------
    pinMode(A0,INPUT); //1
    pinMode(A1,INPUT); //2
    pinMode(A2,INPUT); //3
    pinMode(A3,INPUT); //4
    pinMode(14,INPUT); //5
    pinMode(15,INPUT); //6
    pinMode(16,INPUT); //7
    //------matrix2 number of pins--------
    //each matrix2 pin must be one above the previous one
    pinMode(2,INPUT); //1
    pinMode(3,INPUT); //2
    pinMode(4,INPUT); //3
    pinMode(5,INPUT); //4
    pinMode(6,INPUT); //5
    pinMode(7,INPUT); //6
    pinMode(8,INPUT); //7
    pinMode(9,INPUT); //8
    }
    void loop()
    {
    readKeys();
    writeKeys();
    delay(1);
    }
    void readKeys()
    {
    for(int i=0; i

    • @jonathanteng6714
      @jonathanteng6714 4 роки тому

      nice project !!, where the section of the code I must change if use pulldown resistor on the row pin ?
      I've been change digitalWrite(i,LOW); to digitalWrite(i,HIGH); but still no response from the piano.

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      you need to change "!digitalRead" to "digitalRead"

    • @ti7adahab799
      @ti7adahab799 4 роки тому +1

      Can i use this code with piano toys 32 keys ...

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      I think so, but you need to change matrix dimensions in this code

    • @ti7adahab799
      @ti7adahab799 4 роки тому

      @@GoodElectronics
      How...i can't handle it..i use board of piano toys 32 keys ... Can u connect me with Facebook or WhatsApp

  • @kevalnakar6269
    @kevalnakar6269 2 роки тому +2

    This video becomes the one stop solution for me.
    Because I want to make midi keyboard (Arduino based) from long time.
    Thank you so much brother

    • @kevalnakar6269
      @kevalnakar6269 2 роки тому

      Thank you
      I'm understanding the code
      With feeling

  • @w0udo6yv4o4
    @w0udo6yv4o4 4 роки тому +56

    The diodes are there to prevent notes ghosting

    • @oskrpnk666
      @oskrpnk666 4 роки тому +5

      THIS. Seems that this guy has never assembled or looked at a mechanical keeb or any key matrix

    • @GoodElectronics
      @GoodElectronics  4 роки тому +5

      @@oskrpnk666 Ohhh, I see now. I forgot that current can float through keys that aren't connected under specific circumstances

    • @BehniaFB
      @BehniaFB 4 роки тому +1

      What do you mean by ghosting? Is it anything important for this purpose?

    • @BehniaFB
      @BehniaFB 4 роки тому

      ​@@GoodElectronics What do you mean by ghosting? Is it anything important for this purpose(making my keyboard MIDI) ?
      I hope you'll answer me soon.

    • @GoodElectronics
      @GoodElectronics  4 роки тому +5

      Ghosting is wrong reading of multiple pressed keys at once, usually there can be additional key recognised as pressed.

  • @sangrambhumia9320
    @sangrambhumia9320 3 роки тому +4

    Finally made my MIDI keyboard today ! All thanks to you and your code. Just a little tweak in code made it work for my 32key keyboard 😊. There is no delay whatsoever 🐱.

    • @sanjay.skumar7467
      @sanjay.skumar7467 3 роки тому

      could you send the code as I have 32 keys too, would save others time from making changes too

    • @sheharafernando8507
      @sheharafernando8507 2 роки тому +1

      I have a 32 key matrix too(4*8)and my keyboard just keeps playing in the same octave can you send the code?pls

    • @sangrambhumia9320
      @sangrambhumia9320 2 роки тому +1

      Should i send that here?

    • @andrewarguelles6945
      @andrewarguelles6945 2 роки тому

      @@sangrambhumia9320 Nice work!
      I dont have enough knowledge about programming.
      i have everything wired up
      Can you send a 61keys code? 8x8 matrix. my project is sitting for 1month now and cant seem to find the right code.
      any help will be appreciated :)

    • @sangrambhumia9320
      @sangrambhumia9320 2 роки тому

      @@andrewarguelles6945 I have code for 32 keys and I am not sure if it will work with 61 keys.

  • @System-1541
    @System-1541 11 місяців тому +1

    The diodes are there to prevent ghost signals when scanning the keyboard as a matrix. Honestly, I don't know how your circuit is working without them. Unless somehow you unsuccessfully shorted their pins in your wiring scheme, and they are still preventing backflow of the current. Diodes are a necessary part of a circuit like this.

  • @jkromes20
    @jkromes20 Рік тому

    i looked up this video trying to remember Evan Kale's name hahaha prefect shoutout. What great videos he had

  • @HETRM
    @HETRM 3 роки тому +3

    awesome work!! thanks ..it worked for me had 6x8 matrix, with some small changes.🙏🙏🙏👏👏👏

  • @TheJasonf8892
    @TheJasonf8892 9 місяців тому +1

    is there any chance of getting the documentation for this? or the website link please??

  • @nitishdas22
    @nitishdas22 3 роки тому

    Hey Good Electronics , it is a very informative video ... Thanks ! ... and congratulation on reaching 500 subscribers, me being the 500th one ! :)

  • @kwonbryan
    @kwonbryan 8 місяців тому +1

    Hello, I am new to this but your video might help for my midi setup. I got Yamaha PSR 160 keyboard. And the cable inside I got 15 cables all together. Not like yours as 7 and 8 cables separated. In that way, how should I program?

    • @tutorialesdewindows7869
      @tutorialesdewindows7869 8 місяців тому +1

      use a multimeter, look for other videos where u identify "keyboard matrix". ask here som1thing idk

  • @whereone
    @whereone 4 роки тому +1

    thanks, you save my keyboard life :D.... 100% working... I can't buy a resistor ladder so I make one.

    • @ti7adahab799
      @ti7adahab799 4 роки тому

      How u made it ??

    • @whereone
      @whereone 4 роки тому

      @@ti7adahab799 Just connects a resistor in parallel and I use (680 Ω ±5% (J)) Resistor.

    • @loveandlearn592
      @loveandlearn592 2 роки тому

      @Albert Reveche How many resistors is needed to make one?? I cant buy a resistor ladder too, if possible can you share the pic of your board.

    • @whereone
      @whereone Рік тому

      @@loveandlearn592 use same amount in the video. 7 resistor

  • @abhayganesh6364
    @abhayganesh6364 Рік тому +1

    is it essential to use resistor ladder

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      Yes, to pull up the keys pins so arduino can read them.

  • @oleksiy_101
    @oleksiy_101 10 місяців тому

    Thank you very much for the video. Can you please tell me where I can buy a matrix button like in the video?

  • @joemjaveevelaylo2327
    @joemjaveevelaylo2327 3 роки тому +1

    Hey, great video. It really encouraged me to build my own midi keyboard. Just asking how should I code if I want the velocity sensitive keys because I might get access to another 49 key piano circuit. Thanks in advance, even if you can't help.

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      That will be much harder to code, you will have to make some sort of voltage divider, but the code will be more complex

    • @joemjaveevelaylo2327
      @joemjaveevelaylo2327 3 роки тому

      Hey, does the code also work for the leonardo board, a friend also wants to build and he already has the board and was wondering if there is anything to change for a different board

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      @@joemjaveevelaylo2327 yes. It's the same chip.

  • @AddyJesterBonaobra
    @AddyJesterBonaobra 2 місяці тому

    is it hard to make one by just following what you did and copy pasting the codes you've provided? I don't have basic knowledge about arduinos :3

  • @frankventura7306
    @frankventura7306 2 роки тому

    Great Video! can you upload the wiring diagram. i was wondering how your connections were wired.

    • @GoodElectronics
      @GoodElectronics  2 роки тому

      Hi. In my case half of the keyboard ribbon goes to matrix1 pins, the other one to matrix2 pins. The resistor ladder is connected to matrix1 and I believe connects to gnd. And that's all.

  • @harshroy5165
    @harshroy5165 4 роки тому

    Hello, will it register more than one key pressed simultaneously? As in playing a chord on the piano?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Yes, I made this that way so it registers any amount of keys pressed at once.

  • @DhanendraPatel-t7b
    @DhanendraPatel-t7b 5 місяців тому

    Will the arduino uno R3 SMD micro work?

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      No. Unless you find some software that works over serial and not with MIDI USB protocol

  • @ElectronDuino
    @ElectronDuino 4 місяці тому

    Can you press multiple keys at once? Or is it the function of the diodes?

    • @massimookissed1023
      @massimookissed1023 6 днів тому

      Without the diodes, pressing multiple keys at once could fry the outputs of the Arduino.
      Example: at 6:48 if the Arduino is outputting a High on Col0, and Lows on Col1, Col2 & Col3, pressing any key on Col0 would connect that High to the relevant Row input.
      Here's the bad part: Pressing the top-left switch AND the top-right switch simultaneously connects the High on Col0 to the Low on Col3 through the 2 switches, possibly frying the Col outputs and presenting gibberish to the Row0 input.

  • @HarshitBujarBaruah
    @HarshitBujarBaruah 3 роки тому

    Fantastic project.

  • @eshanoshadha7709
    @eshanoshadha7709 7 місяців тому

    Can it be done with nanoboard?

  • @raginggamer2615
    @raginggamer2615 4 роки тому

    thank u soooo much this video help me a lot I'm a begginer and this help a lot

  • @buttonsplaymusic4896
    @buttonsplaymusic4896 3 роки тому +2

    This was pretty interesting. Can you next do one where you put an lcd on your Leonardo, and add some sounds to it and a scroll button or 2, so you can have the sounds right on the arduino (not just a midi controller)? (Would be cool to use samples, but midi synth would also be cool I guess)

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      Arduino is really bad at playing sounds, you would need something more powerful, or some sound module for arduino

  • @rodrigomorquecho2320
    @rodrigomorquecho2320 4 роки тому

    hi,thank you for the video,just one question the keyboard im using have two faders, can i add this two faders to this cofiguration? and if i could do it, how?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Hi. I don't know how MIDI uses faders, but I think it will be easy. Add digitalRead to a pin with connected fader and send midi command (you need to find how to handle faders in midi).

  • @doganseseogullari3267
    @doganseseogullari3267 4 роки тому +2

    Hi, congrulations. And thanks for sharing. Do keys enable to play in velocity?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      There's some velocity option in MIDI library, but I didn't test it, so i can't tell you anything about that.

    • @vic2net
      @vic2net 4 роки тому

      Hi man, I found a method how we can play notes with different velocity, just use Piezo element, not simple buttons, so we will be able to play with different velocity. (price will be same)

    • @doganseseogullari3267
      @doganseseogullari3267 4 роки тому

      @@vic2net but the piezos do not have continues playing ability. They can play sample wav based vstis continues but cant for digital vsts sound generators. And other problem is. Some piezos can be triggered even you dont hit if you play next piezos

    • @pmj_studio4065
      @pmj_studio4065 3 роки тому +1

      For a velocity sensitive keyboard you need two switches per key at different heights. You can use the time difference between when each of them was pressed to calculate the velocity.
      It's called "double sensor keyboard". There are also "triple sensor keyboards" to better detect fast key presses where you don't lift them all the way up (e.g. trills), but you can do almost the same with only two.

  • @francoisBonin-phils
    @francoisBonin-phils Рік тому

    Nice , but no velocity?

  • @shreygupta7847
    @shreygupta7847 4 роки тому

    does the keyboard need to be in proper working condition for this to work properly? Actually a couple of keys in my keyboard are not in proper condition, so will the midi functioning be affected or does it only depends on pressing of key ?

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      If some keys aren't working, there's a chance that it's broken inside microcontroller which is replaced with arduino, but it can be also a broken cable. Arduino requires a slight signal to detect it, so even weared contacts could work. If it works, the key condition won't be distinguishable (if it is, try a higher resistance resistor ladder).

  •  6 місяців тому

    Can I still use the original speakers?

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      if you find a way to connect the pins to arduino still beeing able to connect them to the original board yes

  • @RiccardoRivi
    @RiccardoRivi 3 роки тому +1

    Is It polyphonic?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Yes. Unfortunately shorting these diodes limits it to 2 or a few keys at once (which I didn't know when I was making the video), but if you leave them, it's fully polyphonic

    • @RiccardoRivi
      @RiccardoRivi 3 роки тому

      @@GoodElectronics nice, thx

  • @oficinamaker.school
    @oficinamaker.school Рік тому

    Another question, which ICs did you use besides the Pro Micro?

  • @theeeblack0wl
    @theeeblack0wl 3 роки тому

    hello , pretty nice tutorial, but i have a problem, when connecting the pins to the right inputs, i get only few of the keys working, when i short the pins at the beggining of the keyboard i get the sounds, but cant seem to get them when pressing the buttons, might it be because of resistance? im not using resistor ladder, but normal 5k resistors in parallel.

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Right, resistor ladder is resistors in parallel. You can try with some other resistance. I also recommend you to short each input with each output with a wire to check if it's working, then measuring if the keyboard shorts one of inputs to one of outputs after pressing a key.

  • @WawanGunawan-y6s
    @WawanGunawan-y6s Рік тому

    Can it be used in the org 2020 application, smartphone

  • @vic2net
    @vic2net 4 роки тому

    4:25 - So when we play notes We can play more than one note? but how much notes we can play at once?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Yes, this connectrion allows for more than 1 key pressed. I made a mistake and I shorted these diodes. If you don't short them, you will be able to play as many notes as you want.

  • @fl3ur_1nestimable
    @fl3ur_1nestimable 4 роки тому +1

    hey man ! thank for that video! i just wanna know where I can buy the arduino, the board and overall the resistance ladder

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      All these parts are available on eBay or your local electronics store.

    • @fl3ur_1nestimable
      @fl3ur_1nestimable 4 роки тому +1

      @@GoodElectronics thanks !

    • @fl3ur_1nestimable
      @fl3ur_1nestimable 4 роки тому

      I have another question: umm the keyboard I have has 61 keys, and also I have only one cable that comes from the keys' output, and it is 17 or 18 pins, so can I do it with that?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      @@fl3ur_1nestimable I think it's also the same connection as I have, but you have these 2 cables joined as 1 cable, so you need to find in which place they're connected.

  • @williamgard9929
    @williamgard9929 4 роки тому

    So how would I do this with a 6 x 11 matrix configuration? Would it be possible to change the matrix parameters to achieve the desired result?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Hi. You firstly have to check where these 2 sets of cables split. In my code there's an instruction about setting up different amounts of pins. Write if you have any other questions.

  • @codewithzi-5817
    @codewithzi-5817 Рік тому

    Uhmmm... I kinda have a question. Can this circuit be used on mobile phone application? I have some applications that require a midi keyboard

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      If you find a way to connect via bluetooth or something to the mobile phone (maybe using an ESP32,) then yes, you can.

  • @smunzio3000
    @smunzio3000 4 роки тому +1

    hey, first of all, thanks for the tutorial. i'm trying to get this to work since 2 days. I soldered everything correctly, resistor ladder and pins in order. What changes in the code should be made if the matrix is 8x6? ( the six pins are the numbered ones, the OTHER 8 pins are A3, A2, A1, A0, 15, 14, 16 and they are the ones connected to the resistor ladder)

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Did you try to read these instructions in code and applying changes into it?

    • @smunzio3000
      @smunzio3000 4 роки тому

      @@GoodElectronics yeah, but i can't understand what currentstate[] does, and how is it finding the right notes if requeststate is always true or false, wouldnt it result in the same note no matter what key is pressed? how do bools with brackets work? i cannot find any info online

    • @smunzio3000
      @smunzio3000 4 роки тому

      also, why is digitalWrite(i,low) ? it doesnt even work for me like that, if i want some output (but wrong notes playing together) i had to put digitalWrite (i+2,low).

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Hi. These variables with brackets are arrays. currentstate is the variable that stores current notes playing, requeststates is containing notes that will be pressed in the next program cycle. The value will be true for the index of key pressed. Did you properly connect resistors to them and made the changes as I wrote in the code?

    • @smunzio3000
      @smunzio3000 4 роки тому

      @@GoodElectronics i made some changes and now It works perfectly. thanks a lot

  • @sanjay.skumar7467
    @sanjay.skumar7467 3 роки тому +3

    // CODE FOR 32 keys and using the resistor ladder on negative(gnd) instead of vcc and bugs fixed
    //works and tested for Casio SA-47A
    // works with keyboards with matrix 4x8
    #define matrix1 4 // rows
    #define matrix2 8 // columns
    #include "MIDIUSB.h"
    int octave = 24; // add or subtract 12 for one octave
    bool currentState[matrix1 * matrix2];
    bool requestState[matrix1 * matrix2];
    void setup()
    {
    //-matrix1 number of pins-
    pinMode(10,INPUT); //1
    pinMode(11,INPUT); //2
    pinMode(12,INPUT); //3
    pinMode(13,INPUT); //4
    //-matrix2 number of pins-
    //each matrix2 pin must be one above the previous one
    pinMode(2,INPUT); //1
    pinMode(3,INPUT); //2
    pinMode(4,INPUT); //3
    pinMode(5,INPUT); //4
    pinMode(6,INPUT); //5
    pinMode(7,INPUT); //6
    pinMode(8,INPUT); //7
    pinMode(9,INPUT); //8
    }
    void loop()
    {
    readKeys();
    writeKeys();
    delay(1);
    }
    void readKeys()
    {
    for(int i=0; i

  • @gustavoconter
    @gustavoconter 4 роки тому

    Hi! My ribbon cable has 17 pins but I bought the Arduino Pro Micro that has 16 inputs/outputs so that means i will lose 1 octave from my keyboard ? It has 61 keys.

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      In simple terms: something like that, but it depends of the both amounts of cables in both ribbons. It might be one octave, 6 keys or something similar.

    • @gustavoconter
      @gustavoconter 4 роки тому

      @@GoodElectronics Perfect, thanks for the answer! As soon as I receive the products I ordered I will start to work on the project!

    • @gustavoconter
      @gustavoconter 4 роки тому

      @@GoodElectronics I have some questions about the keyboard matrix, I used the multimeter to measure the continuity between the pins and I managed to link the respective pins to all the keyboard notes but I don't know how to connect these pins to the arduino and how to change the code to make it work. I have some experience with C but could not make it work with the arduino.

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Hi. The basic experience will be enough, I tried to explain everything in the code. Just change some numbers to the other numbers, maybe remove some lines I marked. (Sorry for long response, but youtube doesn't show reply notifications)

  • @koozin69
    @koozin69 4 роки тому

    first of all, tks for the video :) I must say that i don't have any experience in arduino and electronics in general, but I got a question: I'm planning to create my own midi keyboard, but with two keybeds (2x49) from the same digital keyboard, would that be a problem with arduino pro micro?
    Tks

    • @GoodElectronics
      @GoodElectronics  4 роки тому +2

      This would be a problem, because you need to connect all pins to Arduino, and you have 51 pins in total. Arduino pro micro has somewhere around 20pins.

    • @koozin69
      @koozin69 4 роки тому +1

      @@GoodElectronics alright, will study deeper on this.. tks for ur time :)

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      @@koozin69 use shift registers. You'll need to modify the code, but they aren't that hard to use

  • @yelintunnet57
    @yelintunnet57 3 роки тому

    When i connect with piano to PC that piano was auto play so what should i do?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Make sure your resistors are connected properly

  • @oficinamaker.school
    @oficinamaker.school Рік тому

    can i use other programs?

    • @GoodElectronics
      @GoodElectronics  Рік тому

      Yes, that's midi protocol which is compatible with many programs

  • @megumi47_3
    @megumi47_3 2 роки тому

    great vid! helps alot! but could i use an ESP32 instead of an arduino pro micro for this?

    • @GoodElectronics
      @GoodElectronics  2 роки тому

      I'm not sure, you have to check if it has native USB support and has arduino midi library

  • @troller2705_
    @troller2705_ 3 роки тому

    Been working on this for a while but can't get any midi output on my computer im using a 7x6 matrix and have altered the code accordingly im not sure how to do the resistor latter but im pretty sure everything else is right

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Did you try to short the inputs with outputs by hand? Maybe the keyboard isn't working well with this circuit

    • @troller2705_
      @troller2705_ 3 роки тому

      @@GoodElectronics i found when i added my resistors on the one side and sorted it to raw I got 2 3rds of the keys working but I only got about 5 different notes I am trying to redo my wiring rn hopefully that will fix it and if not I will figure something out if it still doesn't work is there an email I would be able to communicate with you through to send pictures of my pin layout?

  • @Astrovic1
    @Astrovic1 3 роки тому +3

    fl studio beste:) will probably also do this for a project in university

  • @mingoindusrock
    @mingoindusrock 4 роки тому

    you think you can help me make a single button on off midi switch for my microphone effects using arduino Leonardo?

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      I think so. What is it supposed to do exactly?

    • @mingoindusrock
      @mingoindusrock 4 роки тому

      @@GoodElectronics thank you for answering control my vocal effects delay in mainstage hay already test with the regular small keyboard I can't turn the affect on and off. Or assign other parameters is a simple Trent Reznor from Nine Inch Nails has a control in his mic stand

    • @mingoindusrock
      @mingoindusrock 4 роки тому

      But I'm not really sure what kind of midi brain I can use

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      So then I don't know how to make it, this arduino keyboard acts as a normal midi keyboard, so you must find a way to control this with a midi keyboard, then it will work.

  • @loveandlearn592
    @loveandlearn592 2 роки тому

    How to make a resistor ladder ? I can't find one..
    Also can you share the picture of final version board?? (The main thing is the circuit so its logical to have the picture of it imo)
    And what board to select on arduino IDE

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      You can purchase the resistor ladder on internet. But if you don't want to, you can simply put normal resistors. The only difference is that the resistor ladder is smaller. Resistors are very cheap.

  • @tutirjeh
    @tutirjeh 4 роки тому +1

    i have a 10*6 matrix for my keyboard How to change the code ?

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      Firstly, you have to modify currentState, requestState, fixedKeys to be [60] instead of [56], in fixed keys write every number lower than 60 starting with 0 and increasing by 6, then starting from 1 and so on when you reach 59. Instead of "i

    • @tutirjeh
      @tutirjeh 4 роки тому

      @@GoodElectronics k thx i'll try

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      I edited the code, so all you need is change your dimenstions, pinModes and digitalWrites as I explained in my code

  • @dailystude
    @dailystude 4 роки тому

    Is adding a sustain available for this type of circuit?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      I don't know, I think it's available in midi programs.

  • @amediuz1192
    @amediuz1192 4 роки тому +1

    Does it have touch response

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Do you mean if I touch a key, Arduino will send data? In most cases no - because keyboards have a membrane which you have to press for response.

  • @k8uba
    @k8uba 4 роки тому +1

    Hi @Good Electronics, great video. I have a 5x7 Matrix keyboard, and I'm not quite sure how to modify the code to make it work. I saw the other comments asking similar questions, but I still couldn't really work it out (I have vary litle experience in C). Also, how did you wire up the resistor ladder? I've tried the code without one, and the outcome really was strange. Thanks

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      The resistor ladder is made of tiny resistors that are connected to one point (marked as a dot) - connect it to 5V. Other pins connect to all of your analog inputs. I changed a code to have instructions and a cleaner view. Hope you will understand :)

    • @k8uba
      @k8uba 4 роки тому +1

      @@GoodElectronics Thank you so much! This really helped

  • @maxios-7613
    @maxios-7613 3 роки тому

    I was thinking, wouldn't it be easier to use the "keypad.h" library for the matrix ? since it does the job with less coding than doing it manually.

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      sure, but I prefer making my own code for that simple actions, because now I know every function and if it breaks I will find issues faster.

    • @maxios-7613
      @maxios-7613 3 роки тому

      @@GoodElectronics makes sense

    • @maxios-7613
      @maxios-7613 3 роки тому

      @@GoodElectronics since I'm not a pro in arduino I wanna ask. can I use both your method and keypad library method ? I'm trying to make a midi keyboard that also produces sound when a buzzer/speaker is plugged in and I managed to do that part with keypad library method.

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      sure, I think you will get an output from the keypad library like column and row, so multiply the column by the number of rows and add a row number, and you will get a key note (depending how you will connect it). You need a tone library, but it only gives you a square sound signal, others are much harder to be implemented in arduino

    • @maxios-7613
      @maxios-7613 3 роки тому

      @@GoodElectronics thank you! I will ses what I can do

  • @Lup1n_3
    @Lup1n_3 4 роки тому

    brother a question, I bought the pro micro and connect as it is in your video with your code (I have a 54-key keyboard so I suppose it's like in your video) the problem is that when I connect to a program all the keys become crazy, how to solve it?

    • @Lup1n_3
      @Lup1n_3 4 роки тому

      when I put the resistance that you show in the video it does it but only in one part but it doesn't let me use any key

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Make sure you have your pins connected to proper Arduino pins. If they're connected properly and you have a multimeter, check if after pressing a button, one of rows shorts to one of columns (one of pins in the first set to one in the other one). If it does, check putting a wire directly between one of Arduino input pins and one of the output pins.

    • @Lup1n_3
      @Lup1n_3 4 роки тому

      @@GoodElectronics If I have it well connected, I don't know how to do the check you said, but I connected it to the original board and they work, could you send me a connection diagram or something? I don't know why that happens, I have practically your same matrix

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      short one of the input pins to one of the output pins (for example 2 and A2), it should make a tone

    • @Lup1n_3
      @Lup1n_3 4 роки тому

      @@GoodElectronics I just tried it and if I listen to notes, I have it without the matrix and I listen to the program that uses (vmpx) noise like distortion, I suppose it will be the matrix although it is rare because it works on the original board

  • @abhijithspillai5530
    @abhijithspillai5530 4 роки тому

    What Do You Mean Complicated If There are Chips On My Piano Circuit... Please Answer...

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      If there are sime chips, there's a chance that wires going out of this board won't work as in my keyboard, they will be connected to these chips and they will be sending signals in a more compex way.

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      @@GoodElectronics in that case you would need to solder cables directly on the pcb, so it would be a more tedious job. But still doable.

  • @SamoyedComputers
    @SamoyedComputers 3 роки тому

    What used registry to this project?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Sorry, I don't understand you. What registry are you talking about?

    • @SamoyedComputers
      @SamoyedComputers 3 роки тому

      @@GoodElectronics *registers

    • @SamoyedComputers
      @SamoyedComputers 3 роки тому

      sorry for error

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Sorry, but I still don't understand you, do you mean shift registers or something else?

    • @SamoyedComputers
      @SamoyedComputers 3 роки тому

      @@GoodElectronics shift registers

  • @shreygupta7847
    @shreygupta7847 4 роки тому

    Can you please mention which arduino leonardo are you using here?

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      It's arduino Pro micro

    • @vic2net
      @vic2net 4 роки тому +1

      you can use both (Leonardo or Pro Micro), just look for arduino with Atmega 32u4 or atmega 16u2 they can work like Midi Devices without any additional drivers (simple plug and play).

  • @devon12346
    @devon12346 2 роки тому

    can someone explain shorting the diodes and what the resistor ladder does and how I can get one or make one and how also how it's used?

    • @ElectronDuino
      @ElectronDuino 4 місяці тому

      You can purchase the resistor ladder on internet. But if you don't want to, you can simply put normal resistors. The only difference is that the resistor ladder is smaller. Resistors are very cheap.

  • @abhijithspillai5530
    @abhijithspillai5530 4 роки тому

    Sir How Can I find out My Matrix.....Also Can You Tell me How to Make That Board You Made That Connects all Components........ Have Got 61 Keys Will It Work On That...Thank You .......Please Reply ASAP

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Hi. I found my matrix by probing multimeter with continuity tester and checking which wires are able to short with the first wire. In your case it might me 7x6 matrix, so you only need to know where is this "split point" between 2 sets. To make a board you need to buy an universal board and solder resistor ladder to arduino (where it has a dot - connect 5v, other pins connect to input pins).

    • @abhijithspillai5530
      @abhijithspillai5530 4 роки тому

      Sir You Have Helped Me So Much Thank You

    • @nandakesav1346
      @nandakesav1346 4 роки тому

      Da pottan pille veendaatha panikeert poovenda

  • @jdentertainment2040
    @jdentertainment2040 4 роки тому

    I have a problem on the keys from D7 and above its not working when I unscrew it I saw unconnected wire but I dont know where is it connected

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Check the place where these wires go into this keyboard buttons if all wires are connected.

  • @ahmetaslan2059
    @ahmetaslan2059 3 роки тому

    How should I use this software in arduino leonardo. How should I set the pin inputs and outputs. I would appreciate it if you could help :)

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      There's a code in a pinned comment :) (or not pinned, I don't know why it happens)

    • @ahmetaslan2059
      @ahmetaslan2059 3 роки тому

      @@GoodElectronics I saw this fixed code, but I do not know how to install the pin entries in Leonardo, I am very unfamiliar with this work :)

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      There are hints inside that tell you what number of lines they has to be, just add these lines with corresponding pins as it tells you in these instructions. I hope you will get it :)

    • @ahmetaslan2059
      @ahmetaslan2059 3 роки тому

      @@GoodElectronics I have read and understood the software, but it still didn't work. I could not solve the resistance problem. Therefore, the circuit works erratically.

  • @aldrenelectronicsrepair8447
    @aldrenelectronicsrepair8447 4 роки тому

    crazy key result

  • @dantanimohit2072
    @dantanimohit2072 4 роки тому

    Where can I buy this type of body of keyboard and circuit?

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      I don't know, you can buy cheap used keyboard, it would contain the same connection.

  • @sangrambhumia9320
    @sangrambhumia9320 3 роки тому

    Awesome video bro!!! But where do i find that codes. And will it be same for a 32keys keyboard?

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      On the pinned comment (if it's not pinned, you need to scroll to find it, it unpins somehow), there's an explanation how to change pins inside it.

  • @paki26th36
    @paki26th36 3 роки тому

    Can i use ATMEGA328 Arduino Uno ?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      No, only atmega 32u4 supports native USB. You can however test some drivers that are designed to be supported with atmega328 and midi, but I haven't tested these and I won't help you with them

    • @paki26th36
      @paki26th36 3 роки тому

      @@GoodElectronics if i remove the atmega328 integrate will help ?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      No, you need a chip with a native USB support, only atmega 32u4 supports that.

  • @KASHYAP788
    @KASHYAP788 3 роки тому

    how to make a midi keyboard using arduno nano for casio sa78 keyboard please make a video

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Hi. I don't want to make a video for every keyboard, check how it this keyboard wired, if similar to my, you can connect it like I did

  • @muharremsuz
    @muharremsuz 3 роки тому

    Can i plug a regular midi and this Arduino midi in same time to PC? İ just want to make a Arduino music box. İ plug it into PC like regular midi. And i try to play songs with regular midi and Arduino midi with diffrent enstrumants in same time.

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      I think that it will be possible without any issues.

    • @muharremsuz
      @muharremsuz 3 роки тому

      @@GoodElectronics i will try and notice you

  • @nyelgaul2235
    @nyelgaul2235 4 роки тому

    Hi friend Can you ask for the finished sketch phases

  • @dharmeshsolanki4354
    @dharmeshsolanki4354 4 роки тому +1

    can you provide download link of your code

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      It's in a pinned comment, just copy and paste

    • @dharmeshsolanki4354
      @dharmeshsolanki4354 4 роки тому +1

      @@GoodElectronics Thankyou I found your code in comments but its not pinned 👍

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      @@dharmeshsolanki4354 weird, i pin it and it unpins

  • @nazilgun7597
    @nazilgun7597 3 роки тому +1

    In Turkey, they are so expensive, you just cut my dream dude

  • @guitarcase
    @guitarcase 3 роки тому

    Hi! I'm pretty new to circuitry, any chance you could drop a list of the hardware components?

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      Hi. It's arduino pro micro, resistor ladder (1k will be ok), prototype board, some pin headers, some wires to connect everything and I think that's all

  • @daddydanny5588
    @daddydanny5588 4 роки тому +1

    gr8 vid
    i want to know the long code that you're writing .. :)

    • @GoodElectronics
      @GoodElectronics  4 роки тому +2

      Hi. The code is in the pinned comment. It might be under other comments, it's not showing always, I don't know why.

    • @daddydanny5588
      @daddydanny5588 4 роки тому

      @@GoodElectronics Thanx

    • @Nuwan__Madusanka
      @Nuwan__Madusanka 4 роки тому

      @@GoodElectronics please put that code on discription box...

  • @neilvaidya7265
    @neilvaidya7265 2 роки тому

    What is the use of resistor ladder?

    • @GoodElectronics
      @GoodElectronics  2 роки тому

      It pulls up the voltage on keys, so when pressed, it shorts it to ground and arduino can see if it's pressed. Similar to "input_pullup" in arduino

    • @codewithzi-5817
      @codewithzi-5817 Рік тому

      ​@@GoodElectronics so... If we dont have a resistor ladder, we can change the code to "INPUT_PULLUP" instead, right 😅

    • @GoodElectronics
      @GoodElectronics  Рік тому

      @@codewithzi-5817 only analog pins support pullup, so you would need to plan it to have it only on analog pins :)

  • @narendrawilwatikta9122
    @narendrawilwatikta9122 4 роки тому

    Hai friend, may i ask you?
    Does it work if i use an arduino mega 2560?
    Thanks friend🙏

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      It only works with arduinos that have native USB support, atmega 2560 doesnt have it, you need one of the arduinos that I showed in my video.

    • @Snarkbutt
      @Snarkbutt 4 роки тому

      @@GoodElectronics The Mega 2560 has a USB out port built into it. How can it not have USB support? I ask because I ordered one to make a midi drum pad which will need to connect to my laptop using USB, based on several tutorials by other people where they used the mega 2560 to make midi controllers.

    • @lucasc5622
      @lucasc5622 4 роки тому

      Snarkbutt The Arduino Mega uses a USB to serial converter chip because the microcontroller can’t do USB on its own. you can do this sort of thing on an arduino that doesn’t have native USB, but you would have to do it in software and it would be very slow. You’d be much better off just buying a pro micro from China for £3.

    • @Snarkbutt
      @Snarkbutt 4 роки тому +1

      @@lucasc5622 Thanks for the tip.

  • @abhijithspillai5530
    @abhijithspillai5530 4 роки тому

    My Keyboard has only two ports one the output other the charging input 9.5v DC..... So Will I be able To Do This Project.....Also Can you Send The coding Script in a .txt File or Something Please....

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      These connectors are inside, you need to tear it down. Code is in a pinned comment.

    • @abhijithspillai5530
      @abhijithspillai5530 4 роки тому

      @@GoodElectronics BRUH, You need both only arudino pro micro right?? And could you give me the when you have to type the code I mean the timestamp of it (The beginning one or the ones towards last) Please I don't have much idea about electronics... 😅 and How can I find out the matrix of my keyboard...Please Help me by sending the link to buy arudino pro micro.....
      Thanx for Replying to me...

  • @JerryOhh
    @JerryOhh 2 роки тому

    Midi Drum for Leonardo Please..

  • @shreygupta7847
    @shreygupta7847 4 роки тому

    Is there any written documentation for the project ?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Unfortunetly, not (as I have seen, there's not documentation), but you can always search in the web, maybe somebody has written one?
      (I responded before, but youtube maybe didn't post this comment, so sorry for that late respond)

  • @vk-music22
    @vk-music22 3 роки тому

    please please help me write code for 32 keys keyboard

  • @maharockofficial
    @maharockofficial 3 роки тому

    super cool

  • @mang6879
    @mang6879 3 роки тому

    I have Creative Prodikey Midi-Typewriter Keyboard on my old store. Since all his software was an older version, i kinda pissed off it cannot operate on Windows 10. Only typewriter keyboard operate as well neglecting his MIDI controller function.. So i think, i want to reprogram back the midi keyboard (also possible if i can operate the typewriter keyboard also) so it can been operated back on Windows 10. It's my lifetime project since I've zero knowledge on electronic and programming things. Maybe I've should use your idea in this video.

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      If this will be used as the regular keyboard, there's an option in arduino Leonardo to behave like keyboard, then you can print letters.

    • @mang6879
      @mang6879 3 роки тому

      So this video is for regular usage or just for seldom usage? If anything else, what should I've add into the programming code for regular usage?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      @@mang6879 This video is exclusively for MIDI devices. If you want to make the kayboard MIDI, then just make everything like in my video. If you want to make it as a keyboard, then the implementation is a little bit different. (I only noticed now that it's midi typewriter, so it will work like in my video)

    • @mang6879
      @mang6879 3 роки тому

      @@GoodElectronics was anything changes if i wanna do a general Midi controller concept for the keyboard that I mentioned before?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      I don't know midi that well, if the keyboard has similar pinout, I think it will work as in my video. Speaking of general midi, did you mean something that isn't keyboard, but some effects or something like that? If so, it will be hard to program it i think. You can check if some software does it.

  • @derrickpresley8708
    @derrickpresley8708 4 роки тому

    How many pins is the resistor ladder supposed to pull?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Hi. All of the input pins connected to the keyboard. In the code they're marked as INPUT.

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      If you are using ONLY analog pins (like A0, A1, A2), you can simply write INPIT_PULLUP instead of INPUT and then arduino itself will pull them up.

    • @derrickpresley8708
      @derrickpresley8708 4 роки тому

      @@GoodElectronics Thanks alot

    • @derrickpresley8708
      @derrickpresley8708 4 роки тому

      What would you suggest I do if I cannot find a resistor ladder... It seems out of stock in my area or something

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      You can use resistors connected in parallel to 5v and pins

  • @sewminadilshan7223
    @sewminadilshan7223 4 роки тому

    Hi, I have a keyboard with 37 keys and 13 wires, I found that matrix1 is with 5 wires and matrix2 is with 8 wires, but I don't get any result from continuity test, I tried switching sides too... :( can you help me please?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Can you measure it using resistance test? It may have higher resistance

    • @sewminadilshan7223
      @sewminadilshan7223 4 роки тому

      @@GoodElectronics thanks very much. Can I send 5v from rows and get it from columns? Would it work?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      @@sewminadilshan7223 If you mean the connection order, yes, you can switch between columns and rows

    • @sewminadilshan7223
      @sewminadilshan7223 4 роки тому

      @@GoodElectronics perfect! Real perfect video!!!

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      @@sewminadilshan7223 thanks!

  • @BlazeProto
    @BlazeProto 3 роки тому

    Hello) There is a problem with connecting a 32-key keyboard, some keys work and some do not. How to solve this problem? And the problem is software, the keyboard itself works, I checked.

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      Hi. You need to change the code a bit in order to work with other keyboards. There are instructions in the code with descriptions about matrix1 and matrix2, try to match these matrixes with your keyboard. If you will have any issues, feel free to ask me :)

    • @BlazeProto
      @BlazeProto 3 роки тому

      @@GoodElectronics In matrix 1, I left only the pins a0 a1 a2 a3, connecting the columns to them, in matrix 2, the pins remained as they are. For #define matrix1 I assigned the number 4, and for #define matrix2 it was number 8. Am I missing something?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      You also need to check every comment in the code that explains these functions and matrixes, and apply the necessary changes, then it will work

    • @BlazeProto
      @BlazeProto 3 роки тому

      @@GoodElectronics Can I contact you by email to show you the photos of the sketch?

    • @GoodElectronics
      @GoodElectronics  3 роки тому

      There's a contact field in my UA-cam channel I believe

  • @ooo0_ooo256
    @ooo0_ooo256 4 роки тому

    What are the value for the resistor ladder?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Every value with k will be OK, so 1k ohm will be OK as well as 100 k ohm

    • @ooo0_ooo256
      @ooo0_ooo256 4 роки тому

      ​@@GoodElectronics hi my matrix is 9x6 what i should be changed for the code? I have 49 keys on the board but only 15 pins coming out.

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      I think that you need to change things that are mentioned as matrix1 and matrix2 to your values, and the program will skip non existing keys.

    • @ooo0_ooo256
      @ooo0_ooo256 3 роки тому

      @@GoodElectronics Hello after testing the code which was ok, now I connect old yamaha keyboard to arduino and fl studio but no sound coming from it, i swipe matrix cable still no sound, do i need to short diodes like u do for it to work?

  • @devakona
    @devakona 3 роки тому

    Hi there. Awesome content my bru. Can you use the keyboard with synthesia also?

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      I don't know, you have to check if it supports midi, if so, then it will work.

    • @foxxyytofficial
      @foxxyytofficial 3 роки тому +1

      Yes you can
      I tested it

  • @abhijithspillai5530
    @abhijithspillai5530 4 роки тому

    So what I am I supposed to do if I have the same chips in the circuit

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      If they're chips on this button pcb and there's no visible connector like in my keyboard, the only way to connect it is to solder wires to these chips, which is hard.

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Sure: matszwe02@gmail.com

  • @ti7adahab799
    @ti7adahab799 4 роки тому

    Can I use Arduino Uno to make like this and i want to use it with phone's apps like (fl studio mobile -walkband)only PC

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Yes, it works on mobile, but Arduino Uno doesn't work, you will need pro micro or leonardo.

    • @ti7adahab799
      @ti7adahab799 4 роки тому

      @@GoodElectronics what if i only have Arduino Uno ??

    • @ti7adahab799
      @ti7adahab799 4 роки тому

      @@GoodElectronics someone told me UNO will work only with PC with assists program and it will not working with phone anyway.....but with Leonardo it will be working directly even with phone....is that right?? Or u have a solution for Arduino Uno ??

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Right, Arduino leonardo will be working everywhere everytime, for UNO you have to install some software and relay on it that it will work.

    • @ti7adahab799
      @ti7adahab799 4 роки тому

      @@GoodElectronics even with Leonardo am i will need the midi cable to connect with app phone or it will be directly cable from Leonardo to phone ??

  • @sangrambhumia9320
    @sangrambhumia9320 3 роки тому

    Will it work with Arduino pro mini?

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      No, only arduinos with atmega 32u4 (arduino leonardo and pro micro) can be used in this way

    • @sangrambhumia9320
      @sangrambhumia9320 3 роки тому

      @@GoodElectronics thanks you are the best !👍.

  • @justkayleeful
    @justkayleeful 4 роки тому

    this is vibin

  • @narendrawilwatikta9122
    @narendrawilwatikta9122 4 роки тому

    Hai friend, may ask to you?
    Do you used a midi to usb adapter to interfaced the midi from the PC to arduino with keyboard's tuts?
    On this project, do you used shift register circuit from the keyboard matriks to arduino?
    Thank friend, i need your help for this project, regards from Indonesia 🙏🙏

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      No, only things that I used are Arduino and a resistor ladder (can be replaced with a few resistors). Arduino is connected directly by usb.

  • @abhijithspillai5530
    @abhijithspillai5530 4 роки тому

    Sir So I Just Need To Copy And Paste This Code.......My Matrix is 7*6........How am I Supposed to do....

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      Yes, just replace matrix1 and matrix2 with your numbers everywhere that's shown in code

  • @luisfelipe-gu4ft
    @luisfelipe-gu4ft 3 роки тому

    Where I can Find the arduino Code?

  • @ahmetaslan2059
    @ahmetaslan2059 3 роки тому

    Hello, I find your videos very successful. I want you to make a video about a project. In short, the Kontakt controller has LED guides. This manual is standard for local instrument midi keyboards, s49 mk2 midi keyboards, but we haven't found a resource we can do, there is a led guide for the piano, but I don't know if it is included in the program. I am waiting for your information on how to do this. I'm so sorry for my English. :) Thank you.

    • @GoodElectronics
      @GoodElectronics  3 роки тому +1

      Hi. I don't want to make more videos about midi, because I don't use it and I don't want to learn a whole topic about midi only to make a video. I'm sorry, but midi and instruments aren't my hobby, so I won't make a video that explains perfectly aspects of midi and its usage.

    • @ahmetaslan2059
      @ahmetaslan2059 3 роки тому

      @@GoodElectronics I got it, thank you very much.

  • @najiedarma
    @najiedarma 4 роки тому

    how to code for other buttons like intro or change style

  • @nandakesav1346
    @nandakesav1346 4 роки тому +1

    It must have some millisecond delay right

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      This delay is only for clarity and to not overload usb, but otherwise it will work without this delay.

    • @mroonk_
      @mroonk_ 3 роки тому

      delay of real piano is near 80ms

  • @j4sxm1ne
    @j4sxm1ne 3 роки тому

    i can not find the code could somone give me the link?thanks

  • @hamsaviruthan.s.s2124
    @hamsaviruthan.s.s2124 4 роки тому

    Can we use arduino nano ??!

    • @GoodElectronics
      @GoodElectronics  4 роки тому +1

      Unfortunetly, arduino nano uses atmega328P, which doesn't support MIDI via usb.

  • @HarisTurki
    @HarisTurki 3 роки тому +1

    hello guys, I have recently bought an electric piano with 61 keys for 90$ and I want to turn it into a midi controller but the problem that I understand nothing about electronics and Arduino so I wonder if anyone can help me to turn my piano into a midi controller and thank you so much.

  • @diegogodoy9297
    @diegogodoy9297 4 роки тому

    hi my matrix is 8x8 what i should be changed? thx

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      I made a few changes to a code, I will gladly hear if it works :)
      // works with keyboards with matrix 8x8
      #include "MIDIUSB.h"
      int octave = 0; // add or subtract 8 for one octave
      bool currentState[64];
      bool requestState[64];
      int fixedKeys[64] = {0,8,16,24,32,40,48,56,1,9,17,25,33,41,49,57,
      2,10,18,26,34,42,50,58,3,11,19,27,35,43,51,59,4,12,20,28,36,44,52,60,
      5,13,21,29,37,45,53,61,6,14,22,30,38,46,54,62,7,15,23,31,39,47,55,63};
      void setup()
      {
      pinMode(2,INPUT); //0
      pinMode(3,INPUT); //1
      pinMode(4,INPUT); //2
      pinMode(5,INPUT); //3
      pinMode(6,INPUT); //4
      pinMode(7,INPUT); //5
      pinMode(8,INPUT); //6
      pinMode(9,INPUT); //7
      pinMode(A0,INPUT); //0
      pinMode(A1,INPUT); //1
      pinMode(A2,INPUT); //2
      pinMode(A3,INPUT); //3
      pinMode(14,INPUT); //4
      pinMode(15,INPUT); //5
      pinMode(16,INPUT); //6
      pinMode(10,INPUT); //7
      }
      void loop()
      {
      readKeys();
      writeKeys();
      delay(1);
      }
      void readKeys()
      {
      for(int i=0; i

    • @diegogodoy9297
      @diegogodoy9297 4 роки тому

      @@GoodElectronics thx sr, 10k resistor work fine? and are needed in both parts of the matrix??

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      We need them at the input pins, any value above 1k would work fine.

    • @diegogodoy9297
      @diegogodoy9297 4 роки тому

      @@GoodElectronics I know what my input pins are in my keyboard, what arduino pin would they be?

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      There should be 2 sets of cables, it doesn't matter that are inputs and what are outputs.

  • @edwarcraft2250
    @edwarcraft2250 4 роки тому

    Ammazing bro

  • @baachanel
    @baachanel 4 роки тому

    Beli nya dmna mas itu modul

    • @GoodElectronics
      @GoodElectronics  4 роки тому

      The controlled board can't be bought as far as I know, you need to make it by yourself, but it's relatively simple.