The motion of the Piezo actuator displaces with the increase in control voltage, and again displaces back with the decrease in control voltage.
this to and fro motion of the actuator will be controlled by arduino.
For advancing the actuator, I am using this code,
int led_pin = 11;
int led_pin1 = 10; //Initializing LED Pin
pinMode(led_pin, OUTPUT); //Declaring LED pin as output
for(int i=0; i<255; i++) //Fading the LED
to retrace back to the original position. I request your help.
please can you share me a coding on to and fro motion of an actuator controlled by voltage.