HI, sorry for the confusion. Basically i have the L293D wires based on its schematic. I have it going to pwm pin 5 on my arduino micro. I have the Pololu 2823 motor encoder to 5v. And I have Vss on the L293d to my varying voltage. i realize that realistically this only varies between about 5 -10v, so as i change that voltage I wan the motor to adjust and maintain and rpm that i tell it to. Right now i just have it hardwired and i have a code that its displaying the rpms i have on the serial monitor...these vary depending on voltage, I want it to stay constant(ish)