Go Down

Topic: MIDI head tracker (Read 259 times) previous topic - next topic

enzobbom

Hi,

I am trying to assemble the head tracker from this project https://git.iem.at/DIY/MrHeadTracker/wikis/mrht-bno055 which consists originally of a sensor Adafruit BNO055 (https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/overview), an Arduino Pro Mini (https://store.arduino.cc/usa/arduino-pro-mini) for processing and sending serial information and a Arduino USB2 Serial Micro (https://git.iem.at/DIY/MrHeadTracker/wikis/mrht-bno055) to connect the Pro Mini to the PC. Unfortunately, I didn't find the USB2 Serial Micro to buy, so I bought an FTDI board (FT232RL). The problem is that the head tracker was projected to be an plug-and-play MIDI device without using any software such as Hairlass MIDI and, while the USB2 Serial has an MCU which can pe reprogrammed with HIDUINO firmware to appear as a MIDI device, the board I bought doesn't have.

Would anybody have any tip about it? I still can't find the Arduino USB2 Serial Micro to buy and I thinking of changing my hardwares. The options would be finding another USB conversor which has an AVR chip or finding a board which has a second AVR chip used as the USB controller. This second option is not so good because the idea is to have a compact device after the mounting.

Thanks!


gdsports

Replace the Pro Mini and USB serial with an Arduino Micro. The Micro uses a 32u4 microcontroller so it has a native USB port. There is a library to send MIDI over the native USB port. No need for hairless.

https://www.arduino.cc/en/Reference/MIDIUSB

There are many other boards with the 32u4 chip such as the Pro Micro, Leonardo, ItsyBitsy 32u4, and Feather 32u4. Any one can be used instead of the Arduino Micro.

enzobbom

Replace the Pro Mini and USB serial with an Arduino Micro. The Micro uses a 32u4 microcontroller so it has a native USB port. There is a library to send MIDI over the native USB port. No need for hairless.

https://www.arduino.cc/en/Reference/MIDIUSB

There are many other boards with the 32u4 chip such as the Pro Micro, Leonardo, ItsyBitsy 32u4, and Feather 32u4. Any one can be used instead of the Arduino Micro.

Thanks for your answer, gdsports! I wanted to ask something more, then. In the repository of the project they provide the  code to upload in the Pro Mini, which uses only the MIDI library, not the MIDIUSB. It is here: https://git.iem.at/DIY/MrHeadTracker/tree/master/Arduino/MrHeadTrackerBNO055Switchable. Using the 32u4 chip requires that I use specifically the MIDIUSB library without using the HIDUINO firmware or would I still be able to use the code in the link and make the step of reprogramming the MCU with HIDUINO firmware? I ask this because I wanted to follow their steps as I am completely new to arduino and would not have enough time to make/change the code until the date I have to finish the project. The head tracker is only the beggining of it all...

Another reason why I ask this is because you mentined Leonardo... and in this link https://github.com/ddiakopoulos/hiduino, it says:

"HIDUINO takes advantage of Arduino boards where a second AVR chip is used as the USB controller, so it won't work with single chip variants (e.g. Leonardo), nor older boards that use an FTDI chip as USB controller (e.g. Duemilanove)."

Well, sorry for the many questions.

Thank you very much!

Enzo.

gdsports

Yes, a number of changes to source code will be required to switch from MIDI to MIDIUSB.

I have never used HIDUINO. I do not know how to solve this problem because you really do need a 16u2 to use HIDUINO.

enzobbom

Yes, a number of changes to source code will be required to switch from MIDI to MIDIUSB.

I have never used HIDUINO. I do not know how to solve this problem because you really do need a 16u2 to use HIDUINO.

Well, I'll see what is the best to do... Thank very much. You were very helpful

Go Up