I am creating a bluethoot controlled car and when i send them the signal or even if i test them, the motors will start to work fine for a moment but then , suddenly beep and stop working.Please I neep help.
Also when i code them to work and change direction every 5 seconds , works , stops , beeps , and every 5 seconds it rotates but just a little little bit
Hi , Im new and probably made a stupid mistake but I am creating a bluethoot controlled car and when i send them the signal or even if i test them, the motors will start to work fine for a moment but then , suddenly beep and stop working.Please I neep help.
Also when i code them to work and change direction every 5 seconds , works , stops , beeps , and every 5 seconds it rotates but just a little little bit.
Sometimes it doesnt even start to work , it just makes this little movements and starts beeping.
This is the code for a motor test.
Using L298N motor driver and 6V battery
Code:
int IN3 = 6;
int IN4 = 5;
void setup() {
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
}
void loop() {
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
delay(5000); // girar en un sentido
digitalWrite(IN4, HIGH);
digitalWrite(IN3, LOW);
delay(5000); // gire en el otro sentido
}
Your two topics on the same or similar subject have been merged.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.