Hello,
I have a Meowsic toy piano that I want to equip with a MIDI out, just for the fun of it.
Writing code isn't a problem, I'm experienced at it and I know the MIDI specs. Hardware, on the other hand, is a big issue for me. I have very little knowledge of how proper circuiting is done.
Inside Meowsic, the parts relevant to the project are two ribbon cables coming from one of the boards to... well... another board, consisting of 8 and 6 wires accordingly. These appear to be a scan matrix for keys of the actual keyboard and some other buttons. By unplugging and re-plugging some, I was able to determine that, for example, the leftmost wire controls each 8th key, then the next one controls each next 8th key, etc.
I'm fairly clueless when it comes to hardware, but a friend of mine had a stash of unused Arduino Uno clones that he gave me, so this is what I'm using here. Unfortunately, Uno has only 6 analog inputs, so I'll probably have to use two of them and send data from one to another. I don't know yet, I'll cross that bridge when I come to it. Anyway, I plan to read voltages coming along these wires and output MIDI signals from the Uno (note on / note off).
I determined that need to read voltages of 12 wires in total (8 from one of the ribbon cables and 4 from the other one). Since it's a scan matrix, it probably needs to happen reasonably fast. I don't know the voltages in the wires yet. I've skimmed through some tutorials about building a basic voltmeter, but like I wrote, I have very little knowledge when it comes to electronics. I don't have a breadboard, but I do have a bunch of standalone wires that I can put to use (just tie/tape them together for now, I guess).
Do I just slice the ribbon cable in half, connect one part of each wire to the GND on the Arduino and the other part to a different Analog In, and that's it (to close the circuit once again)? Or should the circuit be made differently? The wiring inside is honestly a mess, I don't even know what serves as the ground. Basically, what I want to do is to "cut into" these ribbon cables and read what's coming through them, without breaking the functionality of the toy.
Any advice or general direction will be greatly appreaciated! I don't want to fry the board or break things; I already need to solder some of the wires on the toy back into place because the thing wasn't really built to be disassembled one day.