Skip to main content

neuro:baton

Conduct Music with Your Mind and Body

InventorSofia Andrikou
Micro:Bit IDEBlock Code
Best LocationClassroom

Welcome to the neuro:baton, the only device where you can conduct your own symphony with EMG! These instructions will guide you through the process of building and programming your baton, harnessing the power of your movements and EMG signals to orchestrate beautiful melodies. Let's dive in and unleash your inner conductor!

Materials Needed

For this project, you will need some cardboard, paper, pen, tape, and a 3D printer. You also need a micro:bit and Spiker:bit.

Build Instructions

Step 1: Gather Your Materials

Grab a cardboard sheet and use the provided template to cut out the shape of the base of your NeuroBaton.

Materials Needed

Step 2: Cut out

Print out a PDF of our baton outline and trace it on the cardboard (include the dotted lines).

Trace the outline of your baton

Then cut ir out with scissors.

Step 3: Fold and Decorate the Baton Holder

Fold up the cardboard to firt snuggly around the micro:bit. Then add some tape to the top to hold it in place, and give it some character.

Fold and Decorate the Baton Holder

Step 4: 3D Print and Final Assembly

What makes a conductors baton is the baton! So we will 3D print the baton and place it on top of the base. You can download the STL File for 3D priting your own baton here.

You can firmly secure with glue or tape, or leave it a bit loosey-gooesy for a more dynamic feel.

Let your creativity flow as you decorate it with colors, patterns, or anything that reflects your musical personality!

Once youre ready, let it rest while we delve into the exciting world of music creation!

Programming Your Baton

Now that your baton is built, we need to to produce music. With Microbit's many options, the possibilities for musical exploration are endless. Let's explore how you can program your baton's brain to create and control captivating melodies.

1. Select Your Music

Choose between Music, Melody, or Synthesize to kickstart your composition journey.

6.music.png

You have the freedom to craft a DJ board melody:

7.dj.png

compose a piano-based piece:

8.piano.png

or explore the ethereal sounds of sine waveforms:

9.waveform.png

Additionally, Microbit provides a library of pre-made musical compositions for your convenience.

2. Define Your Controls

A skilled conductor controls an entire orchestra with simple hand and baton gestures. We can do the same for the neuro:baton, but now we can be more creative with how we can control music. Whether it's through buttons, acceleometer or the magic of EMG signals, the choice is yours!

In this example, we’ll use the strength of our muscles' EMG to control the music's tempo, and use vertical movements to adjust the volume. Let's see how it works, exactly.

Muscle EMG for Tempo:

We'll use an EMG (electromyogram) connected to your forearm muscles. For more information on how to connect the Spiker:bit to your muscles, see Getting Started with Block under "Connecting Muscles to Read an EMG Signal". The forearm was chosen as these muscles get activating when conducting.

When you flex your muscles to raise the baton, the EMG increases. By reading the EMG values into a variable, we can use it to control the tempo of the music.

Motion for Volume:

The micro:bit has a built in accelerometer, which is a sensor that detects movement and orientation. We'll utilize the vertical (up and down) motion of your neuro:baton to control the volume. Given the oreintation of the baton in your hand, the Y axis responds well to raising and lowering the baton in the air (similar to a conductor). We will therefor use that to increase the volume and down to decrease it.

microbit accelerometers

By combining these two inputs, you'll have dynamic control over your musical performance, making you a true maestro with the neuro:baton!

Here's how you read in your EMG and y axis variables on your microbit:

microbit accelerometers

The last 2 serial blocks allow communication to the host which allows us to see the EMG and Y variables in real time. You should check what the values are as we will use these numnbers to control. Most of youyr time will be spent adjusting the program to respond to the right values in these signals. It is always important to see how the signals appear when you are using the baton. Below is a trace of 2 vairables during the conducting of a song.

11.input.png

3. Putting it all together

The code below encapsulates the essence of neuro:baton, mapping EMG signals and accelerometer data to tempo and volume control. In a while loop, we will add the ability to update the music based on our control variables. Add the music to the bottom, and adjust the volume and tempo on each pass through the loop.

All of the code

Another cool feature you can add is the ability to stop all the music by turning your neuro:baton upside down, just like when a conductor signals to the orchestra to pause. Similar to how we use the y-axis for volume control, we can add a z-axis varible and use it to stop all melodies. All that needs to be done is to see how the z variable behaves when you perform that action.

12.z_stop.png

Using the neuro:baton

Now it is time for your big performance. Unplug from the computer and turn it on to start the music! Flex your wrist muscles to dictate the tempo and add dynamic flair to your performance. The more you flex your muscles, the faster the music goes! This can be done from either the hand that holds the baton, or from your free hand... regardless the power of EMG is at your fingertips!

Lift your baton up to creating crescendos and lower to provide diminuendos with graceful movements.

With a flick of your wrist, you can pause the music or reignite the symphony, just like a conductor commanding an orchestra. Don't panic, move your NeuroBaton facing up again and the music will restart!

Customize and Make it Your Own!

You can customize your experience by incorporating features like DJ board melodies, piano-based compositions, or even experimental sine waveform sounds. Use the buttons to switch the music in realtime. Let your imagination soar!

You can even explore some more innovative ideas like using other body signals for control. Here is a short list of possibilities:

Heartbeat Drumming Experience

Use EKG (Electrocardiogram) signals to synchronize your heartbeat with rhythmic drumbeats, turning your neuro:baton into a heart-powered percussion instrument.

Dance Choreography Integration

Combine the art of dance with music by mapping specific dance moves to trigger different musical elements. Imagine choreographing a routine where each step or gesture influences the melody, rhythm, or even lighting effects for a multimedia performance.

Gesture-Based Composition

Create a library of hand gestures or body movements, each assigned to a musical note, chord, or sound effect. By interpreting these gestures in real-time, you can compose music on the fly, turning any space into a symphonic playground.

Interactive Storytelling

Transform your NeuroBaton into a narrative device, where each movement advances the storyline through sound effects, voiceovers, or musical cues. Invite participants to engage in immersive storytelling experiences, where their actions shape the unfolding narrative.

Collaborative Jam Sessions

Connect multiple NeuroBaton devices wirelessly to facilitate collaborative jam sessions among friends, family, or even strangers. Each participant can control different musical layers or instruments, fostering creativity, teamwork, and spontaneous musical exploration.

Share your creations with fellow music enthusiasts, collaborate on projects, and inspire others to embark on their own musical journeys with neuro:baton.

Conclusion

Congratulations on embarking on this exhilarating musical adventure with neuro:baton! With the power of technology and the artistry of your movements, the world of music is yours to conduct. Let the symphony begin!