Build a simple MIDI controller with Raspberry PI (beginners tutorial) Part 1

  Рет қаралды 6,750

Floyd Steinberg

Floyd Steinberg

Күн бұрын

This video shows how to build a simple, one-knob MIDI controller from scratch using an ADC chip and a potentiometer and a Raspberry PI, step by step. // News: Raspberry PI will be back in stores from July 2023 on.
Table of contents:
00:00 hello
00:27 mission statement
01:13 hardware list
02:12 freenove.com/
02:25 install Raspbian
03:01 OS and remote control setup
03:41 install libraries:
03:54 git clone github.com/WiringPi/WiringPi; cd wiringPi; ./build; gpio -v; sudo nano /etc/ld.so.conf - add /usr/local/lib
04:43 sudo apt-get install i2c-tools; i2cdetect -y 1
04:57 sudo apt-get install libasound2-dev
05:07 git clone --depth 1 github.com/freenove/Freenove_... cd Freenove_RFID_Starter_Kit_for_Raspberry_Pi/lib/; sh ./build.sh
05:30 build the hardware
06:51 compiling and running the example app for ADC & potentiometer
08:25 how does this work?
09:11 adding MIDI
13:26 important things to consider
13:46 short demo - does it work? / homework for you :-)
14:18 conclusion
Links:
Freenove starter kit ml6.in/MoZIS
MIDI CC list www.whippedcreamsounds.com/mi..., cmtext.indiana.edu/MIDI/chapt...
ALSA rawmidi www.alsa-project.org/alsa-doc...
C++ code: pastebin.com/9FgUkMAW
HÄLP ZIS CHANNEL
/ floyd_steinberg
floydsteinberg.gumroad.com/
floydsteinberg.bandcamp.com/
/ @mr_floydst
Join us on Woody Piano Shack's Discord server: / discord
Get 7% off on DistroKid with this link distrokid.com/vip/floyd
PayPal.me www.paypal.me/alexselck
Shop a Huge Selection of Synths and Drum Machines at PerfectCircuit.com!
link.perfectcircuit.com/t/v1/...
Here's what I have in my setup at the moment. Want to have that, too? Please use the followings links and support me:
Yamaha EX5 www.ebay.com/sch/i.html?_nkw=...
Kasser Synths Arcade www.tindie.com/products/kasse...
MPC One, Novation PEAK, Reface DX, Strymon Nightsky, Strymon Volante, Strymon Iridium, Zoom MS 70 CDR, Korg NanoKontrol 2, Korg NanoKey, Akai EWI USB, Zoom R24, Zoom H5, Yamaha MT7:
www.thomann.de/de/thlpg_3wyep...
Some bands / artists I've been following for a long time are (among others) Massive Attack, Pink Floyd, Pet Shop Boys, Archive, A-Ha, Yes, Porcupine Tree, John Mellencamp, Jean-Michel Jarre, Metallica, Peter Gabriel and Perturbator. So my music will kind of sound like those (without ever reaching the greatness of those artists, of course). :-)

