Accelerometer Music Controller (Arduino Tutorial)

Поділитися
Вставка
  • Опубліковано 4 січ 2022
  • Let's use accelerometer to control sounds in Pure Data or Max/MSP!!
    ---
    To Buy
    -Arduino Nano
    www.amazon.com/ELEGOO-Arduino...
    I think this one should be fine? If I remember correctly, you have to install a CH430 firmware in order to get it working with Pure Data/Max. And Windows user had issue with this thing. But maybe it all got fixed in the past 3 years?? Just a heads up before you click "buy"!!
    For much less headache, it might be a better idea to buy the official Nano. It may possibly save you time in the long run. There's a reason why I avoided Nano on this channel!! Or I could be overthinking, but I do care about your time.
    -USB Cable (Arduino Nano uses Mini USB cable. Please double check when you select your Nano)
    www.amazon.com/Replacement-Ca...
    This one should be fine
    -Breadboard (82 mm long so that it can be mounted nicely onto the sphere!)
    www.amazon.com/Breadboards-So...
    -Wires
    www.amazon.com/AUSTOR-Lengths...
    -Accelerometer
    www.amazon.com/HiLetgo-MPU-60...
    If you would like to use accelerometer for MIDI, I recommend purchasing ones that are not using SCL and SDA.
    www.amazon.com/ADXL335-Accele...
    Something like this should work with my Arduino MIDI tutorial.
    www.amazon.com/Adafruit-ADXL3...
    Adafruit has one too but it's expensive... I may need to do a pt.2 of the Arduino MIDI tutorial where where we can use sensors that use digital pins or SCL + SDA...
    -Half Foam Ball
    www.amazon.com/Half-Foam-Ball...
    ---
    Social Media
    / takumi_ogata
    / takumiogata

