-->
Page 1 of 2

EPS-01 and Serial.println not showing output

PostPosted: Sat Apr 09, 2016 1:25 am
by GJ Canon
Hi,

I have a very simple sketch which uploads successfully to the ESP-01:

Code: Select allvoid setup() {
  Serial.begin(115200);
  pinMode(LED_BUILTIN, OUTPUT);     // Initialize the LED_BUILTIN pin as an output
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, LOW);   // Turn the LED on (Note that LOW is the voltage level
                                    // but actually the LED is on; this is because
                                    // it is acive low on the ESP-01)
  Serial.println("LED On!");
  delay(1000);                      // Wait for a second
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off by making the voltage HIGH
  Serial.println("LED Off!");
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}


It uploads successfully as the Arduino IDE says, "Done uploading" and the output below shows:

Code: Select allUploading 235344 bytes from to flash at 0x00000000
....................................................................................................................................................................................


Upon reboot the LED flashes as I expect, but I get no output via my terminal emulator (puTTY, Arduino Serial Monitor, etc.)

I've verified the speed I choose in the terminal emulator is 115200 but nothing..

Any ideas?

Re: ESP-01 and Serial.println not showing output

PostPosted: Sat Apr 09, 2016 3:42 am
by vorlovsky
The same is for me.
I'm working with esp-12e and the only tool that allows me to load firmware is NodeMCU flasher and the only app that can display serial output is ESPlorer.(
Arduino IDE shows long line of dots as for topicstarter and then no output in Serial monitor on any speed, nevertheless an uploaded code works pretty well.
What's wrong there? Do we need to install any additional tools to be able to work in Arduino IDE normally?

Re: EPS-01 and Serial.println not showing output

PostPosted: Sat Apr 09, 2016 7:03 am
by schufti
AFAIK the LED on ESP-01 is on the Tx-pin, so with setting it as user controlled output you overrides the Tx functionality ...

if you remove the "pin" commands you will see the LED flicker every second (from the text you send over serial) and receive your mesages ...

If you set the baudrate to 74880 and edit the preferences.txt accordingly (serial.debug_rate) or select it in newer IDEs you'll also see the bootmessages (might help when running into watchdog problems etc)

Re: EPS-01 and Serial.println not showing output

PostPosted: Mon May 02, 2016 7:59 am
by vorlovsky
I'm not changing default pin modes but even for the simplest sketch

Code: Select allvoid setup() {
  Serial.begin(115200);
  Serial.println();
}

void loop() {
  Serial.println(">");
}


I get no output in Serial Monitor. What's wrong there?