solar tracking system project using arduino and ldr
#include <Servo.h> Servo sunflower; const int ldrLeft = A0;const int ldrRight = A1;const int servoPin = 9; int angle = 90; // Centre positionconst int threshold = 50; // Ignore small light differencesconst int stepSize = 2; // Movement per … Read more