I have 4 BLDC 2200kv motors connected to 4 different 30A ESCs and they have connected to 9v general-purpose batteries and an Arduino UNO. but the thing is none of them were working(stuttering). I have no idea what has gone wrong.
I would suspect the connections or soldering if only one of them were stuttering, but that's not the case. what would have gone wrong?
Are these batteries PP3s by any chance ?
yes, they are
Look up the specifications on those batteries. What is their current capacity?
Oh dear
PP3 batteries can supply very little current, which is probably the cause of the problem along with the fact that the voltage will drop at the same time
Use a more capable power supply such as 6 AA batteries in series or a mains power supply capable of delivering a few amps
I used 2 9v pp3 batteries in parallel but the result is the same
Twice as much a little bit of current is still not enough current
Can you measure the voltage of the batteries with your sketch running and the motors powered ?
it's already midnight here
so I will try tomorrow
can there be any problem other than the battery?
Yes, of course, but give the sketch and circuit the best chance of working by providing sufficient current at the correct voltage
For more help you will need to post your sketch and a schematic of your project
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Yes, but those probably won't show up until you have fixed the battery problem.
Hint: 9V PP3 batteries are not "general purpose". They are mostly used for smoke alarms and a few other very low power devices.
As well as the useless battery you have wrong values in attach(). You don't need the last 2 parameters at all but if you do want to put them in then 1000, 2000 is normal. Where did you get 0, 1000 from? Those values make no sense.
Steve
that's the range of the values
and it doesn't give me an error at all
What do you mean "That's the range of the values"? Who says it is? The actual possible range for the Servo library is 544, 2400.
It won't show any error, it just won't work. You should realise that if you have any idea what those 2 parameters are for.
Steve
You need a very high current capable power supply for RC motors and ESCs - typically high current LiPo packs are used. Expect the motor to require 10A+ simply to start up reliably without the ESC cutting out. PP3 9V batteries are in the 0.1A maximum kind of region, a full two orders of magnitude too feeble to be of use for this sort of ultra-high power density motor.
To give an idea of the problem the typical BLDC used for RC models has winding resistances measured in tens of milliohms - thats hundredths of an ohm, compared to an ohm or two for a standard brushed toy miniature motor.
All motors take large currents, but RC motors are in a league of their own.
