Frequently shifting position in my laboratory viewing solution utilizing (3) ultrasonic sensors, (3) servos, an Arduino Uno and an excessive amount of averaging (see below) to lessen interference.
// FollowTV // Vije Miller
#include "Servo.h"
const int atpin = 2; const int aepin = 3; const int btpin = 4; const int bepin = 5; const int ctpin = 6; const int cepin = 7;
// For Cycle const int num = 15; int i = 0; // Limit Distance const int limit = 5500; int hold = 500;
long adur, atot, afix; long bdur, btot, bfix; long cdur, ctot, cfix;
Servo lfs; // Left Front Speaker const int lfsout = 69; const int lfsin = 92;
Servo mon; // Monitor const int monl = 145; const int monc = 91; const int monr = 45;
Servo rfs; // Right Front Speaker const int rfsin = 63; const int rfsout = 78;