I have an arduino uno connected up to a HC-05 bluetooth module and some motors that are connected to a driver. I have been able to connect to the module but for some reason when I send a command to the module the motors only move very slightly and stop instead of constantly rotating. When connected via cable everything works perfectly. I currently have it connected to a 9V battery and have tried using 2 9V batteries to no avail. I have not seen this problem anywhere and would really appreciate some help. I have attached my code. I'm also using Tera Term if that makes a difference.
Please post a schematic. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies. Include technical data for the components.
The Uno, by itself, needs about 50mA.
What is the stall current of the motors? The stall current can be several times the running current. The stall current will be drawn, briefly, every time that the motor is started. The stall current should be listed in the motor data sheet.
You will need a supply that can provide for the Uno plus the stall current of 4 motors.
That ancient technology L298 driver is not really the best (OK, it is nearly the worst) motor driver for use with a battery powered project. It will drop 2V to over 4V of the motor power supply and dissipate that power as heat.