Hello, I have a group of students that have made a miniature battle bot car and followed directions from the following video.
The problem that they've run into is that with everything connected only one motor will run at a time. If they remove a pin off of the A or B motor driver board and plug it into the 5V behind it the other motor will turn in and vice versa.
They arn't allowed to use a lithium battery so they are utilizing 6 AA batteries.
Please post the sketch here, using code tags when you do. In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
Please post a schematic of the project showing all of its components, how they are connected and how they are powered. A 'photo of a hand drawn circuit is good enough
I will take a SWAG and suggest you measure the battery voltage when running no, 1, 2 motors and let us know what you get. Sorry you did not supply enough information to determine what you have much less what the problem is.
Apologies, I am very new to all of this. I have attached the ino file and will get the voltage readings shortly. I am a middle school teacher and my student is in a MESA competition that only allows their bot to be 750grams. Lithium batteries are not allowed so we are using AA batteries currently we have 6 connected to the motor driver and 6 connected to the arduino.
Sorry..
Voltage
when checking the 12v / GND I get 12.2v
Output A and B both get 4.5 with the 5v jumper plugged in
Without the 5v pin the board doesn't turn on.
If i put a pin in the 5v power supply and reroute it back into the 12v the voltage continues to rise non stop The board turns back on and both wheels will activate slowly. Output A and B Fluctuate between 10 and 20
Good question. Are they using the exact same Flysky tx and rx? The one in the video link shows a model aircraft type where the left stick doesn't auto center.
Lots of times for a bot such as this, you may find it easier to use the one stick only, the right one (elevator and aileron) and mix the channels in the radio settings themselves to get what you need. You can play around with this live, just get the wheels off the ground by placing the bot on a soup can or something like a stand.
Sorry had class I believe this is what your asking for. I am using the exact same receiver and transmitter from the video. I followed his directions to change channels and set switches to control the wheels.
A very big difference between the video and your schematic is that they used 3 1860 lithium batteries AND they they have 2 sets of leads comming off the battery pack. One set goes to the driver board, the other goes to the barrel input of the Uno. This means that GND and +VCC (in their case 3.7 x 3 = 11.1V) are tied together. In your configuration, they are not. At the very least, you should have the ground wires tied together so you have a common ground throughout your entire system.