fbpx
Skip to main content

MIDI Forum

How to make a USB m...
 
Notifications
Clear all

How to make a USB midi to Bluetooth adapter

13 Posts
13 Users
1 Reactions
21.9 K Views
Sam
 Sam
Posts: 1
New Member
Topic starter
 

Does anyone know how to make a wireless MIDI to Bluetooth adapter? I have a USB B input and wish to make it wireless. Looking at making one for a project. Any advice?

 
Posted : 29/01/2019 10:48 am
Clemens Ladisch
Posts: 321
Reputable Member
 

As hardware, you need a BLE radio device, and a USB host (or OTG) device, and a microcontroller. (Both BLE and USB devices are typically integrated in a microcontroller, but I am not aware of any microcontroller that integrates both.)
Then you need to write software: a BLE-MIDI implementation, and host support for USB MIDI.

 
Posted : 30/01/2019 9:34 am
Andrew Mee
Posts: 49
Admin
 

You can do this perhaps using an Arduino DUE?
https://learn.sparkfun.com/tutorials/midi-ble-tutorial/create-a-basic-ble-peripheral

and
https://github.com/bbx10/USBH_MIDI/tree/due

Would require a bit of work though 🙂

 
Posted : 18/02/2019 7:31 pm
bu
 bu
Posts: 1
New Member
 

Three versions in this article. None look like easy builds.

https://www.hackster.io/joebowbeer/usb-ble-wireless-midi-adapters-25dd31

 
Posted : 19/02/2019 1:46 am
Nero
 Nero
Posts: 1
New Member
 

Teensy 3.6 if you want a USB host with full midi capability otherwise a teensy 3.2 or 3.5 will do and has midi over usb built in, then the Adafruit nRF8001 shield works great with the BlePeripheral library if you follow the SparkFun tutorial posted above you can easily create A midi peripheral.

 
Posted : 09/03/2019 8:53 pm
Rodney
Posts: 1
New Member
 

I am not sure I am qualified to answer this but for what its worth my limited experience with using the audio (not midi) over bluetooth, bluetooth seems to introduce a lag and playing the instrument while listening on a bluetooth headset was not practical. Therefore I would imagine the same would go for MIDI over bluetooth. Since MIDI is real time critical you may be unhappy with the result so my gut feeling is that you may be wasting your time. Rod

 
Posted : 05/04/2019 11:36 am
Fuegovic
Posts: 1
New Member
 

It is easy to do with serial midi if available. With usb host it would probably be much harder.

I made a couple of adapters serial midi to BLE using an ESP32. Super easy, it only takes 4 wires a couple of line of codes with the midi pipe function of the "control surface" library.

The latency is minimal when I use it to play on my iPad, it's barely noticeable.

I posted the code on the control surface library github page if anyone is interested:

Easy DIN5 MIDI (Serial MIDI) to MIDI BLE on ESP32

 
Posted : 05/12/2020 8:41 pm
Jürg
Posts: 18
Eminent Member
 

A ESP32 / BLE example:

#include
#include

void setup()
{
pinMode(17, OUTPUT);
pinMode(16, INPUT);
pinMode(2, OUTPUT); // grün
pinMode(4, OUTPUT); // rot
Serial.begin(115200);
Serial2.begin(31250, SERIAL_8N1);
BLEMidiServer.begin("Basic Midi device");

Serial.println("setup");
}

bool blink = false;
unsigned long red = 0;
unsigned long green = 0;
unsigned long ms = 0;
bool connected = false;

void loop()
{
ms = millis();
//digitalWrite(4, !red);
if (ms >= green || ms + 100 < green)
green = 0;
digitalWrite(2, !green);
digitalWrite(4, BLEMidiServer.isConnected());

if (BLEMidiServer.isConnected() != connected)
{
if (connected)
Serial.println("wifi connection is broken");
else
Serial.println("wifi is connected");
connected = !connected;
/*
BLEMidiServer.noteOn(0, 69, 127);
delay(1000);
BLEMidiServer.noteOff(0, 69, 64);
delay(1000);
*/
}

while (Serial2.available())
{
// im 250 ms Takt wird 0xFE gelesen (active sensing)
char ch = Serial2.read();
Serial2.print(ch);
//Serial.println(ch, HEX);
green = millis() + 2;
}
}

 
Posted : 15/04/2021 11:38 pm
Joseph
Posts: 4
New Member
 

check this video, maybe it will help u)

 
Posted : 21/04/2021 10:40 pm
paul
 paul
Posts: 2
New Member
 

You can build one with a Raspberry Pi Pico W and a few connectors. Project details here: https://github.com/rppicomidi/ble-midi2usbhost

 
Posted : 26/07/2023 8:38 am
jessypinkman jessypinkman
Posts: 3
New Member
 

Try to make, like in video - https://www.youtube.com/watch?v=5peRGrayIJA&ab_channel=KontinuumLAB

I think it will be helpful

This post was modified 6 months ago by jessypinkman jessypinkman
 
Posted : 20/03/2024 1:50 am
Ayesha khan reacted
Posts: 1
New Member
 

Creating a USB MIDI to Bluetooth adapter involves some technical knowledge and skill in electronics. Here's a basic overview of how you might approach it:

  1. Gather Components: You'll need a USB MIDI interface, a Bluetooth module, and necessary supporting components like resistors, capacitors, and a microcontroller.

  2. Select a Microcontroller: Choose a microcontroller that can communicate with both USB and Bluetooth. Arduino boards are commonly used for such projects due to their versatility and ease of programming.

  3. Understand USB MIDI Protocol: USB MIDI follows a specific protocol for communication. You'll need to program your microcontroller to understand and interpret MIDI messages sent over USB.

  4. Choose a Bluetooth Module: Select a Bluetooth module that supports MIDI over Bluetooth (BLE MIDI). Modules like the HM-10 or HM-11 are commonly used for Bluetooth MIDI applications.

  5. Program the Microcontroller: Write code for your microcontroller to read MIDI data from the USB interface and transmit it over Bluetooth using the selected Bluetooth module. You may need to use libraries or write custom code to handle MIDI data.

  6. Power Supply: Ensure that your circuit has a stable power supply to operate both the USB MIDI interface and the Bluetooth module. This may involve using voltage regulators or batteries depending on your design.

  7. Testing and Troubleshooting: Once assembled, test your adapter with MIDI devices and Bluetooth-enabled devices to ensure proper functionality. Debug any issues that arise during testing.

  8. Enclosure: Consider housing your adapter in a protective enclosure to prevent damage and make it more portable.

Remember that building such a device requires knowledge of electronics, programming, and soldering. If you're not experienced in these areas, you may want to start with simpler projects or consider purchasing a pre-made MIDI to Bluetooth adapter. Additionally, ensure that your project complies with any relevant safety standards and regulations. removed link

 

This post was modified 6 months ago by Simran Sharma
 
Posted : 28/03/2024 12:11 am
Posts: 2
New Member
 

Hello

I've previously worked on a project like this. You can utilize a Bluetooth transmitter in conjunction with a MIDI-to-USB adaptor. First, attach your USB B input to a USB host using a USB shield, such as an Arduino or Raspberry Pi. Next, send the data wirelessly using a Bluetooth module—the HC-05 or something similar—into the world. Writing code is required to manage the MIDI data transfer. Online lessons are available to walk you through each step of the procedure. I hope your project turns out well!

Regards

David Warner

<a href=" removed link " target="_blank" rel="noopener">Purva Aerocity

 
Posted : 14/05/2024 11:37 pm
Share: