We're complete beginners with Arduino and we're working on a project that moves a pointer based on a color sensor reading.
weWe used two servo motors each: one performs a specific task, the small servo works pretty fine. the The problem is with the larger one.
weWe used this servo motor model: (towardpro MG996R). Arduino UNO, Arduino Uno and a color sensor
because. Because the motor is large we connect it to a 9 V power supply 9v.
butBut when we run the code it just vibratingvibrates in its place and the arm won't move :(
isIs there anything else we need to add to the circuit like a resistor or some thing!
HELP?
#include <Servo.h>
Servo largeServo;
void setup() {
// put your setup code here, to run once:
largeServo.attach(6);
largeServo.write(0);
}
void loop() {
// put your main code here, to run repeatedly:
largeServo.write(0);
delay (2000);
largeServo.write(30);
delay (2000);
largeServo.write(60);
delay (2000);
largeServo.write(90);
delay (2000);
}