Hello fellow geeks/geekets!
This is my first forum post here at Arduino. I have been learning arduino/3d printing like a madman over the last three months and now I have here stood on my workbench a set of robot legs(12DOF) that use ir light sensors at the joints to give accurate position data to my arduino mega 2560.
I have a 5V voltage regulator chip providing the power to the mega 2560 and also the supply for the phototransistors which give voltage readings to the analog pins. My question is this:
Given that I have the same regulated 5V supply to the phototransistors and to the arduino board, would using analogReference() give me any more accuracy over my reads?
My code polls 12 analogue pins continuously to give real time info about limb positions, so would the analogReference function update quicker than 2kb worth of code looping, to deal with small voltage fluctuations and give more accurate reads?
I notice that voltage reads (0-5v) divided over a scale of roughly a thousand seems to fluctuate randomly ~ 30 points or so between reads and wondered if analogRead() function would deal with this fluctuation and stop my legs buzzing and trembling.
However if analogRead function is much slower, it would probably work against stability as it would create delayed reactions.
Sorry if this all sounds like gobbledy-goop. Thanks for any input