Pages: [1]   Go Down
Author Topic: problem in upload a using usb cable  (Read 420 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Online Online
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What's the power supply you are using when not connected to USB?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I use 5 batteries of 1.2 volts each
Logged

Austin, TX
Online Online
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What kind of batteries?  How are they connected together (series / parallel)?  Where are you connecting them to the Arduino?
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 82
Posts: 3882
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* arduino power.jpg (241.13 KB, 1614x864 - viewed 4 times.)
« Last Edit: February 01, 2013, 11:43:28 am by JimboZA » Logged

The Elders of the Internet know who I am.....

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes this is how i have connected

http://learn.parallax.com/node/184
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 82
Posts: 3882
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

The Elders of the Internet know who I am.....

Austin, TX
Online Online
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes this is how i have connected

http://learn.parallax.com/node/184
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

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Johannesburg. UTC+2
Offline Offline
Faraday Member
**
Karma: 82
Posts: 3882
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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

The Elders of the Internet know who I am.....

Austin, TX
Online Online
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Johannesburg. UTC+2
Offline Offline
Faraday Member
**
Karma: 82
Posts: 3882
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah yes, I spotted that one.... thought there was something else.
Logged

The Elders of the Internet know who I am.....

Pages: [1]   Go Up
Jump to: