Pages: [1]   Go Down
Author Topic: Potentiometer reading  (Read 342 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I'm working on MIDI controler using USB/MIDI cable. It works nicely, but when I a rotate pot it starts to flicker. I looked at the console and it seems like my filtering doesn't work, because the value is changing by 1. I mean like 125,124,125,124 and causing to my master volume in a DAW go crazy. Could anyone help me to create a filtering, that will elliminate this problem? Thanks a lot.

Global Moderator
Online Online
Shannon Member
Karma: 227
Posts: 14009
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I assume the solution is to take the average of multiple readings, or to average the current reading with the previous one.
(depending on the reactivity you want)


Rob Tillaart

Nederlandse sectie -,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: