USB Midi device with proximity sensor

Hi,
I'm trying to build a device that has a proximity sensor and behaves like a USB MIDI device, like the Arduino Micro or Leonardo does.

What is your advice on the hardware I should use?
Should I use a Arduino Nano 33 BLE Sense for the proximity sensor, with some sort of shield that make it behave as USB MIDI device (in this case, which shield should I use)? Or should I use a Arduino Micro (or Leonardo) with an external proximity sensor?
Thanks!

I think the packaging will determine where the proximity sensor is relative to the MCU. My hunch is it should be external.

Hi @rexp.

You don't need a shield. The Nano 33 BLE Sense board has the required native USB capability to act as a USB MIDI device without any additional hardware, and an Arduino library that makes it relatively easy to implement this in your Arduino sketches.

The AVR family of microcontrollers used by the Micro and Leonardo have been in the Arduino ecosystem from the beginning and are much beloved by the Arduino community. So you will always find the best level of support when using these boards in appropriate applications.

On the other hand, these microcontrollers have significantly less computing resources (processor, memory) than the ones used on the more modern boards like the Nano 33 BLE Sense. So if you have a project that will require such resources, then the Micro/Leonardo may not be up to the task.

Thank you @sonofcy and @ptillisch for your advices.

That's a good news the Nano 33 BLE may be used as a USB MIDI device!

And Indeed, I will analyse the packaging to determine if the proximity sensor can be on the board or must be delocalized.