Arduino Bluetooth project, problem while running with battery

In my project, I use two DC motors. Input to Arduino coming from Android device via Bluetooth shield. My project is working perfectly when Arduino is powered via usb cable from PC. If I powered the board with battery, motor is not running.

Help to find a solution.

Arduino UNO atmega8 I'm using.

Then I'm getting this error when I connect the board to some other PC.

avrdude: verification error, first mismatch at byte 0x0000
0x40 != 0x00
avrdude: verification error; content mismatch

Thanks in advance..

Almost certainly the battery is not providing enough current. But you have not told us what battery you are using. The 9v PP3 batteries are quite useless - use a pack of AA NiMh batteries.

I suspect you are also powering the motor from the Arduino 5v pin (but you have not provided a wiring diagram) and motors should always have their ow separate power supply.

...R

Thank you for your Response.

I used a 12V 1.3A battery for motors and a 6V 1.2A battery for Arduino. I attached the circuit diagram below.

IMG_20150128_143537~1.png

IMG_20150128_143606~1.png

IMG_20150128_143626~1.png

Sorry, but it is almost impossible to figure out wiring connections from photos of the project hardware. Make a pencil drawing of the circuit and post a photo of that.

Your power supplies seem to be adequate.
Have you a GND connection between the two power supplies?

...R

Added the circuit like you asked below.

I attached the circuit diagram like you asked.

abish_r01:
I attached the circuit diagram like you asked.

Thanks for the drawing. That makes things much clearer.

I wonder if the supply to the Arduino needs to be higher than 6v? The recommended voltage range is 7v to 12v.

Could you temporarily swap the 6v and 12v power supplies?

...R

I need to thankful for you.

First I tried with common 12V 1.3A battery for Arduino and Motors.

What might be the problem for this issue. Is the flow of current from battery is low? What is the highest Amps can be suplied to Arduino? and for 500rpm motor?

abish_r01:
First I tried with common 12V 1.3A battery for Arduino and Motors.

Am I correct to think that this did not work?

I deliberately did not suggest it because I thought 1.3A may not be enough for the motors plus the Arduino.

However it now occurs to me to ask do you mean 1.3A or 1.3Ah - and do you understand the difference. It is unusual to see an Amp specification for a battery, but quite common to see Amp-hours. The Ah value tells you nothing about the maximum current (Amps) that can be provided.

Can you provide a link to the specifications for the exact battery you are using?

...R

Excuse me. I made mistake. It is 6V 1.2Ah and 12v 1.3Ah. I bought the battery from local market. So don't have any link to share.

What is the minimum and maximum current supplied to Arduino and to the motors. Your advice will be very helpful to me.

Below is the image of the battery. What is the Amp in my battery. It has only charged with 0.36A. How to find the A of battery?

Very thankful to you.

That is a lead-acid battery. It will provide a huge current if required. Lead-acid batteries are ideal - but do make sure you don't leave it discharged for any length of time as that will greatly shorten its life. Ideally recharge immediately after every use. It's a good idea to have a fuse (perhaps 5 amps) near the battery terminal otherwise an accidental short circuit could cause a fire.

A similar 12v lead acid battery should be well able to power both the Arduino and the motors. With a large battery like that there should be no need for a separate Arduino power supply.

You never answered my question about whether the 12v battery on its own was able to power both? If you don't answer all the questions it is very hard to give useful advice.

I guess it is possible that you got a faulty battery. Can you measure the voltage at the battery terminals while you are trying your project?

...R

The 12V battery is also a similar type. It has 11.7V now. In the 6V battery it has 5.6V now. I tried multiple times with the battery and with USB connection. Still it is making same trouble.

How to find the Amps of a battery. What is the amps of the battery which I shared on the thread above. Both are new batteries.

How do I find whether the supply from the 12V battery is enough for both the Arduino and DC driver?

abish_r01:
How do I find whether the supply from the 12V battery is enough for both the Arduino and DC driver?

How about reading all the Posts in this Thread.
I already answered this question, or was I wasting my time ?

The 12V battery is also a similar type. It has 11.7V now. In the 6V battery it has 5.6V now.

If that is the voltage when not connected to anything, recharge them. When fully charged and after being disconnected from the charger and then left to settle completely unused for 10 or 12 hours the voltage should be about 12.5 or 12.6v. The 6v battery should obviously be half those figures.

If 11.7v is the voltage when it is powering your Arduino the Arduino should be working perfectly. Battery probably still needs charging.

...R

I tried with charged old battery of 12.8V, still no possitve. I bought a new battery with 12V, 4.5Ah and charged from 4 hours. It has 13.5V now. I tried with that also. Still same problem happening. Below is the image of the battery. Was the L293 motor driver had problem of getting power from battery?

