Hello, I am looking for a program to monitor 4 servomotors by a detector ultrasonic HC-SR04 (external power supply). The movement of each servo is different.
I am totally beginner.
Thank you to all
Hello, I am looking for a program to monitor 4 servomotors by a detector ultrasonic HC-SR04 (external power supply). The movement of each servo is different.
I am totally beginner.
Thank you to all
message d'Arduino :
sketch_oct23a:49: error: redefinition of 'Servo towerpro'
sketch_oct23a:4: error: 'Servo towerpro' previously declared here
sketch_oct23a:50: error: redefinition of 'Servo futaba'
sketch_oct23a:5: error: 'Servo futaba' previously declared here
sketch_oct23a.ino: In function 'void setup()':
sketch_oct23a:53: error: redefinition of 'void setup()'
sketch_oct23a:6: error: 'void setup()' previously defined here
9V will be too high for the servos probably so unless you have a DC-DC converter or a 5V regulator it may be better to go with the 4*1.5V batteries
Regards
Peter
I think the code was accidentally pasted twice, delete the second copy of the declarations, Setup() and Loop() methods etc then it should work