Offline
Newbie
Karma: 0
Posts: 5
|
 |
« on: February 01, 2013, 05:22:14 am » |
Hello Friends 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 link is http://learn.parallax.com/node/241. 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
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5171
CMiYC
|
 |
« Reply #1 on: February 01, 2013, 09:23:04 am » |
What's the power supply you are using when not connected to USB?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #2 on: February 01, 2013, 10:52:56 am » |
I use 5 batteries of 1.2 volts each
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5171
CMiYC
|
 |
« Reply #3 on: February 01, 2013, 11:00:49 am » |
What kind of batteries? How are they connected together (series / parallel)? Where are you connecting them to the Arduino?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #4 on: February 01, 2013, 11:05:28 am » |
It is AAA size batteries and i a not connecting it to the arduino board I am using it Robot
|
|
|
|
|
Logged
|
|
|
|
|
Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #5 on: February 01, 2013, 11:39:47 am » |
So where's the Arduino getting its power from? 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.
|
|
|
|
« Last Edit: February 01, 2013, 11:43:28 am by JimboZA »
|
Logged
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #6 on: February 01, 2013, 11:57:27 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #7 on: February 01, 2013, 12:00:58 pm » |
I would like to know which option should i choose in while uploading is it upload using programmer or simple upload
and what is the programmer option from the tools tab what should it be selected by default is it AVR ISP or parallel programmer or anyother
|
|
|
|
|
Logged
|
|
|
|
|
Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #8 on: February 01, 2013, 12:13:29 pm » |
I'm confused....
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.
|
|
|
|
|
Logged
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5171
CMiYC
|
 |
« Reply #9 on: February 01, 2013, 04:42:47 pm » |
Do not believe everything you read on the internet. That's a great tutorial on how NOT to hook up batteries to the Arduino.
|
|
|
|
|
Logged
|
|
|
|
|
Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #10 on: February 01, 2013, 11:19:42 pm » |
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))
|
|
|
|
|
Logged
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5171
CMiYC
|
 |
« Reply #11 on: February 02, 2013, 02:02:56 pm » |
In this case, the 1.2V cells will only yield a nominal 6V. 6V into the regulator with Servos attached is not going to work well.
Even with 1.5V cells, the voltage is going to drop relatively quickly to the point of making the regulator unstable -- especially with a load.
|
|
|
|
|
Logged
|
|
|
|
|
Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
|
 |
« Reply #12 on: February 02, 2013, 02:08:41 pm » |
Ah yes, I spotted that one.... thought there was something else.
|
|
|
|
|
Logged
|
IT Crowd: Roy... "Have you tried turning it off and on again?" Moss.. "Have you tried forcing an unexpected reboot?"
|
|
|
|
|