How to make a simple MIDI Controller with Arduino that works on iOS

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 68

  • @JoeParkerAndThePower
    @JoeParkerAndThePower Рік тому +1

    Right, so as a long time analogue musician I've only been getting into Ableton etc for a couple of months. Been starting to think about how to perform it all live as I remembered you can just map scene controls to MIDI notes. But how would I hack a custom sceneswitcher with the odd CC control for filters etc?
    Turns out 30 secs of googling brought me here and this is the *perfect* video. To the point but clear on the details where it mattered. Fantastic and thanks very much x

    • @mobypixel
      @mobypixel  Рік тому

      Awesome! I'm glad it helped!

  • @TomBrinton
    @TomBrinton Рік тому +1

    Very clearly explained and helped me get unstuck. Thanks!

    • @mobypixel
      @mobypixel  Рік тому

      Thanks, Tom! Good luck with your projects.

  • @cani77
    @cani77 Рік тому +1

    Easy Clear and Complette. THX (from France)

  • @katielin019
    @katielin019 9 місяців тому

    Thanks so much for this! I have an iPhone with the USB-C port: do you happen to know if I still need the camera connect kit for this to work on my phone?

    • @mobypixel
      @mobypixel  9 місяців тому

      On my iPad with USB-C it doesn't require the camera connect kit, but you do need power going to the Arduino/MIDI Controller. I have a USB power bank that I plug my MIDI Controllers into, and I plug the power bank into my iPad's USB-C port. There might be a way to plug it in directly, but I'm not certain.

  • @johnm.gerard1718
    @johnm.gerard1718 2 роки тому +1

    GREAT! Just what I wanted. I am going to have to watch this video many times to see all components and connection needed. On thing I wonder is how you change instrument sounds.

    • @mobypixel
      @mobypixel  2 роки тому

      Thanks for checking out the video! To change instruments I use the iOS app's UI but I think other controllers may use a MIDI Program Change message.

  • @gypsyofcruzz
    @gypsyofcruzz 2 роки тому +1

    hi bro, great channel, does this tutorial can be used for M1 macbook cos my device is not detecting the arduino leonardo midi controller what i used on ableton in my windows pc. thanks ...

    • @mobypixel
      @mobypixel  2 роки тому +1

      It should work. I'm using an M1 Mac. If you open GarageBand, go to Settings > Audio/MIDI you should see if the MIDI input is detected. I guess make sure both libraries are added in the Arduino IDE, Make sure you have the correct board and port selected in the IDE. It looks like my port is set to /dev/cu.usbmodemMIDI1 (Arduino Leopnardo) and Programmer is set to AVRISP mkII. I'm not sure I took any additional steps to have the device detected as MIDI vs just a usb device. Also try restarting your computer, that sometimes solves seemingly unrelated issues. This tutorial might be a good one to cross reference: www.instructables.com/Building-an-Arduino-MIDI-Controller/ Good luck and let me know how it goes!

    • @gypsyofcruzz
      @gypsyofcruzz 2 роки тому

      @@mobypixel thanks a lot bro, I was doing exactly the same, it works. I used an arduino pro micro, to test it and 3 potentiometers using GarageBand and also Logic Pro is running fine, but it’s Xmas and my wife will kill me if I’m continues in the computer xd, Merry Xmas for u too and thanks for replay my questions. Regards of a Cuban from Poland

  • @ZdraveBass
    @ZdraveBass Рік тому

    Thanks for the video! I'm trying to build a velocity sensitive MIDI marimba with 32 piezo inputs, I'm gonna need all the info I can get. Do I need a different arduino for that or can you connect several Leonardos to get the desired amount of inputs?

    • @mobypixel
      @mobypixel  Рік тому +1

      I think you might be able to use one Arduino, but you'll need to look into multiplexers for expanding your analog inputs.

    • @mobypixel
      @mobypixel  Рік тому +1

      The Teensy boards might be a good option too. I think the Teensy 4.1 has 18 analog inputs.

    • @ZdraveBass
      @ZdraveBass Рік тому

      @@mobypixel Judging by the cigar box controller you made (very cool btw), putting 32 keys on the Mega with a few multiplexers shouldn't be an issue, can't wait for the parts to arrive so I can start building it

  • @erikpoephoofd
    @erikpoephoofd 2 роки тому +1

    Awesome! Thank you so much, Imma build one

    • @mobypixel
      @mobypixel  2 роки тому

      Sweet! Good luck with your project.

  • @kronozytv9265
    @kronozytv9265 2 роки тому

    Nice video man! Idk how I get here, I was playing epic orchestra and asking me, who made this beautiful game? But after a few clicks I am here! Thanks for making epic orchestra and the other beautiful games!

    • @mobypixel
      @mobypixel  2 роки тому

      That's awesome! Thanks for checking out the games and videos!

  • @artinthecity3508
    @artinthecity3508 3 місяці тому

    Thanks always. BTW do you have this for Android?

    • @mobypixel
      @mobypixel  3 місяці тому +1

      @@artinthecity3508 No, unfortunately I have not worked with MIDI on Android. It looks like it would be similar only you would need a powered usb hub to provide power to the microcontroller.

  • @eross21
    @eross21 7 місяців тому

    can this be powered by the usb iphone connector? or do you always need to run power supply to the leonardo board?

    • @mobypixel
      @mobypixel  7 місяців тому

      I'm using Apple's camera connect kit that has an external lightning power line. That is what is powering the Arduino while keeping the iPhone charged. On newer iPads with USB-C you can use a USB power bank to send multiple USB devices to the iPad while powering them. So yes, you will need some external power supply for the Arduino. The iPhone's connecter won't send that voltage to your board.

    • @eross21
      @eross21 7 місяців тому

      @@mobypixel oh, so it gets power from the usb adapter? you don’t have to plug a do power supply into the onboard power jack?

    • @mobypixel
      @mobypixel  7 місяців тому +1

      @@eross21 That is correct. The Arduino is sending MIDI and getting power from the same Micro USB cable. The USB cable from the Arduino goes into the camera connect kit along with power from a lightning cable, and that plugs into the iPhone.

    • @eross21
      @eross21 7 місяців тому

      @@mobypixel oh perfect ! thanks so much

  • @realtugless8810
    @realtugless8810 Рік тому

    great video. It's definitely got me working towards my goal. My question is: How do I add multiple buttons in the code? thanks

    • @mobypixel
      @mobypixel  Рік тому +1

      Awesome! For multiple buttons you would just duplicate that method, change the name to button2, and change the PIN number to the one you are using. I did another tutorial that kind of goes over the next steps for making it into a midi controller. ua-cam.com/video/K0cbeFYHCZ8/v-deo.html good luck with your project!

  • @sillyseal47
    @sillyseal47 4 дні тому

    My Mac doesn't recognize my Leonardo as a MIDI device? I've tried serial to midi but all of the apps that support Mac OS are outdated.

    • @mobypixel
      @mobypixel  4 дні тому

      Here are a few things to try: 1) Make sure the usb type is MIDI or Serial+MIDI. 2) Open the Audio MIDI setup app on your Mac to see if it is connected but disabled. 3) If you are getting compiler errors you might need to install the MIDIUSB library linked in the description. 4) Restart your Mac. I've had MIDI input mysteriously stop working and work again after a restart. Good luck and let me know how it goes!

  • @cornett0
    @cornett0 Рік тому

    Thanks for sharing :)

  • @J-Emre
    @J-Emre 2 роки тому +1

    great project bro 💯 i made for virtual dj and work perfectly

    • @mobypixel
      @mobypixel  2 роки тому +1

      Awesome! I'm glad it worked out!

  • @rb95403
    @rb95403 4 місяці тому

    Good, but you dont explain how to get to the midi library from the arduino app

    • @mobypixel
      @mobypixel  4 місяці тому

      Thanks for the heads up! I'll add a note in the description. There are steps for getting it installed and imported in the Control Surface page. tttapa.github.io/Control-Surface-doc/Doxygen/d8/da8/md_pages_Installation.html

  • @SonuKumar-vy1tq
    @SonuKumar-vy1tq Рік тому +1

    how can i add additional buttons with different tunes ?

    • @mobypixel
      @mobypixel  Рік тому +1

      For multiple buttons you would just duplicate that method, change the name to button2, and change the PIN number to the one you are using. I did another tutorial that kind of goes over the next steps for making it into a midi controller. ua-cam.com/video/K0cbeFYHCZ8/v-deo.html good luck with your project!

  • @cristi6257
    @cristi6257 6 місяців тому

    where does the sound come frome? do you use a buzzer or a speaker?

    • @cristi6257
      @cristi6257 6 місяців тому

      i want to make a laser harp and i have problems with making the sound

    • @mobypixel
      @mobypixel  6 місяців тому

      The sound is coming from the iPhone. I made a screen recording on the device and used that audio for the video.

    • @mobypixel
      @mobypixel  6 місяців тому

      ​@@cristi6257 If you are creating an application that generates sound, you could wire in an audio jack and ran a cable to an amp, headphones, or audio interface. If you are making a MIDI controller it won't produce sound. It just controls the virtual instruments of the application you are using it with. Depending on the micro controller you use some of them also support audio over USB.

    • @cristi6257
      @cristi6257 6 місяців тому

      @@mobypixel do u have any idea how i con do this with some speakers?(jack plug)

    • @cristi6257
      @cristi6257 6 місяців тому

      @@mobypixel I want to make a laser harp, I use arduino leonardo, the idea behind it is that I have a laser diode and a photoresistor and the moment the laser wave no longer reaches the photoresistor I want it to make a sound and I would like to use some speakers to make the sound

  • @joelthurner3682
    @joelthurner3682 2 роки тому

    😁 splendid tutorial thanks

    • @mobypixel
      @mobypixel  2 роки тому

      Awesome! Thanks for watching, Joel!

  • @mylifemyrules3759
    @mylifemyrules3759 Рік тому

    Hi .. Brother plz help me out ....with simple arduino Uno usb midi project. ...... im. Not getting any Signal on ipad Basically i want to use arduino usb midi with ipad
    Any Suggestion ???? Waiting for ur rply

    • @mobypixel
      @mobypixel  Рік тому

      The Uno has some additional configuration steps using the ATmega16U2: tttapa.github.io/Control-Surface-doc/Doxygen/d8/d4a/md_pages_MIDI-over-USB.html In the conclusion section, they mention that the Teensy or Arduino Leonardo/Micro might be a better fit.

  • @rb95403
    @rb95403 4 місяці тому

    Wow!

  • @FirstnameLastname-wt5sd
    @FirstnameLastname-wt5sd Рік тому

    Does this work with the arduino nano ?

    • @mobypixel
      @mobypixel  Рік тому +1

      I've not used the Nano, but it is listed on Control Surface's supported boards. I think it would work!

  • @ShivrajKarkera91
    @ShivrajKarkera91 9 місяців тому

    Getting error:
    Compilation error: 'cs::USBMIDI_Interface midi' redeclared as different kind of symbol

    • @ShivrajKarkera91
      @ShivrajKarkera91 9 місяців тому

      Change the variable name from "midi" to anything else that is not reserved.

    • @mobypixel
      @mobypixel  9 місяців тому

      @@ShivrajKarkera91 Did that solve it? It sounded like maybe the library was included twice.

    • @ShivrajKarkera91
      @ShivrajKarkera91 9 місяців тому

      @@mobypixel Yes that instantly solved the problem. Thanks for the awesome video. Your explanations are very interesting.

  • @berkayaltok835
    @berkayaltok835 Рік тому

    its work on windows pc?

    • @mobypixel
      @mobypixel  Рік тому +1

      Sorry for the delay. Yes, it should work on PC but you can check the Control Surface GitHub to make sure.

    • @berkayaltok835
      @berkayaltok835 Рік тому

      @@mobypixel no problem, thx for answer

  • @6680724
    @6680724 2 роки тому

    So I can control my ac of my car by wiring and connect it to my iPad or iPhone ?

  • @TheARTofMining
    @TheARTofMining Рік тому

    Hi Great simple tutorial. HOw much would be inolved to take this to piezo trigger to get midi velocity? I want to make a crude midi foot pedal that controls my bass drum note (#40 in my case on Ch 10). I was hoping to use my existing UNO board based on this video - ua-cam.com/video/CYx8DgdKl64/v-deo.html Thank you !

    • @mobypixel
      @mobypixel  Рік тому

      I think Arduino has some code examples for reading a piezo like that. You would just need to play the MIDI note from the Update loop and account for the bounce in values to keep the trigger from reading multiple hits simultaneously. Good luck with your project!

    • @TheARTofMining
      @TheARTofMining Рік тому

      @@mobypixel Cheers.