Hello MarkT and thank you for your replay !
Firstly i tried to use some PID algorytms but i faild because all the algorytms that i used where designed for relay output, like a thermostat applications, AND, the PID library form Arduino reference is not really PID because when that library don't use a "reaction" in the loop - so if you can't measure (or know) your actual RPM, you can't modify-it to your desired RPM.
Now i whant to use something like this
- I have an array with few RPM , like 1000, 1500, 2000, 2500 rpm;
- I start the motor at (for example) 2000 rpm;
- I push the break -> and the motor speed will slow down (for example down to 1500);
- from Arduino I increase the PWM lenght so even with the break, my motor will run at 2000 rpm
Regards!
Radu DAN