So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By hary
#67964 I've done it on Linux Rasbian on a Raspberry pi and the Arduino IDE version is 1.8.3

I guess I'm having a lot of output because as I had problem I asked to show verbose output during compilation and upload in the preferences

I now gave the Esp8266 to a friend and he will try to blink the LED on is side from programming it on its own computer. So we can diagnostic something, at list if the Esp8266 is ok or if I'm doing something wrong !

Thanks for your help. I'll come back to keep you informed.

Harold.
User avatar
By hary
#67997 I gave the ESP8266 to a friend so he can try from its own computer and still nothing happens !

So this esp8266 seems suspicious and might be faulty.

I'll keep you inform if any news.
User avatar
By QuickFix
#68005 There's also a possibility the LED is just burnt out and the rest of the ESP is still functioning. :idea:

Change the blink sketch a bit, like this:
Code: Select all#define led_pin BUILTIN_LED
#define led_interval 500

void setup() {
  Serial.begin(115200);         // Initialize serial for communication
  Serial.setDebugOutput(false); // Turn off WiFi debug messages for now
 
  Serial.print("Setting pin mode of pin ");
  Serial.print(led_pin);
  Serial.println(" to OUTPUT");
  pinMode(led_pin, OUTPUT);
}

void loop() {
  Serial.print("Setting pin ");
  Serial.print(led_pin);
  Serial.println(" to HIGH");
  digitalWrite(led_pin, HIGH);
  delay(led_interval);

  Serial.print("Setting pin ");
  Serial.print(led_pin);
  Serial.println(" to LOW"); 
  digitalWrite(led_pin, LOW);
  delay(led_interval);
}
...turn on the serial monitor ("Tools" -> "Serial Monitor") and upload the sketch to the device.
The serial monitor should show this after the upload is finished:
Code: Select allSetting pin mode of pin 2 to OUTPUT
Setting pin 2 to HIGH
Setting pin 2 to LOW
Setting pin 2 to HIGH
Setting pin 2 to LOW
Setting pin 2 to HIGH
Setting pin 2 to LOW
Setting pin 2 to HIGH
Setting pin 2 to LOW
Setting pin 2 to HIGH
Setting pin 2 to LOW
When you're getting a different number than pin 2 (eg. "pin 16"), it means you've selected the wrong board under "Tools" -> "Board:".