Hello and thank you for reading this. I am a hobbyist so please bear with me
.
I am making a linear actuator. Pretty simple setup. The servo (NEMA 34) needs a PWM pin of my Mega (pin5), and three digital pins (6,7,8). The servo then is grounded to the Mega GND pin. I then run a linear pot for positional measurement, 5V, GND and A0 of the Mega. As long as the servo is powered down the pot readings are perfectly stationary (+/_ 0%). But when the servo is powered up and especially moves the reading are all over the place (+/- 5%). The pot wires are really long (10 ft) but are shielded but not grounded. The motor supposively uses optoisolators in the interface. The Mega is being powered by PC USB and the Servo by an dedicated power supply from the servo manufacture. I spoke to the company and said the servo utilizes optoisolators so it might be on the AC/DC side of things. I have no idea what that means. From reading the forum a couple of ideas would be: 1. to put capacitors on the sensor lines somehow, 2. average the sensor readings, 3. shield everything better, 4. beg for help. I would at least like to understand where is the noise coming from. Thank you again!
The servo is a Clearpath intergrated Servo Motor CPM-MCVC-3446P-RLN > ClearPath IP-5 power supply .
