Hello, I am trying to make a 12v linear actuator move as a hobby servo with an adjustable PID loop. The linear actuators have 10k slide potentiometers to measure position. I have experience in C++ programing, I have bought a copy of “Motors for Makers,” I still do not know enough to write the sketch. I have spent a decent amount of time looking for sketches, but I only find people running small hobby servos. I downloaded the Arduino compiler program, and read the forum rules. I need to take hobby servo PWM as input (from Frsky 8xr RX), then based on my position error a PID loop being run on the Arduino gives me power smoothly to desired position of the linear actuator. I have a powerful set of H-bridges to run the actuator, but I need the input signal to those H-bridges generated by the Arduino. Any help would be greatly appreciated, thank you! I need a sketch that I can tweak the PID for smooth servo performance. This will allow me to plug the Arduino into a RX receiver, and run the linear actuators as large servos.
thanks a million