КОМЕНТАРІ • 50

  • @SoundSimulator
    @SoundSimulator  2 роки тому +4

    Happy New Year! First video of 2022!
    NOTE:
    It's a bit hard to see in the video, so here's how the sensor is connected to the Arduino.
    A4 to SDA
    A5 to SCL
    5V to VCC
    GND to GND

  • @kelvint03
    @kelvint03 2 роки тому +7

    this entire channel is a godsend

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

    Happy New Year! Best way to start into 2022 - watching a new Sound Simulator video.

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

      Happy New Year to you as well! Thank you for watching as always!!

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

    Your videos are really inspiring, make me feel like i can built/patch anything! Thank you for your work!

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

      That's amazing to hear! I'm looking forward to seeing/hearing what you'll be creating!

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

    beautiful stuff takumi thank you. + having the patches available to download would be so very helpful.

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

      Thank you so much!! Yes, that's something I need to start doing as the patchers are becoming more complex.

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

    Mounting to a dome was a genius move. Cheers!

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

    Love the video. Did you make the wireless follow up video?

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

    Awesome. I will go to try something similar

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

    great ideas but the only issue is getting back to the initial position with the sphere I think some fairly sturdy springs and a wood surface might help but I'm being nitpicky here hahaha. Great video man excited to see future projects this channel is a goldmine

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

      Totally valid feedback! I completely overlooked the weight issue until I started filming.
      Yeah! I really wanted to incorporate springs to this but I'm pretty limited with building materials right now. I definitely want to revisit this when I buy a 3D printer.
      And thank you so much for your support!!

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

      @@SoundSimulator yes at first building materials are intimidating but if you start working with them regularly stopping yourself is the problem hahaha.Id say a fairly sturdy spring inserted on the bottom through a small hole and hold it down with pins on wood or any rigid surface can do the job the tricky part might be adding breaks so it wont wobble around

  • @uvia7114
    @uvia7114 10 місяців тому

    I love your tutorial! and since our smartphones already have an accelerometer, can i do the same thing in my phone?

  • @Mari-ne3eo
    @Mari-ne3eo 2 місяці тому

    Hey just found your channel thank you for everything you teach us! Im trying to do this accelerometer music controller but for x and y values I only get -0.00... do you have any ideas why? Did the exact same as in your video. Thank you so much !

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

    Very cool. Thanks for the video! I'm actually preparing to work on a similar interactive project but thinking to use the Pi Pico W instead and send MIDI over WiFi :)

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

      Making this wireless is definitely the way to go!!
      Have fun!!

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

      @@SoundSimulator most definitely! thanks :)

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

    just what i was trying to doo!!! Great information!!! thanks! i would like to do a independent device who sends midi mensages to a volca or NTS1... how can i code that? thanks for the great content!!!! Happy new year!

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

      Yeah, I eventually do need to make a video on stand-alone MIDI device. Something that can send data via MIDI cable. I actually never sent CC (?) using Arduino before so your guess is good as mine! We might explore it when we start learning about embedded audio this spring/summer.

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

      @@SoundSimulator yess!! I have made some standalone devices with the note and volts midi library!! But is hard to me to combine the MPU code with the MIDI library... I'm on it! If I found something will share it!!

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

      @@fedeboretti It's a tiny bit more expensive, but there are analog-out accelerometers that you can use with the MIDI code//
      But either way, there should be a solution!

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

    This idea is awesome! Your tutorial has literally saved a project of my own. Are you able to share the MAX MSP patch you used?

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

      That's good to hear!
      I think what you need is shown in the video already. Let me know if you have any questions.

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

      @@SoundSimulator ok thanks I'll try and recreate it

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

      @@SoundSimulator Hi, not everything is on the page. Could you show where the biquad goes at the bottom left? Do you have any videos/know any that could show how to develop something like this? Thanks!

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

    Nice idea, you could also substitute the accelerometer for a analog joystick too (Not as cool...).

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

      I always wanted to mess around with a joystick! I saw performance almost 10 years ago where the musician was creating this really cool synth sound using one.

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

    Great video! Is there any chance you could share the Max msp settings in a greater detail? I'm going to try and convert to pure data and I can't quite see the entire of the patch! Any help would be greatly appreciated!

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

      This patcher is close to this one: ua-cam.com/video/Cs0NPime0kU/v-deo.html (download link in the description!)
      They both use VST reverb.

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

    Hi! Beautifull! Thanks !
    Do you imagine some way that this could be wireless?
    I mean wireless from the accelometer to the arduino

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

      For sure, this can be wireless//
      I haven't messed around with wireless modules in a while so your guess is good as mine. Google is your friend!

  • @user-cu7ex7gd1o
    @user-cu7ex7gd1o 2 роки тому +1

    Hello Takumi! May I ask what object you using to show the XY position? (I mean The graphic object) Thank you!

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

    Amazing how parallel our paths are, although music is your media and laser art is mine. Only 5 minutes ago, I commented on your GEM video about using 7" Nextion multitouch HMIs to provide this same 2D controllability, instead of traditional faders. You're accomplishing similar control capabilities for 1/4 the price.
    But, with the touchscreens, I can have multiple 'pages' of granularity to reduce the overall desk size, knobs, and buttons. After all, we only have 2 hands and 10 fingers, right?

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

      It's exciting to hear that these tutorials are helpful for your laser project!!
      It could be fun to control visuals using sensors. Incorporating a pressure sensor to this can seamlessly add a third dimension of control!!
      And your other hand could be controlling the touchscreen??
      I'm really excited about this project that you're working on! Again, please do keep me posted.

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

      @@SoundSimulatorYes, exactly. The desk is split between L&R, w/4 independent levels of control banks, complimenting the selected touchscreen pages. That'swhy RGB backlit indicators are needed for visual feedback of wtf is going on. Silk screened labels are obsolete.
      Same here regarding your projects. Is there such a thing as subconscious mutual brainstorming?🤔

  • @matschipikora1694
    @matschipikora1694 Рік тому +2

    If I have two MPU'S I can then simply use
    basicMPU6050 imu1;
    basicMPU6050 imu2;
    inizalize them like this?

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

    hello im just finding this video and im trying to do something similar for a class project but im struggling to get the data to have a max of 127 could you share your patcher/arduino code for me

  • @yichongwang
    @yichongwang Рік тому +2

    How do I make a generative sequencer like yours🥺

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

      I recommend downloading PlugData which is very close to MaxMSP. And then follow my sequencer tutorials. Let me know if you have any questions!

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

    what object is Scale_Quad?

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

      It's an abstraction. I did something similar in my Pure Data generative sequencer tutorial on this channel.

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

    only the gyroscope is in use here, not the accelerometer