Constant RPM with varying voltage

Any advice would be great

Do NOT input 12V into the Arduino.

How do you expect to maintain a constant RPM when you supply 0V? Unless the constant is 0.

You need to try again to explain what you are doing. Schematics are in order. Post your code!