Will the L298 motor driver work?

Let's go back to basics.
Does the project work if the Arduino is powered from the USB cable and the motor is powered from the 12v battery?

Does the Arduino work (without the L293 connected) if it is powered by the battery rather than by the USB cable. If necessary add some flashing LEDS so you can be certain.

When BOTH of those situations work properly ...
Does the Arduino work with the L293 connected if the Arduino and the L293 are powered from the 12v battery - use the flashing LEDs for confirmation.

Does the Arduino work with the L293 connected if the L293 is not asked to do anything - i.e. a check on interference caused by the motor

I note in your diagram that you seem to have the GND from Bluetooth and the GND from the L293 connected together before they connect to the Arduino. It may be worthwhile giving the Bluetooth device a direct GND connection to the Arduino.

...R

Robin2:

  1. Does the project work if the Arduino is powered from the USB cable and the motor is powered from the 12v battery?

  2. Does the Arduino work (without the L293 connected) if it is powered by the battery rather than by the USB cable. If necessary add some flashing LEDS so you can be certain.

  3. When BOTH of those situations work properly ...
    Does the Arduino work with the L293 connected if the Arduino and the L293 are powered from the 12v battery - use the flashing LEDs for confirmation.

  4. Does the Arduino work with the L293 connected if the L293 is not asked to do anything - i.e. a check on interference caused by the motor

  5. I note in your diagram that you seem to have the GND from Bluetooth and the GND from the L293 connected together before they connect to the Arduino. It may be worthwhile giving the Bluetooth device a direct GND connection to the Arduino.

...R

1,2,3,4 all tried, worked perfectly. Motor is also running with l293. But I integrate sensor, bluetooth not working.

Yes for (5) I made a common connections like in the below image.

Again I'm using code for bluetooth connection test as below.

if(Serial.available())
{
int a=Serial.read();

if(a==1)
{ Motor forward
}

else if(a==2)
{
Motor reverse;
}

else
{
Do Nothing;
}
}

else
{ Serial Error;
}

Will this Serial Communication test works if I removed the USB cable?

abish_r01:
1,2,3,4 all tried, worked perfectly. Motor is also running with l293. But I integrate sensor, bluetooth not working.

I am confused.
In your original post you said

If I powered the board with battery, motor is not running.

Now it seems that the motor does work when everything is battery powered.

A Is bluetooth working if you don't connect the sensors?
B Is bluetooth working if you connect the sensors but don't read them?
C What happens when you try to read the sensors - give as much detail as possible.

...R

Sorry for the late reply. I got some problem with Arduino. Two IC getting heated always. 1 while giving power from 4.5Ah battery and 2 heating while USB connection. What is going on in my board. I'm confused totally.

Before that I changed the Bluetooth(Old Bluetooth is got faulty). My project works fine for one moment. After that Arduino was not working properly. So I ordered new original UNO. Can I use the same 4.5Ah battery?

Attachment is below.

abish_r01:
Two IC getting heated always. 1 while giving power from 4.5Ah battery and 2 heating while USB connection. What is going on in my board. I'm confused totally.

Without a detailed wiring diagram it is impossible to answer that. You don't even say which ICs were overheating or what voltage battery you were using.

Before that I changed the Bluetooth(Old Bluetooth is got faulty). My project works fine for one moment. After that Arduino was not working properly. So I ordered new original UNO. Can I use the same 4.5Ah battery?

Do you mean the the overheating only started when you changed to the new luetooth device?
As you have told us nothing about the battery I can't answer that part.

Attachment is below.

I don't think a photo of an Uno adds much information on this Forum.

You never took the trouble to answer the questions in my previous Post - Reply #16
I asked them so I would be better able to help you - not because I like typing.

...R

Robin2:
Without a detailed wiring diagram it is impossible to answer that. You don't even say which ICs were overheating or what voltage battery you were using.

I didn't connect anything with the Arduino. Eventhough it is heating. I circled the IC which was heating in that image I uploaded. The ICs are 78M05G, CP2102.

I just connected the USB cable to power up Arduino, the IC CP2102 is heating.
Again I tried with 4.5Ah 12V Lead battery the IC 78M05G is heating.

Do you mean the the overheating only started when you changed to the new bluetooth device?

No. Actually after changing the bluetooth the project worked fine once. Then only the overheating problem occurs the next day.

I don't think a photo of an Uno adds much information on this Forum.

You never took the trouble to answer the questions in my previous Post - Reply #16
I asked them so I would be better able to help you - not because I like typing.

I tried one by one like you said. Finally I found bluetooth shield is the problem. After changing the bluetooth my Arduino get faulted next day. Arduino is overheating and Atmel atmega8 chip verification error.