i am currently working on a project with arduino and puredata, where potentiometers control sound.
i managed to get values from 0 to 1024 from the potentiometers and connect them to sound. however, one of them is giving me weird numbers like a value of 22394. it is the last potentiometer in the row, and it is not broken or anything, at other places it works perfectly. when the poti next to it is at a low value under about 100, the value of this last potentiometer is displayed as a "+". then over 100 it jumps to 22394 and continues on in these high numbers.
any ideas what could be the problem?
As the analogue function only reads values up to 1023 if it returning anything else it has to be a software error. You could be out of RAM or there could be an array being written to out of bounds and trampling on bits of the memory used by that channel. Try striping the code back so you isolate the function going wrong with as little else in the system as possible and see if it goes away.