Arduino MIDI Tutorial

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • Let's learn how to use Arduino as a MIDI device so that we can do automation in DAW using sensors!!
    ---
    Code
    github.com/tttapa/Control-Sur...
    Turning non-Leonardo Arduino into a MIDI Device
    • Turn Arduino Uno into ...
    ---
    Materials Needed (About $55 total or less. Very affordable!!)
    -Arduino Leonardo
    www.amazon.com/Arduino-org-A0...
    -Potentiometers (Knob sensors)
    www.amazon.com/Breadboard-Fri...
    OR
    www.amazon.com/Plusivo-Potent...
    -Photoresistors (Light sensors)
    www.amazon.com/eBoot-Photores...
    -Wires & Breadboard
    www.amazon.com/Standard-Jumpe...
    -Resistor kit, which apparently includes 1 photoresistor for free
    (You could just borrow a 10k ohm resistor from electronics lab if you have access to one)
    www.amazon.com/BOJACK-Resisto...
    ---
    Social Media (please feel free to share your projects!):
    / takumi_ogata
    / takumiogata
    ---
    0:00 - Intro
    0:44 - What is Arduino?
    1:37 - What to Buy?
    2:16 - Let's connect!
    4:23 - Preparing the Software!
    6:54 - Let's Do Automation with Sensors!
    8:40 - What's Next?

