djsfantasi
- Joined Apr 11, 2010
- 9,237
The Arduino variant of C includes a “map” function if you have trouble with the algebra. Instead of using the map function, divide the value returned by analogRead() by 16 and you’ll have a value in the range of 0-64. Or you can use the map() function. It’s up to you!I know the analogread() function gives values between 0 and 1023 (0 to 5V) for an analog potentiometer. If I can somehow scale this to be 0 to 64, shouldn’t it work with the chip?