so i'm trying to make an arduino car with 4 tires,seems easy right? NO my main problem with this car is that I CAN'T GIVE THE MOTOR ENOUGH SPEED to move on the ground becuase it moves PERFECTLY in the air,you can clearly see how frustrated i'm with the capitals i'm using,anyways back to the main problem.so my 9v battery supplies 9V AND OVER 1A remember this number.now when i connect it to the L298N i see that the motor moves MUCH slower than when i give it direct volts so i measured it with a multimeter and it had 6 volts which is more than enough the speed i want BUT,when i measured the current it only had 105 mA!?and i know L298N has huge voltage and current drops but THIS IS WAAAY to much current drop,i'm using a hobby dc gearmotor here is the link:DC Geared Motor With Wheel For Robot - Lampatronics . i'm using an arduino uno and this is my code:
#define enable1 3
#define motor1 2
#define motor2 4
#define enable2 6
#define motor3 5
#define motor4 7
#define Xaxis A0
#define Yaxis A1
#define butt 2
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(butt, INPUT);
pinMode(Xaxis, INPUT);
pinMode(Yaxis, INPUT);
pinMode(enable1, OUTPUT);
pinMode(motor1, OUTPUT);
pinMode(motor2, OUTPUT);
pinMode(enable2, OUTPUT);
pinMode(motor3, OUTPUT);
pinMode(motor4, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(enable1,255);
digitalWrite(motor1, HIGH);
digitalWrite(motor2, LOW);
analogWrite(enable2,255);
digitalWrite(motor3, HIGH);
digitalWrite(motor4, LOW);
}
Yes, that has been mentioned many times on this forum which apparently you did not do any research on. When it is full on measure your battery voltage and your motor voltage. Then do the same thing without the driver. Note you will lose at least 3 volts that now drops the battery voltage to 6 Volts at best with the driver. This is assuming the battery is staying at 9V which I very much doubt. After doing this do a few tutorials on Ohm's law, that will explain why you need to re-investigate your current drop through the part. Next reread post #2 by jremington, it is a great answer and will solve your problem.
or heck even BETTER i have 2 9v batterys THAT WILL MAKE MORE VOLTS AND THERE IS NO WAY THE VOLTAGE DROP WILL AFFECT THE SPEED.i feel like i'm a mad scientest wanting MORE VOLTS AND CURRENT
My suggestion is that you spend some time watching basic electronics tutorials as well as some on ohm's law. This will go a long way in helping you understand what you are trying to do. Do you realize the 9V batteries are not capable of driving most motors. I highly recommend you get a multi meter so you can actually make some meaningful measurements.
Ohms law does not apply to free spinning motors...
If the motor spins fast, it will consume far less current than if it needs to do work an turns more slowly.
What is the resistance of that motor when stalled?
i read on google that it is possible to combine 2 batterys i just have to do very CAREFUL research on how to do it becuase it is quite dangerous but it is the only way i have...
unfortunately the supplier didn't tell no information on the hobby dc gearmotor but according to the standard hobby dc gearmotor the resistance is 24 ohms(i calculated it by using ohms law so my hobby dc gearmotor can withstand 12v and 2amps)