4# How to Code Potentiometers (Complete Guide) - MIDI Programming for the Arduino

  Рет қаралды 9,578

Nerd Musician

Nerd Musician

Күн бұрын

Пікірлер: 48
@ronzonmusic
@ronzonmusic Жыл бұрын
I have been searching for exactly this forever, this video is perfect timing. Thank you!
@NerdMusician
@NerdMusician Жыл бұрын
Awesome!
@tawobols
@tawobols 11 ай бұрын
Thank you so much! With your help and all your content I was able to start working on my first midi controller for my Tibetan bowls project with a captive touch sensor. So many tips in your videos! I'm really very grateful to you 🙏🏼
@NerdMusician
@NerdMusician 11 ай бұрын
Great to hear!
@matsukadub-official
@matsukadub-official Жыл бұрын
i've paid for the online course and also find it super cool and nice that you also post those videos for everyone to enjoy ;-) !
@NerdMusician
@NerdMusician Жыл бұрын
Thanks, man!!
@genghisbunny
@genghisbunny Жыл бұрын
Your lessons are so useful, thank you. One day I might be able to afford your course, but in the meantime I'm enjoying your videos, and appreciate them.
@NerdMusician
@NerdMusician Жыл бұрын
Thank you so much!
Жыл бұрын
Me encantan tus videos, son muy estimulantes, por favor no pares!
@LostID_r2d2
@LostID_r2d2 2 ай бұрын
Many thanks man! really appreciate you way of teaching! would considere going advanced after se all your posted stuff and test a little bit prototyping.
@londondirt1217
@londondirt1217 Жыл бұрын
I’m loving the new content dude ❤
@NerdMusician
@NerdMusician Жыл бұрын
Glad you liked it! I'll keep doing more coding stuff. :)
@pabloivan6017
@pabloivan6017 8 ай бұрын
THX for the video. Easy & fast way for DIY MIDI, also cheap.
@Nightsbringer1
@Nightsbringer1 Жыл бұрын
Just found this video series and I'm very impressed honestly. Will you add something on adding multiplexers as I'm rather confused as how to do that!
@cyrilcalmes4208
@cyrilcalmes4208 9 ай бұрын
Excellent video. Just one question, could we use interruptions to deal with faders ?
@80s_GILA
@80s_GILA Жыл бұрын
Im trying to build a controlller for Rekordbox but is doesn't seem to register the controller. Am i doing something wrong or doesnt rekordbox allow custom controllers? *edit* the controller is gonna be a add-on to a DDJ-FLX4
@ludovicamennella882
@ludovicamennella882 Жыл бұрын
this is super useful!! can you also make a video about buttons made of forse sensitive resistor or piezo to control velocity? thank you so much!
@NerdMusician
@NerdMusician Жыл бұрын
It’s in my todo list!
@TheTekordBay
@TheTekordBay Жыл бұрын
Amazing channel!
@deividsoneduardokling
@deividsoneduardokling 6 ай бұрын
Boa noite amigo. Já tem alguns meses que estou tentando usar o Arduino uno pra fazer um octapad para meu filho de 12 anos que é baterista. Mas não consigo fazer o Arduino controlar midi no maços. Em outros videos mais antigos VC até mostra como usando o hairless midi. Mas não consigo mais instalar no maços Monterey. Tem alguma dica? Queria que o Arduino uno que tenho em mãos, controlasse o kontakt
@shambhavi-nw4fd
@shambhavi-nw4fd 8 ай бұрын
i connected 8 potentiometer to a 16 channel mux, how to code for that
@andreasfurxer4135
@andreasfurxer4135 Жыл бұрын
Hello, I am using an Arduino Leonardo, and I have installed 4 potentiometers and 3 buttons, adapting the code accordingly. Everything works smoothly so far. However, the potentiometers do not behave as I would have liked. Unfortunately, the control range of the potentiometers is very short. When I set the potentiometer to about 60 percent, the MIDI value is already at 128. I am using a 10K fader as a potentiometer (128mm). Is there any way to adjust this control range? Best regards from Austria, Andi
@pulsmond
@pulsmond Жыл бұрын
Help me figure it out: Ableton Live does not see the connected controller before launching Ableton. If I turned on the controller after starting Ableton - everything is fine, everything works. Why is that?
@scepticore
@scepticore 10 ай бұрын
Does the resistance of a poti matter in that case?
@NerdMusician
@NerdMusician 10 ай бұрын
It matters more if you use different values, because it will give you different curves, but just stick from 5-20Oohms. 10Ohoms is ths standard.
@DanTechGA
@DanTechGA 11 ай бұрын
I'm having an issue at compiling in the loop. I get ""controlChange" was not declared in this scope." Any idea why? I love the video, but I'm stuck!
@nadien.6438
@nadien.6438 Жыл бұрын
Hello! im having trouble usingthe code with the arduino mega ch340 atmega 2560... does it has to do with the micrchip?
@Lugubrisimo
@Lugubrisimo Жыл бұрын
Lástima que el daw reaper no bo lo reconoce y siempre veo que prueban en Ableton
@dabinjung5684
@dabinjung5684 2 ай бұрын
Can I also use slide potentiometer instead of this?
@raphanunu6912
@raphanunu6912 Ай бұрын
Of course. Simply take care of the pot curve, linear, log or anitlog.
@s.h.a.m.r.i.k
@s.h.a.m.r.i.k Жыл бұрын
Midi 2.0 support?
@pierrebertram5555
@pierrebertram5555 Жыл бұрын
Would it be kind of the same process in Linux ?
@NerdMusician
@NerdMusician Жыл бұрын
I believe yes.
@linzenmeyer
@linzenmeyer Жыл бұрын
How to code joysticks How to code Touchpads How to code Sliders How to code readouts and light strips These are all the ideas I could think of. And to sweeten the pot for you, I will send you boxes of gear for you to use in those videos. Get with me, I believe all my contact info is in my youtube.
@timeubank4687
@timeubank4687 Жыл бұрын
Joysticks are just two pots. X and Y
@patrickburke3826
@patrickburke3826 Жыл бұрын
🙏🙏🙏🤓
@NerdMusician
@NerdMusician Жыл бұрын
\o
@jozefsoucik3115
@jozefsoucik3115 6 ай бұрын
0, 127 (128 states) ...not 0,128 ...because 0-128 is 129 which not 8 bit but 8bit + 1
@NerdMusician
@NerdMusician 6 ай бұрын
If I said that it was just a confusion, you are right.
@jozefsoucik3115
@jozefsoucik3115 6 ай бұрын
@@NerdMusician I was confused these things so many times...0 is states as others... therefore decimal numbers are represented 0 to 9...not to 10
@alexcostafotografia
@alexcostafotografia 11 ай бұрын
Brazilian?
@chrisw1462
@chrisw1462 Жыл бұрын
If I couldn't move a CC knob very fine, I'd get rid of the MIDI controller. Your 'threshold' and timer is way too much compensation.
@NerdMusician
@NerdMusician Жыл бұрын
With this "compensation" I get VERY fine readings. That's how it's done!
@merumerutho
@merumerutho Жыл бұрын
Place a capacitor between potentiometer output and ground. It acts as a low pass filter and removes the noise.
@timeubank4687
@timeubank4687 Жыл бұрын
The problem is MIDI. you only get 128 values. there are no decimals. I'm not sure what you would replace a midi controller with to execute midi commands. Getting a multi turn pot that allows fine precision won't do you any good to turn it 6 times to go from 0 to 1, you can get 0 to 1 with any Kb pot just fine.
@chrisw1462
@chrisw1462 Жыл бұрын
@@timeubank4687 When I said I'd get rid of it, I meant because it was malfunctioning. You'd replace it with one that works as it should.
@chrisw1462
@chrisw1462 Жыл бұрын
@@NerdMusician The problem with the code is using the built-in map() function _before_ compensating for changes. Compensating _after_ map(), loses resolution and some control. If, instead, you use a hysteresis function before map(), you can keep the resolution and get even finer control. The ADC read function would save the last reading and compare it to the current one. Then, if and only if the value has changed more than 3 or 4, you call map() and MIDIstate() to see if the MIDI value needs to change. (If it's less, throw out the new reading and keep the old one.) Tune the comparison value (3 or 4) until you are happy with the control. Of course, @merumerutho's suggestion of adding a small capacitor across the potentiometer would also help - both the cap and the code change would make it very stable. A 100 nF (0.1 uF) cap is enough, and should help with local electric field changes, too (no value changes just because you moved your hand).
Coding a DIY MIDI Controller From Start to Finish (edited version)
59:44
How to Build Arduino MIDI Controllers - The Complete Guide
1:16:47
Nerd Musician
Рет қаралды 91 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
7 INSANE Keyboards You Won’t Believe Exist!
20:11
Sanjay C
Рет қаралды 407 М.
Arduino Tutorial 12: Understanding Potentiometers
28:44
Paul McWhorter
Рет қаралды 337 М.
The Toolbox: How to use MIDI controllers in your sims
15:18
SpannerUnderscore
Рет қаралды 9 М.
Level Up Your WLED Projects: A Guide to adding Components (no code!)
43:37
Taking a look at a motorized linear potentiometer
4:34
Critters
Рет қаралды 82 М.
The 6 Biggest Mistakes while Building MIDI CONTROLLERS
9:38
Nerd Musician
Рет қаралды 16 М.
#5 How to code Encoders - MIDI Programming for the Arduino
24:11
Nerd Musician
Рет қаралды 7 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН