I'm having trouble trying to map the value and drive a servo speed controller. I have the LCD displaying a percentage 0-100% to represent the current flowing through the speed controller. The problem is when the LCD displays 100% the speed controller is stop. When the LCD displays 0% the speed controller is wide open. I been playing with this for several hours. The values flipped and i cant seem to figure it out.
cutSpeedPot = analogRead(cutspeedPin); // reads the value of the potentiometer (value between 0 and 1023)
cutSpeed = map(cutSpeedPot, 1023, 0, 180, 0); // scale it to use it with the servo (value between 0 and 180)
cutSpeedLCD = map(cutSpeedPot, 1023, 0, 100, 0);