Пікірлер: 44
@bicicogito989
@bicicogito989 Жыл бұрын
THIS is an awesome primer! This is pretty dense in content but you present it quite well. Must take you lots of time to produce such quality work. Bravo! Looking forward to you followup tutorial(s). I have most all the components. Will try this out in a month or so! BTW, I am more from the hardware/software world, just twirling my toes in the MIDI music realm. I just LOVE where you particularly enter and fit in this wide domain. THANK YOU for your contributions and sharing your time and effort with us all. THANKS!!!
@mr_floydst
@mr_floydst Жыл бұрын
Thank you very much! This video indeed ate up a lot of time. I hope it does do well in the long term. Compared to other "creators", there's never a lot of interaction and feedback on my videos, so they mostly get views by google searches and not via "the algorithm"...
@doublephantom
@doublephantom Жыл бұрын
Fantastic. This is exactly the project I've been looking for, and it's also pitched at the right level. Well done. It will be great to see future videos and how this project evolves.
@mr_floydst
@mr_floydst Жыл бұрын
Thanks! I'll do some things some viewers asked me about, for example, implementing a MIDI filter.
@spud4242
@spud4242 Жыл бұрын
thanks, this is very interesting. looking forward to more of this.
@mr_floydst
@mr_floydst Жыл бұрын
Thanks for watching!
@randymeinderts6234
@randymeinderts6234 Жыл бұрын
Hey this is cool! As i am learning linux for my job, this is perfect to combine my hobby with learning!
@mr_floydst
@mr_floydst Жыл бұрын
Thanks! Glad it was useful.
@alanredversangel
@alanredversangel Жыл бұрын
I have a pi just for routing midi mesages between any devices you plug into it. Works like a charm and having 4 usb ports makes it perfect. For a midi controller though arduino is much simpler, especially if you only need midi out for it.
@mr_floydst
@mr_floydst Жыл бұрын
Thanks for watching! I agree, but I want to do some more ambitious stuff in the future (e.g. there was a viewer question how to create a MIDI filter). So PI is a good all-round choice here.
@stefandegu5150
@stefandegu5150 Жыл бұрын
I´m so into this series, as my TeensyTouchDAW seems to get out of memory :D Thank you for doing this
@mr_floydst
@mr_floydst Жыл бұрын
Thanks for watching! :)
@ubidefeo
@ubidefeo Жыл бұрын
All your videos are extremely informative, I have discovered a bunch of tools thanks to you. Nevertheless I'll still always resort to Arduino for low-friction MIDI implementation 🤭
@mr_floydst
@mr_floydst Жыл бұрын
You're right, using a PI 3B is shooting sparrows with cannons, as we say 'round here. ;-) But it also leaves headroom for other things...
@ubidefeo
@ubidefeo Жыл бұрын
@@mr_floydst 100% agree. I actually found you while looking for Pi based music projects and oh my... lots of things to go through :D
@argumentchannel
@argumentchannel Жыл бұрын
Top
@mr_floydst
@mr_floydst Жыл бұрын
Thank you very much!
@takawakahd
@takawakahd Ай бұрын
Hi there, great tutorial! Just wondering what Ohm should the potentiometers be for this?
@mr_floydst
@mr_floydst Ай бұрын
Thanks! These are 10k Ohm resistors.
@ElectronicMusicOpenMic
@ElectronicMusicOpenMic Жыл бұрын
More Please👍
@mr_floydst
@mr_floydst Жыл бұрын
Thanks! The stats don't look promising at the moment, unfortunately. I'll do a follow up showing how to use a multiplexer chip to add more than 4 controls.
@TooSlowTube
@TooSlowTube Жыл бұрын
@@mr_floydst You could use an 8 channel MCP3008 or MCP3208 (more resolution, but not really needed unless you want a pitch or pitchbend CV) to provide 8 inputs over SPI. You might want to use a multiplexer to go beyond 8 inputs, or just add a second chip. You just need one dedicated GPIO pin for each ADC chip, as a chip select pin, then the rest of the SPI connections can be shared.
@jf5070
@jf5070 Жыл бұрын
If I understood (I’m not fluent English) we need a converter for each knob or slider ?
@mr_floydst
@mr_floydst Жыл бұрын
Hi, thanks for watching! No, the ADC in this video can read up to 4 of them. There are other models around that can read up to 8.
@takawakahd
@takawakahd Ай бұрын
Would I need to purchase additional ADC converters if I'm trying to add additional potentiometers?
@mr_floydst
@mr_floydst Ай бұрын
You'll need a multiplexer, for example the TCA9548A. If you're not familiar with those, here's a link: forums.raspberrypi.com/viewtopic.php?t=368435
@takawakahd
@takawakahd Ай бұрын
@@mr_floydst Thanks for replying, I'll look into that one. I did a little research and found an 8 channel ADC called the 'Adafruit MCP3008' , to my understanding this can convert 8 different potentiometers, would you happen to know if this is actually the case?
@DJDiskmachine
@DJDiskmachine Жыл бұрын
Cool! Too bad Raspberry Pis don't come with ADC pins built-in, I really feel that's something they should have added by now. o_O
@mr_floydst
@mr_floydst Жыл бұрын
That would be nice indeed!
@fltfathin
@fltfathin Жыл бұрын
electronics design-wise it defeats the purpose of raspberry pi which is to teach low level OS interactions. you'll have better shot using raspberry pi pico instead
@bin-bash
@bin-bash Ай бұрын
Will an original Pi model 1 work with this setup?
@mr_floydst
@mr_floydst Ай бұрын
It should work. There's nothing CPU or memory extensive about this.
@tedysamsi8488
@tedysamsi8488 Жыл бұрын
How to make work on orange pj
@mr_floydst
@mr_floydst Жыл бұрын
Thanks for watching, if you install Orange PI OS (Arch) the steps should roughly be the same. I think I mentioned all the important details here so you can do the transfer yourself.
@tedysamsi8488
@tedysamsi8488 Жыл бұрын
@@mr_floydst can you give me tutorial step by step to enable and work serial uart MIDI on orange pi
@c1ph3rpunk
@c1ph3rpunk Жыл бұрын
Interesting, would be more helpful on a microcontroller, such as ESP32 or similar, rather than a Pi due to issues getting Pi’s. I’ve stopped watching any Pi related project videos due to this.
@mr_floydst
@mr_floydst Жыл бұрын
Thanks for watching, PIs will be back in July.
@mr_floydst
@mr_floydst Жыл бұрын
@@c1ph3rpunk I totally understand and respect your point of view. Nevertheless, I think I explained the basics detailed enough for an easy transfer to any other microcontroller / microcomputer.
@c1ph3rpunk
@c1ph3rpunk Жыл бұрын
@@mr_floydst NAZI deletes comments now? Unsub.
@mr_floydst
@mr_floydst Жыл бұрын
I didn't delete your comment! But I have a long running problem with comments that contain links. KZfaq deletes those without asking. I pinged KZfaq support a lot of times on that, but they don't care. (I mean, why should I delete that - it was a perfectly valid opinion and you didn't attack me on a personal level there) That being said, be careful with that other N-word. The people you're referring to commited horrendous crimes against humanity, millions suffered unspeakable horrors and other millions died / lost their homes / had to flee. I think disappearing comments, however frustrating that might be in the moment, are not on that level. ;-)
@ZombieLincoln666
@ZombieLincoln666 3 ай бұрын
You should build a midibox
@mr_floydst
@mr_floydst 2 ай бұрын
Thanks for pointing me towards it! I'll take a look.
@DawlessHouseMusic
@DawlessHouseMusic Жыл бұрын
Don't they have other "pi" on the market? Banana, etc?
@mr_floydst
@mr_floydst Жыл бұрын
Yes, there are clones that work just as well. I'm short on funds as always, so I can't go round and buy them all to make a comparison video ;-)
The Alles mesh networking synthesizer - a field of sound at your control
10:08
The SquishBox: a Raspberry Pi Synthesizer
8:08
The White Tornado
Рет қаралды 24 М.
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 22 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 4,4 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 11 МЛН
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Building a desktop piano synth with Raspberry PI and SFIZZ (Part 1)
8:57
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,5 МЛН
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 533 М.
the Raspberry Pi 5
17:57
NetworkChuck
Рет қаралды 1 МЛН
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,1 МЛН
Sadraddin - Jauap bar ma? | Official Music Video
2:53
SADRADDIN
Рет қаралды 13 МЛН
Zattybek & ESKARA ЖАҢА ХИТ 2024
2:03
Ескара Бейбітов
Рет қаралды 446 М.
BABYMONSTER - ‘FOREVER’ M/V
3:54
BABYMONSTER
Рет қаралды 81 МЛН
akimmmich (feat. Turar) - UMYTTYŃ BA?| official lyric video
2:54
akimmmich
Рет қаралды 2,9 МЛН