I am working on a prototype device which I am now on my 2nd board iteration and moving away from it being a shield and wired to an arduino mega2560 board.
I have used the freely available Arduino mega 2560 schematic and incorporated this into my project.
I notice that there are 2 µcontrollers on this schematic, (Atmega2560 & Atmega16U2)
I understand that the arduino bootloader resides on the 16u2 and it connect to the usb connector. the 16u2 then programs the 2560 with the code you send it.
On the searching I have done I'm getting myself terribly confused. Someone suggested to me that I could in fact do away with the Atmega16u2 all together (this would drastically reduce my component count and free up valuable board space)
However, I was intending to flash a boot loader that would make the device appear to a computer (over usb) as a midi controller device.
I am unclear if I can indeed interface a usb port directly to the ATmega2560, and upload my sketch code AND a midi-over-usb boot loader.. I doubt the advice because the ATmega16U2 (i think) has a built in UART to communicate via usb and that the 2560 does not...
Sorry If this all sounds vague, I'm searched out and confused...