What is Arduino?

Arduino is a Micro Controller which lets us connect many types of hardware gear like LEDS, Motors, Knobs, Faders, Sensors (proximity, humidity, light etc) and even Touch screens. We can then use the computer to program the Arduino to control or react to the connected hardware in any way we want. The possibilities are endless.

There are many types of Arduino boards with different capabilities. For this video we are using the Arduino Uno R3.

Check out this list of cool Arduino projects.

Arduino_Uno_-_R3

You can find the Arduino in most online and retail electronic stores like:

Sparkfun

Adafruit

Digikey

 

But for the Arduino to do what we want it to do we need to program it using the free Arduino software.

This requires some programming knowledge and an understanding how the Arduino environment work and how you can take advantage of different boards and libraries.

 

Fortunately we don’t really need to know any programming when using the new Connection Kit.

 


Programming? No Need Thanks to Ableton

Ableton has released the Connection Kit. A free collection of Max for Live Devices that lets us communicate with different types of hardware like Little Bits, Lego Brainstorms, Leap Motion and of course Arduino.

This allows us to communicate with all those great development environment using only Ableton Live and Max for Live.

Setting up the Arduino in Ableton Live:

  1. Make sure you have Max for Live installed
  2. Install Connection Kit
  3. Connect the Arduino to the Computer through USB
  4. Run the Arduino Software
    • Under tools in the top menu make sure the Arduino Uno is selected under Board.
    • Then again under tools -> port select the Arduino (USBmodem)
  5. Go to Files -> Examples -> Firmata and select Standard Firmata
  6. Click the upload button to upload the sketch to the Arduino
  7. That’s it now you are ready to control the Arduino with Ableton Live!

 


Using Motors with Arduino

There are different types of motors for different types of applications. We are going to use the Servo Motor which allows you to spin the head by 180°. This is great for building a drum robot to mimic the movment of our wrist.

Servo motors comes in different sizes. For this demo we are using a micro servo like this one.

Servo motors come with three wires.

  1. Brown to Ground
  2.  Red to 5V
  3. Yellow to a Digital input with a ~ next to it. In the video we went with number 9.

servo example

 

You can then attach a drum stick or even a small pen to the servo using glue, zip ties or any other way you can think of.

For this servo we don’t need an external power source as the Arduino can handle it through USB. But if you want to use bigger more powerful motors you might also need an external power source like batteries.


Sequencing a Motor from Ableton Live

In Ableton Live, Load the Arduino Max for Live device under the Connection Kit Live Pack.

Arduino Device load

 

Connect the Arduino to the computer and select the port (USBmodem)

Select Arduino Port

 

Load an Empty Audio Effect Rack and open up the Macro Controls

macro arduino

 

On the Arduino Device switch to the Digital tab and change the Digital input you are using (D09 in this example) for the motor to Servo.

servo type arduino

 

Then, Map the D09 to the first Macro on the Audio Effect Rack

ardunio macro map

 

Now you can move the Macro to control the Servo. But we want to use MIDI clips to sequence the motor so there are a few more steps.

Load a sample into a Drum Rack (or a single Simpler) like a clap or a kick. Then load the Envelope Follower(Max for Live Essentials).

 

Now every time you play the sample the Envelope Follower creates an envelope. Now map the Envelope Follower to the same Macro on the Audio Effect Rack we mapped the Arduino to. In other words the empty audio effect rack 1st Macro should have both the Envelope Follower and Arduino mapped to it.

arduino clap

 

We now have a working drum robot we can sequence from MIDI clips. You can change the gain on the Envelope follower to control how much spin the motor have. Adjust that to your needs.

Attach a drum stick to the motor and mount it where ever you want. On real drums or controllers!

 

You might also stumble upon latency issues. This can be solved with the track delays.

track delays


 

Have you build something with the new connection kit? Please share with us in the comments.

More To Explore

Music Technology

Dolby Atmos and Spatial Audio – The Future Of Audio Is Here

Dolby Atmos and Spatial Audio Are You Listening? Unless you’ve been underground for the past few weeks, you couldn’t have missed one of the biggest developments in the world of sound – Apple recently announced that Apple Music customers will now have access to industry-leading sound quality thanks to the

Music Technology

Is Push the ultimate Ableton controller? An all-in-one workflow

Is Push The Ultimate Ableton controller?   With the range and variety in today’s market for MIDI Controllers in music production – does the Ableton Push 2 still hold its name of being the forefront of MIDI controllability? This article dives into this, by comparing the Push 2 with other

LATEST Programs

Featured Masterclass

Future R&B

Discover all the modern techniques for this super cool style.

✓ R&B Music Theory Crash Course

✓ Exclusive MIDI Effect Rack Harmonizers 

✓ Ableton Live Template

✓ Future R&B Chord Glides Racks

✓ Lofi Bleep Instrument Rack

✓ Audio Effect Rack – Channel Strip 

$39 USD $70 USD

Have More Questions?

Contact Us

+1 323-999-7815

© 2021 Beat Lab Academy

Music Matters

Need Help?