I installed arduino software to do some robotic stuff,the problem that i am facing is when i upload a program into the arduino board and make the robot work it is working but when i disconnect the cable from the computer the robot doesn't work..I don't know if there is any settings that has to be changed
the arduino board is ATmega8 and i have selected the correct serial port and board.And i would like what should i select in programmer from the Tools tab.
Pls help me to find a solution and Thanks in advance
When connected to your PC with the USB, the Arduino is getting 5v from there. You need to provide a replacement for that power, eg 9v through the barrel connector.
Have a look at the product page for your board, like this one for the Uno to see the connections and what voltage is appropriate.
In one post you say that the batteries are not connected to the Arduino, but then you agree with my post and say yes you have connected power to the Arduino as in that link.
But assuming you do have the batteries connected to Arduino you might be short on volts. The link says use 5x alkalines which will give you 7.5v @ 1.5v each.... you say you have 5 x 1.2 which is only 6v and below the recommended 7v for the barrel jack input.
That's a great tutorial on how NOT to hook up batteries to the Arduino
What did I miss James?- I must confess I didn't read every word (had just got home on Friday evening and was trying to chill....) but is there something wrong with it?
(I quite like that doodah they have for adding a 5th cell to a 4-pack... clever (albeit kludgey))