Seeduino Xiao QLAB midi controller won't show up on mac

Hey everyone,

I am pretty new to this but already I made a speaker sweep tester using a nano board and a 2,5 W amplifier.
Now as I am a theatre technician I wanted to have a simple button control for my show control software QLAB, which only runs on mac. I fiddled around with some code and my good friend chatgpt to help me make a simpel USB to Midi controller using a Seeeduino XIAO ARM board but is simply doesn't show up on my mac and in my software. I managed to find a sample code from someone else who made a midi controller using 6 buttons and 5 potentiometers with the ADAfruit Tiny USB library, which doesn't give any red flags compiling but still doesn't show up when connection to my macbook with osx big sur and Qlab 4. please, send help!

#include <Arduino.h>
#include <Adafruit_TinyUSB.h>
#include <MIDI.h>

const int LED = 13;

Adafruit_USBD_MIDI usb_midi;
MIDI_CREATE_INSTANCE(Adafruit_USBD_MIDI, usb_midi, MIDI);

byte data;
byte cc_previous[5];
byte sw_previous[6];




void setup() {
  MIDI.begin(MIDI_CHANNEL_OMNI);
  pinMode(LED, OUTPUT);
  digitalWrite(LED, LOW);
  analogReadResolution(6);
  
  for(int i = 0; i < 6; i ++) {
    pinMode(5 + i, INPUT_PULLUP); 
  }

}

void loop() {
  MIDI.read();
  readPots();
  readSw(); 
}


void readPots() {
  for (int i = 0; i < 5; i ++) {
    data = analogRead(A0 + i) << 1;
    if (data != cc_previous[i]) {
      cc_previous[i] = data;
      MIDI.sendControlChange(1 + i, data, 1);
      delay(3); 
    }
  }
}

void readSw() {
  for (int i = 0; i < 6; i ++) {
    data = digitalRead(5 + i); 
    if(data != sw_previous[i]) {
      sw_previous[i] = data; 
      MIDI.sendNoteOn(60 + i, (1 - data) * 127, 1); 
      digitalWrite(LED, data); 
      delay(3); 
    }
  }
}

I don't have that board

did you check Getting Started | Seeed Studio Wiki

Enter Bootloader Mode

Sometimes the Seeed Studio XIAO SAMD21 port may disappear when user programming process fails. we can solve this problem by the following operation:

  • Connect the Seeed Studio XIAO SAMD21 to your computer.
  • Use tweezers or short lines to short the RST pins in the diagram twice.
  • The orange LED lights flicker on and light up.

At this point, the chip enters Bootloader mode and the burn port appears again. Because the samd21 chip has two partitions, one is the Bootloader and the other is the user program. The product will burn a bootloader code in the system memory when it leaves the factory. We can switch modes by performing the above steps.
XIAO-reset

Sorry I meant SAMD21... whoops

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.