Hello, I am making a robot arm and I m using MG995 servos, MG995 servo works in a way that from 0-90 it moves in one direction and from 90-180 it moves in the other direction. My servo works perfectly from 0-90 but from 90-180 it only works until 90-100, it moves but very slowly, i noticed when adding a second ground it works better but it doesnt help much. And from 100-180 it is just clicking, i tried adding second arduino to power but same result, i powering it by 6 volts and same result. There isnt much to code beside this
#include <Servo.h>
Servo servo1;
int input;
void setup() {
servo1.attach(2);
// put your setup code here, to run once:
}
void loop() {
servo1.write(180);
// put your main code here, to run repeatedly:
}
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.
Don't use the controllr board as power supply. It's no designed for motor curfents. Give the servo separate power.
Don't pass motor currents through breadboards
Alright, I have 3D printed a adapter that goes into an usb from which i can extract 5V can i plug that straight into a wall adapter bcs on wall adapter it says 5V or 9V so idk what will come out, i tried putting it into a power bank but it doesnt work
That worked perfectly, but now ive got a different problem, after being away for a few hours i disconnected and reconnected everything and now servos dont work, i connect them like before with same code but none work, its like they dont get power bcs they arent stiff and like every 30 mins one will randomly move after reconnecting and connecting it
I dont have a multimeter and I really should get one but even connecting it straight into powerbank like before without any breadboard it doesnt work, i tried plugging it directly into arduino which arduino should be able to power only one it doesnt work