Pages: [1]   Go Down
Author Topic: Potentiometer reading  (Read 335 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
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.
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 217
Posts: 13724
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)

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: