Hi, my name is Valentin.
I`m glad to join this forum and to make my first steps in world of Arduino.
I found code (tested it), that measure actual RPM of motor (D3 pin)through optical sensor
and output PWM signal (D11 pin)to achieve target RPM.
That make PID control, and closed loop system.
But this code control brushed DC motor, and that is my problem.
I want to control ESC hooked on RC brushless motor. I already seen some videos
(and code) that prove that is achievable with Arduino servo library, but at this level,
i can not do it myself.
Help me edit code so i can send signal to ESC instead.
All credits go to mr.jmhrvy1947.
Here is the video DIY Arduino/Leonardo CNC Spindle Speed Control - YouTube
Here is the complete his work on github GitHub - jmharvey1/Arduino-CNC-Speed-Control: Arduino/Leonardo Speed Control Code; As shown on YouTube Video http://youtu.be/kYFNUQgE26E
I also atached this code as text.
code.txt (36.9 KB)