Pages: [1]   Go Down
Author Topic: Arduino doesnt seem to boot when powered externally  (Read 483 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 32
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Guys

I indeed googled up that one and someone suggested 10k resistor from rx to tx  and I tried , didnt work.

Small programs like Blinking when i Upload to arduino does work when i remove the arduino from usb and connect it to the external power.

I tried NRF2401+ chip with the RF 24 library / getting started example.

This arduino seems to run ONLY if the serial monitor is open else I believe arduino is waiting for the computer to open serial port before it can run.
Because even when i connect the arduino to the USB it does not really start running or send / receive the signals.. immediately after i open the serial monitor, it loads up the welcome message and starts working

I tried to disable all the serial outputs on the command and still I cannot make it run independent of the usb.

Is this library specific or  i am doing something wrong here?


Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I presume you've got an Arduino Uno and the external power is via the 2.1mm power socket?  If not please shout out as the rest of this will be based on that assumption.

I indeed googled up that one and someone suggested 10k resistor from rx to tx  and I tried , didnt work.
Don't do that.  I can't imagine why that was considered a good idea.  On the plus since it's not a dead-short you are unlikely to have smoked anything.  Rest assured putting a resistor between RX and TX is not a normal requirement - so take that out and maybe don't listen to that someone so much in future  smiley  

There is nothing in the Arduino that makes it need a serial connection - unless you make that happen in your code - it's common to use those pins for purposes other than serial comms in fact, or for there to be no serial communication at all in a sketch, as it is with the blinky example you cite.

On the question of the serial monitor being open, the Arduino also doesn't wait for comms to be confirmed so if you don't open the serial monitor and there are Serial.println() etc in your code, they will just happen and be lost if there's nobody/nothing listening.  You can send as much as you like without anything connected on the other side and the Arduino is fine with that...unless you code it to do so.  Same goes for data sent to the Arduino - unless you're specifically looking for it it will be ignored.

Opening the serial monitor does reset the Arduino though, so your sketch will be restarted as a consequence.

Are you suggesting the blinky LED sketch doesn't start when you run it from external power without the USB plugged in?  If so, does the power on LED come on?  What you're describing sounds to me to be a power issue with your wall wart.

Cheers ! Geoff
« Last Edit: March 06, 2013, 06:36:43 pm by strykeroz » Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A further thought - if it's not an Arduino Uno but an older model, not all automatically select the power source.  I have an Arduino that needs to have a jumper changed to select the power source being the 2.1mm DC jack.  An Arduino Uno should (I think all models) auto-select the power source.

Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

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

A further thought - if it's not an Arduino Uno but an older model, not all automatically select the power source.  I have an Arduino that needs to have a jumper changed to select the power source being the 2.1mm DC jack.  An Arduino Uno should (I think all models) auto-select the power source.

Geoff

I have UNO R3 smiley
Logged

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

Hi

I presume you've got an Arduino Uno and the external power is via the 2.1mm power socket?  If not please shout out as the rest of this will be based on that assumption.

I indeed googled up that one and someone suggested 10k resistor from rx to tx  and I tried , didnt work.
Don't do that.  I can't imagine why that was considered a good idea.  On the plus since it's not a dead-short you are unlikely to have smoked anything.  Rest assured putting a resistor between RX and TX is not a normal requirement - so take that out and maybe don't listen to that someone so much in future  smiley  

There is nothing in the Arduino that makes it need a serial connection - unless you make that happen in your code - it's common to use those pins for purposes other than serial comms in fact, or for there to be no serial communication at all in a sketch, as it is with the blinky example you cite.

On the question of the serial monitor being open, the Arduino also doesn't wait for comms to be confirmed so if you don't open the serial monitor and there are Serial.println() etc in your code, they will just happen and be lost if there's nobody/nothing listening.  You can send as much as you like without anything connected on the other side and the Arduino is fine with that...unless you code it to do so.  Same goes for data sent to the Arduino - unless you're specifically looking for it it will be ignored.

Opening the serial monitor does reset the Arduino though, so your sketch will be restarted as a consequence.

Are you suggesting the blinky LED sketch doesn't start when you run it from external power without the USB plugged in?  If so, does the power on LED come on?  What you're describing sounds to me to be a power issue with your wall wart.

Cheers ! Geoff

Thanks for your reply.

LED Sketch does start nicely and works when i power with an wallwart..  Power LED is on and the 13 pin LED is blinking which suggests me everything is normal

but with my wireless sketch wont boot, can this still be a problem with power adapter?

More wierdness is that I have 2 UNO R3s with the Nrf24 attached to each and both behave just like this. could this be a problem with my nRf chip? I dont know


Regarding resistor yeah I was lucky.. i didnt wire it directly.



Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1123
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
but with my wireless sketch wont boot, can this still be a problem with power adapter?
It doesn't sound likely, but without sharing your wiring and sketch it's hard to know what it is doing.  For debugging it's sometimes worth keeping a visual pulse in your project - so using the blink without delay method to have an LED flash every second will let you know the microcontroller is active, even if the rest of the sketch and hardware is not responding the way you expect.  That would be my first item to add.

Once you do that you'll know if it has booted, but on the evidence the blinky sketch does what you expect under external power, I think you can presume that the Arduino is all good on a wall wart, and start looking elsewhere for the issue.  If the power LED doesn't come on when the wireless hardware is connected this can be an indication you have a short (there's a resettable fuse that will take the power away from the Arduino to protect it).  If you have a power LED but the sketch isn't doing what you expect, start from the basics and build it back out until you find the bit that's failing.

And if you get stuck, by all means come back here - but do post your code and a photo of the hardware too.

I do recommend a pulse LED if you have a spare Arduino pin though.
Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Pages: [1]   Go Up
Jump to: