Scale values for microcontroller