so i have this keyboard that has 61 notes and 16 wires with the scan matrix of 8x8, as shown in the photo, i keep trying to write a code for it and i've asked plenty of people on fiverr to help and i've lost a lot of money on it, i've gotten most of it refunded, but they say that they can do it but then months go by and they don't succeed, they say that it costs 150 dollars just to modify the arduino itself because they need to reprogram the small mcu on the arduino mega for it to work, im hoping to make the keyboard with the arduino mega work as a usb midi instrument i have the 16au 1728. what is needed to be reprogrammed (the small mcu that i've been told about) and can anyone get me started on the right foot with the code, a desperate man with small but wild dreams, in short i need help with the code and info on changes to the arduino itself if needed ive been told that just the code itself is not enough to get this done
Please. Take a breath. Sit down. Re-edit that so there is some punctuation. Forget what others have told you about this forum, there are people here who will help you. However. What we need is a clear unambiguous description of what you want to do. Here's what I've got from what you said above, please correct and add to it.
- You have an 8x8 keyboard matrix
- You want to use an Arduino Mega to read it
- You want the Mega to appear as a usb Midi instrument (16au 1728 is an example of one)
- you have no code yet
- you'd like guidance on how to write the code for this project
Over to you
as far as i know: i pay 15$ for the Arduino board and shipment cost and the n everything else is for free - Arduino IDE and my PC.
well, to reflash Atmega16u2 on Arduino UNO R3 or Mega2560 you need one additional board
OR
one additional program names Flip, its allow to program that chip over USB.
normally that chip acting as an USB-to-UART converter and will in PC seen as COM port, for your project it must contain UART-to-MIDI firmware
thank you ive edited the post hopefully its more readable im highly dyslexic and english is my fourth language
the price was a repetitive asking price on fiverr just programing that small mcu when i was asking people for help on their (also mac user )
did you read this https://docs.arduino.cc/hacking/software/MidiWith8U2Firmware ?
This tutorial is only applicable to Arduinos with the 8U2 chip
did you found somewhere "This tutorial is only applicable to Arduinos with the 8U2 chip and is not suitable for same chip with more memory 16u2" ?
just click " Programming 8U2 instructions" there, or here...
yes in the second line it says that its only applicable to arduinos with the 8u2 chip but i took that as a straight line not know that the 16u2 was the same chip but bigger and i dont know if that is a factor or not
i hope im not coming off in any bad way, your being helpful
is there a version of this that supports mac
ive managed to follow these steps reset the board, but as im reading these i feel like they are targeted at an actual midi port when i have the keys and i want them to be connected to the pins on the arduino via the 16 wire 8x8 scan matrix (61 notes) and be read by the arduino and the computer takes that info in via the usb port and no existing analog midi port which i feel this all heavily applies to
i think you should less thinking and more reading
yes. follow provided link, there is a guide for PC and Mac
read carefully the text on provided links. Atmega(8/16/32)u(2/4) is a microcontroller with hardware USB and depend on firmware uploaded it can acting as virtual COM port, HID Mouse, HID Keyboard, HID Joystick/Gamepad, MIDI device, etc.
you write combination of two example sketches for the second MCU on Arduino board. Mega2560 is same 8 bit MCU core (as Atmega328p) with more RAM, pin registers, EEPROM and Flash. this MCU will scan 61 keys and send corresponding MIDI commands to first MCU(16u2) where it will be packed in USB packets.
of course your program must be done and well debugged before you turn 16u2 into MIDI interface.
load key matrix scaner and test if everything is allright. then add sending MIDI commands and then reflash 16u2.
is it understandable?
everything your telling me is bringing me closer, thank you so much, do you have any links on how to code the scan matrix (how the reading works is it arrays or is there a more manual input) i lack the understanding on what to look for when it comes to it on this forum i feel like im not using the right keywords im looking at everything you supplied me with so far thank you so much for your time and effort this means a lot! (i now see an understand what you were showing me with the image)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.