Hullo guys. I would like to convert my potentiometer readings into voltage..
This is my method.
sensorValue = potentiometer.Read(); // get the potentiometer reading.... Double Vxx = sensorValue * (1.0 / 1023) * 3.3; // convert to voltage String displayValue = Vxx.ToString();
Before doing the conversion, it displays the values i want(usually between 0 and 1023), but when i convert, everything goes wrong. instead of getting a value btn 0 and 3.3, i get funny values. I'd be glad for your help. Thanks.