No video

Making things move musically - Control a servo with USB MIDI

  Рет қаралды 4,730

one hacker band

one hacker band

Күн бұрын

In this tutorial, we'll go through the equipment, connections, and code to make a servo motor move with USB MIDI.
To follow along here is the required equipment:
www.amazon.com...
‪@goBILDA‬ Servo Used: www.gobilda.co...
I may make a small commission if you buy items through these links.

Пікірлер: 31
@hyperorbit
@hyperorbit Жыл бұрын
Wow I really appreciate you making some tutorials. This is gold.
@onehackerband
@onehackerband Жыл бұрын
More to come!
@sadandsentimental
@sadandsentimental Жыл бұрын
This is really great! I really enjoyed the Enter Sandman video too. I’d like to see ideas of how to raise the hi-hat up and down with solenoids or servos, and how to get servos to move with nuance… the way that a human might move a shaker for instance, with a fast stop and a slow return motion.
@onehackerband
@onehackerband Жыл бұрын
Gotcha, yeah! I think controlling the speed over time would definitely make a good future topic. We could link it to the velocity data that comes in with MIDI note on messages.
@JohnLRice
@JohnLRice Жыл бұрын
Thinking about hi-hats, besides the main solenoid to pull the top cymbal down, maybe a second solenoid could be used to control the angle of the bottom cymbal? Typically hi-hat stands have a screw that is used to set a permanent angle for the bottom cymbal, but that screw could be removed and a solenoid with a pin could be used to adjust the angle? Maybe Aaron has already tried this?
@gearscodeandfire
@gearscodeandfire 8 ай бұрын
This is awesome, I'm finally beginning my aforementioned "deep dive" on your stuff from Instagram. Keep up the great work!
@final_ascent_music
@final_ascent_music Жыл бұрын
This is awesome! Keep making videos like this. I've been wanting to get into some projects like this and had no idea where to start. No I do xD
@iitprep9588
@iitprep9588 Жыл бұрын
Nice tutorial easy to follow
@alanator25
@alanator25 Жыл бұрын
Great video! Yes please show controls for all the things: steppers, actuators, solenoids. Mark rober showed a piano with precision solenoids that can do hard or soft hits.
@RaleighTHEVAMP
@RaleighTHEVAMP Жыл бұрын
this is epic.. learned a lot from you. thank you
@alessiobassguitar
@alessiobassguitar Жыл бұрын
This video is amazing! Your patience in explaining is admirable! How can we deal with multiple servos that respond to a preprogrammed drum midi track for a robot drummer? Will you make any video on that?
@onehackerband
@onehackerband Жыл бұрын
Thank you! Yeah, I'm sure I'll do one getting into sequencing. I'm trying to break it down a little at a time to keep them not too long.
@alessiobassguitar
@alessiobassguitar Жыл бұрын
@@onehackerband that’s a very nice idea! One step at the time
@zakklee2556
@zakklee2556 8 ай бұрын
Wow! more please.
@raymondloomer5405
@raymondloomer5405 9 ай бұрын
nice
@thomasriedel2828
@thomasriedel2828 Жыл бұрын
I have a acoustic bass and I was looking for exactly this! In your setup with the bass, you have what looks like black and blue clamps, that attach to the neck of the bass guitar. Is that 3D printed? And how do you translate the notes into the left and right hand movements of the servos? One has to push down the string, the other has to pluck it. I have no idea how to program that. Could you make a video about all that? Or do you sell a kit or a tutorial, with all the detailed informations? I love your work! It seems like a lot of time and ingenuity went into it! Thank you so much, Thomas
@onehackerband
@onehackerband Жыл бұрын
Thank you! Yeah, lots of the mounting hardware is 3D printed. I use a microcontroller to translate MIDI into servo positions. I recently did a beginners tutorial on getting servos moving with MIDI on my channel. I’ll get to some more advanced topics soon!
@PauloRicardo-pp4ml
@PauloRicardo-pp4ml Жыл бұрын
cool
@pablohdz14
@pablohdz14 7 ай бұрын
Im very curious how do you put the servos into the piano?
@TechPlayerBu
@TechPlayerBu Жыл бұрын
nice!
@namcomamia21
@namcomamia21 9 ай бұрын
How could I change the code if I want to use the servo as the plucking mechanism of the guitar (I mean, for the first note, the servo would move to a position , and for the next note, the servo would move to another position)
@onehackerband
@onehackerband 9 ай бұрын
You’d need to store both positions as Ints use and a Boolean that tracks if the pick was last up or down. Use an if/else statement to check the Boolean condition, set it as the opposite in each and recall one position in the “if”, and the other in the “else”.
@namcomamia21
@namcomamia21 6 ай бұрын
Thanks Also, I wondered how could I use esp32 with midiusb? Should I download any libraries for it?
@larryyneely5765
@larryyneely5765 4 ай бұрын
I TRIED your code, but it won't compile, i keep geting errors
@onehackerband
@onehackerband 4 ай бұрын
What board are you using? And what is the error?
@larryyneely5765
@larryyneely5765 4 ай бұрын
@@onehackerband TEENSY 4.1 , AND A LEONARDO, but thats not the problem, i tried to copy the code that you created, but it won't compile, when i get to usbMIDI,thats where it goes off the rails. do you have a print of the code?
@BGQV
@BGQV Жыл бұрын
10
@lemn8
@lemn8 Жыл бұрын
This is almost what i'm looking for. I want to control the servo's with the midi sliders/faders. I've got an example : kzbin.info/www/bejne/aIiZYWCeprKVjLM i even got the code but it's based on serial. And i really want this to run on a teensy via usbMIDI and im unable to understand how to convert your program which works on my teensy into his script and make it usbmidi compatible. EDIT: This is solved!
@lemn8
@lemn8 Жыл бұрын
never mind! i just used a more then one note for 1 servo with different angles for each note. Thanks for this great and very clear tutorial!
@onehackerband
@onehackerband Жыл бұрын
If you want something continuous/analog-like such as what a knob would give you, I'd use a CC. You can check for that type with usbMIDI.ControlChange. I think data1 would probably be the CC# and data2 would be the value, but you might want to check.
@lemn8
@lemn8 Жыл бұрын
@@onehackerband I already got it running and put it on my github. Many were searching for it. I also gave you some credit in the notes. Here is the result using the first method with multiple keys for different servo degree values. kzbin.info/www/bejne/e5mTpIxrqpJ6nLc instead of using a 3d printer and design parts i just do glue and stuff i find around the house haha. Thnx again! Really looking forward for more of your content!
Making music with motors!
8:01
David Hilowitz Music
Рет қаралды 66 М.
Control Arduino Maker Projects with MIDI - Beginner Tutorial
18:10
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 86 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 25 МЛН
Raspberry Pi Servo Motor Control
17:36
ExplainingComputers
Рет қаралды 387 М.
TEENSY - USB Audio Interface
12:02
Notes and Volts
Рет қаралды 16 М.
How to make your own MIDI over Bluetooth instruments
11:31
KontinuumLAB
Рет қаралды 17 М.
How to Make Arduino Instruments that Play MIDI Songs!
12:42
Johnny Devine
Рет қаралды 10 М.
How to Use Servo Motors with NO Programming! - Hotwire Servo Tutorial
12:56
WHAT IS MIDI
10:26
FrankJavCee
Рет қаралды 239 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
Multiple Servo Control with Potentiometers and Arduino
7:59
Maker 101
Рет қаралды 104 М.
MIDI In/Out/Thru Interface for Arduino
12:53
Gadget Reboot
Рет қаралды 7 М.
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 86 МЛН