I have an Arduino UNO and esp8266 connected to it. Both devices has separate power lines. Each connected via USB cable, for Arduino USB used as power line and standard firmware uppload line, for esp8266 only as power suppli line. If I connect all to computer's USB ports, everything working fine. But, if I connect Arduino to separate charger that has USB port, then Arduino not running code. I can see it by Serial interface work, because code using it intensively, and when I'm turning Arduino on the RX and TX lines are down all the time, that I think indicates, that code is not running, and Arduino in boot mode, somehow.
I've made a search through same issues and nothing helped from theirs suggestions. I tried to pull RX line to GND through resistor, to make sure that there are no noise on the line, added capacitors for power supply line, to make exclude pulsations on the line. But nothing helped.
Arduino not running code independently from esp8266. I tried to run Arduino separately, without any other connections, but it not helped. Still not running.
I have the same problem with Arduino Uno and Ehternet Shield and CODE for read temp. sensor, write to LCD and write to WEB page.
With external 12V 1A power supply code not work , read WEB server not start.
LCD show value 5 minuts then stop.
I solved the problem (just a little) :
a) With external power supply 12V 1A ( low-price china product ) code not work until i press reset button.
But it does not always work. Sometimes it is necessary to repeatedly press reset button.
After 10-15 min. code stop work.
b) 5V 3A, or 9V 2A power supply (better quality9 work fine,
It is still necessary after connecting to press reset, but only once.
LCD work and WEB server work OK.
c) I try with car battery 12V , result is the same as in point b
currently more then one month i use 5V 3A power supply like this :
Are the GND/0V pins of all modules connected together?
It's generally better to feed all devices at the same rating from the same source, but as long as they are close, tying the grounds should be enough.
I can see it by Serial interface work, because code using it intensively, and when I'm turning Arduino on the RX and TX lines are down all the time,
The RX and TX LEDs are controlled by the USB port not the Arduino. When you just power an Arduino without connecting it to a computer these LEDs will not light or flash.
upj11097:
But, if I connect Arduino to separate charger that has USB port, then Arduino not running code.
What charger.
Should we guess?
svedr:
With external power supply 12V 1A ( low-price china product ) code not work until i press reset button.
But it does not always work. Sometimes it is necessary to repeatedly press reset button.
After 10-15 min. code stop work.
This typically is an overheating 5volt regulator.
Put your finger on it. It's the black thinghy between the DC socket and the ethernet socket.
12volt is too much for the regulator when it also has to supply an ethernet shield (~160mA) and LCD.
Use a REGULATED 7.5volt (minimum) supply on the DC socket.
A 9volt (maximum) supply could already be too much.
Leo..
Wawa:
What charger.
Should we guess?
This typically is an overheating 5volt regulator.
Put your finger on it. It's the black thinghy between the DC socket and the ethernet socket.
12volt is too much for the regulator when it also has to supply an ethernet shield (~160mA) and LCD.
Use a REGULATED 7.5volt (minimum) supply on the DC socket.
A 9volt (maximum) supply could already be too much.
Leo..
In my case it works without any problems, with external supply 5V 3A. 5 x DS18b20 sensors and 2x LCD 20*4 and web server.