I am a graduating student and I badly need your help regarding my project which is an arduino-based dual-axis solar tracker or solar panel. I have simulated my circuit and code in Proteus and it worked but when I implemented the project, I couldn’t get it to work. I don’t really know what’s wrong. Maybe you can critique my program or circuit. Please help me guys.
Here’s the code: #include <Servo.h>
Servo myservo;
int pos = 90;
int ldr1 = A0;
int ldr2 = A1;
int tolerance = 2;
Servo myservo2;
int pos2 = 90;
int ldr3 = A2;
int ldr4 = A3;
int tolerance2 = 2;
rhidjel:
Neither of the two servo motors move. Is it possible for arduino to supply two 5-volt motors?
You should not power even a single motor from the Arduino 5v pin - it cannot provide enough current and trying to draw too much current may damage your Arduino.
Give the motors their own power supply with the motor GND connected to the Arduino GND.