Комментарии • 47

  • @SoundSimulator
    @SoundSimulator  2 года назад

    NOTE: The example code in this tutorial will not work with sensors that either use digital pins (for example ultrasonic sensors. Some distance sensors use analog pins though!) or SCL+SDA pins (for example some accelerometers). There should be workarounds, but I have to look into it for a possible future video. Please make sure the sensors that you're going to buy use analog pins!! Google Imaging the sensor will give you a diagram.

  • @ethanjiinkies5450
    @ethanjiinkies5450 Год назад +3

    As soon as my finals week is over I’m building this system. Thank you so much, this is so exciting

  • @albertsalo895
    @albertsalo895 10 месяцев назад +2

    please come back and make more videos! love your tutorials!

    • @SoundSimulator
      @SoundSimulator  10 месяцев назад +1

      I just recorded a voice-over yesterday!! Will be back soon

    • @sivoltage
      @sivoltage 2 месяца назад

      Yes! More of these types of videos.
      I think many more people are into this kind of thing now. Great stuff.

  • @GertBoers
    @GertBoers 2 года назад +3

    I second that: this channel has excellent content!

  • @asharmusic2051
    @asharmusic2051 2 года назад +1

    Hey I brought an arduino clone ch340, ultrasonic sensor and photo resistor from my local market and made it work with pure data by watching all of your tutorials! Had lots of fun! Thank you for this gold mine of a channel! Now hunting for a softpot membrane around here, desperately want to make that ribbon controller.

    • @SoundSimulator
      @SoundSimulator  2 года назад

      That's awesome! I'm very happy to hear that you're having fun making sounds with sensors!! Thank you for letting me know!

  • @Cheecken
    @Cheecken 2 года назад +3

    This channel is unbelievably obscure! Really good content man, found you through the Pure Data tutorials which I will work through in a bit :D

    • @SoundSimulator
      @SoundSimulator  2 года назад +1

      Thank you so much for checking out this channel! I hope you'll enjoy learning Pure Data!!

  • @eFiddle
    @eFiddle 2 года назад +1

    I throw away an Uno and got a Leonardo because of you, nice video. Subscribed !!

    • @SoundSimulator
      @SoundSimulator  2 года назад +1

      I hope you didn't actually throw away your Uno, haha! Thank you for watching! I'm glad to hear that the tutorial was helpful!

  • @studiospiraluniverse
    @studiospiraluniverse 2 года назад +1

    When knowledge meets creativity and the will to share. Excellent tutorial again, thanks a lot!

    • @SoundSimulator
      @SoundSimulator  2 года назад +1

      Thank you so much for your continued support!! I'm glad you liked this tutorial too!

  • @ardhouse
    @ardhouse Год назад +1

    man you're hero, thx for the turorial, you explain it well, i can understand fast

  • @adambeedle
    @adambeedle 2 года назад +1

    Sounds awesome mate great video!

  • @cristi6257
    @cristi6257 2 дня назад +1

    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

    • @SoundSimulator
      @SoundSimulator  2 дня назад

      That sounds like a fun idea!
      If you want to add speakers to the project, I recommend using something like the Daisy Seed (I have to put a disclaimer that I work at Electrosmith!) since it'll allow you to make the synth a standalone instrument (so need for a laptop in order to play the synth like in this video).
      Good luck and have fun!!

  • @fedeboretti
    @fedeboretti 2 года назад +1

    I am without time to work in these, but is very inpiring every video u do!!!!

    • @SoundSimulator
      @SoundSimulator  2 года назад +1

      These tutorials will still be around when you find the time!! Thank you so much for your continued support, Federico!!

  • @Mr_Frequency
    @Mr_Frequency 6 месяцев назад +1

    That's lit!

  • @Drxxx
    @Drxxx 2 года назад +1

    Great video

  • @AricAttasCreative
    @AricAttasCreative 3 месяца назад +1

    Awesome video! Thanks for the inspiration! Do you know if the code with work with an Arduino UNO R4? Thanks!!!

  • @yukailin1207
    @yukailin1207 2 года назад +1

    Really nice video! I Would Like To Know what kind smaller Arduino can use for this project?

    • @SoundSimulator
      @SoundSimulator  2 года назад

      Thank you for watching! Good question!
      According to my friend Gustavo, Arduino Micro or Pro Micro are what you may be looking for!
      ruclips.net/video/C-BNKf8v7Ys/видео.html I wish I saw this before I made the video so I could've included the info!
      (I also highly recommend checking out the channel!)

  • @giulianadono9184
    @giulianadono9184 7 месяцев назад

    hi, what is the name of the strip sensor that appears in the introduction?

  • @justinspanos4382
    @justinspanos4382 6 месяцев назад

    Firstly, I love the tutorial, very clear and concise. I keep running into an error when trying to load the .zip folder:
    Error: 13 INTERNAL: Library install failed: archive is not valid: multiple files found in zip file top level
    I've tried it with both 2.2.1 and 1.8.19. Google hasn't been all too helpful, unfortunately. Any suggestions on. what it could be? Thanks!

    • @SoundSimulator
      @SoundSimulator  6 месяцев назад

      I'm sorry to hear that you're running into an issue. I unfortunately haven't encountered an issue like that, so I can't be of help.

  • @Azec6Official
    @Azec6Official 2 года назад +1

    Nice vid! Im curious, even though the arduino only has 5 analog inputs, would it be possible to map those 5 sensors to more than 5 controls via a digital input that acts like a shift key on a traditional MIDI controller? Does that make sense?

    • @SoundSimulator
      @SoundSimulator  2 года назад

      Thank you for watching, Adam! Could you give me an example of what you're trying to do?

    • @Azec6Official
      @Azec6Official 2 года назад

      @@SoundSimulator For example, if I were in pd and had 10 variable parameters i wanted to control during a live performance as I would with a knob/slider, but i only have 5 analog inputs for potentiometers, could i use a button connected via a digital input to choose a different preset mapping for the knobs live. I dont want to remap the controls manually while live, but quickly choose another preset for the potentiometers.

    • @SoundSimulator
      @SoundSimulator  2 года назад

      ​@@Azec6Official First approach that popped into my head is to use 1 of the 6 analog inputs for a switch. The DAW will see that switch data as either 0 or 127 and I think you can use that to turn on/off a bypass or switch between 2 sets.
      The other 5 analog pins can be used for knobs.
      The issue with this approach is that each knob is mapped to 2 parameters simultaneously (unless there is a work-around in your DAW of choice). So, the bypassed parameters will still change. But if you are switching between the 2 mapping sets for different songs in your live set, then it'll work out. For example, first track in your performance has 5 specific mappings and then you switch to the other 5 specific mappings for the next track and so on.
      Another approach is getting Arduino Mega. I should actually make a quick video on it for next week since 6 analog pins may not be enough for other people!
      Hope this helps!

    • @SoundSimulator
      @SoundSimulator  2 года назад

      You can use digital components like buttons and switches and connect them to an analog pin instead of the digital pin. My finger drum machine tutorial will be a good reference (use the A0 pin instead of whatever digital pin I used).

  • @mariannedesalvan1803
    @mariannedesalvan1803 2 года назад

    Hi Takumi ! I tried it like 10x today and my arduino is not showing in my MIDI ports. I'm using an arduino uno (Elegoo) and I did connect the two AREF ports together. The program did upload onto my arduino. What am i missing here ?
    Awesome tutorials as usual, thanks for sharing you knowledge !

    • @SoundSimulator
      @SoundSimulator  2 года назад

      Hi Marianne!!
      Did you go through this tutorial? ruclips.net/video/-bCz2I9SMAA/видео.html
      If so, I'm not 100% sure what could be the issue. The off-brand Arduino is known to cause issue especially when being used for Max/MSP or Pure Data (I totally understand that it's more affordable tho!).
      What DAW are you using btw?
      I hope we can solve the issue!!

    • @mariannedesalvan1803
      @mariannedesalvan1803 2 года назад

      @@SoundSimulator I updated my computer yesterday and tried again your method today and it did not work again. I'll try the Homebrew way right now.
      I also have an Arduino Mega, so I'll try with this one if the second method doesn't work.
      I'm using Ableton, but it's a cracked version (this could also be the problem). I'll try to find a friend who has the licensed version to try as well. It's good to know that the off-brand has issues with PD, so I won't get mad if it doesn't work in future works !
      Thank you so much for your fast answer !!!

    • @SoundSimulator
      @SoundSimulator  2 года назад

      @@mariannedesalvan1803 I followed that tutorial with Arduino Mega and it worked fine. I hope everything works!! Please feel free to further ask questions! Best of luck!

    • @mariannedesalvan1803
      @mariannedesalvan1803 2 года назад +1

      I finally got it to work with my Arduino Mega ! Thanks a lot !

    • @mariannedesalvan1803
      @mariannedesalvan1803 2 года назад

      Have you ever use a digital sensor or have a way to make one work with Ableton. I was planning on using several ultrasonic sensors to modulate sound. Could I use a DAC, would that work ?