genuinequality

Download free music MP3s on genuine quality, the world’s largest online music catalogue, powered by your scrobbles. Free listening, videos, photos, The world’s largest online music catalogue, powered by your scrobbles. Free listening, videos, photos, stats, charts, biographies and concerts. stats, charts, biographies and concerts.

Saturday, June 28, 2025

XIAO USB Device to Serial MIDI Converter

Having recently revisited the CircuitPython USB to Serial MIDI Router as part of XIAO ESP32-C3 MIDI Synthesizer – Part 2 it reminded me I didn't really have a simple Arduino USB device to serial MIDI for the XIAO. So this is filling that gap. …
Read on blog or Reader
Site logo image Simple DIY Electronic Music Projects Read on blog or Reader

XIAO USB Device to Serial MIDI Converter

By Kevin on June 28, 2025

Having recently revisited the CircuitPython USB to Serial MIDI Router as part of XIAO ESP32-C3 MIDI Synthesizer – Part 2 it reminded me I didn't really have a simple Arduino USB device to serial MIDI for the XIAO. So this is filling that gap.

Warning! I strongly recommend using old or second hand equipment for your experiments.  I am not responsible for any damage to expensive instruments!

These are the key Arduino tutorials for the main concepts used in this project:

  • XIAO ESP32-C3 MIDI Synthesizer – Part 2
  • XIAO SAMD21, Arduino and MIDI – Part 4

If you are new to Arduino, see the Getting Started pages.

Parts list

  • XIAO SAMD21
  • Serial MIDI module
  • Breadboard and jumper wires

The Circuit

A 3V3 serial module can be hooked up to the TX/RX pins of the XIAO as shown above.

The Code

This is largely a simplification of the code used for XIAO SAMD21, Arduino and MIDI – Part 4 to use just the standard serial port and USB device MIDI.

There is one option at the top to determine how the serial port ought to be routed. There are two options:

  • Serial to USB. This allows a full bi-directional serial <-> USB.
  • Serial to Serial. This allows both USB and Serial RX to route to Serial TX.

In the other direction, USB always gets routed to the Serial port.

Find it on GitHub here.

Closing Thoughts

Often I find I've missed out a simpler use-case in pursuit of a more complex one. This was one of those times so hopefully that is now fixed.

In the above photo I'm using it as a USB to serial router for my M5 Stack Synth module based on the SAM2695 that I've been playing with. The Synth is powered from the XIAO's 5V and GND and connected to the TX/D6 pin. This allows me to use USB MIDI which gets routed to the M5 Synth hanging off the XIAO TX pin.

There is more on that particular synth chip here: XIAO ESP32-C3 MIDI Synthesizer – Part 3.

Kevin

Comment
Like
You can also reply to this email to leave a comment.

Simple DIY Electronic Music Projects © 2025.
Unsubscribe or manage your email subscriptions.

WordPress.com and Jetpack Logos

Get the Jetpack app

Subscribe, bookmark, and get real‑time notifications - all from one app!

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com Logo and Wordmark title=

Automattic, Inc.
60 29th St. #343, San Francisco, CA 94110

Posted by BigPalaceNews at 8:57 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

About Me

BigPalaceNews
View my complete profile

Blog Archive

  • September (99)
  • August (116)
  • July (96)
  • June (100)
  • May (105)
  • April (95)
  • March (131)
  • February (111)
  • January (104)
  • December (98)
  • November (87)
  • October (126)
  • September (104)
  • August (97)
  • July (112)
  • June (113)
  • May (132)
  • April (162)
  • March (150)
  • February (342)
  • January (232)
  • December (260)
  • November (149)
  • October (179)
  • September (371)
  • August (379)
  • July (360)
  • June (385)
  • May (391)
  • April (395)
  • March (419)
  • February (356)
  • January (437)
  • December (438)
  • November (400)
  • October (472)
  • September (460)
  • August (461)
  • July (469)
  • June (451)
  • May (464)
  • April (506)
  • March (483)
  • February (420)
  • January (258)
  • December (197)
  • November (145)
  • October (117)
  • September (150)
  • August (132)
  • July (133)
  • June (117)
  • May (190)
  • January (48)
Powered by Blogger.