Forum: Mikrocontroller und Digitale Elektronik First steps with NodeMCU and Arduino IDE fail


von NodeMCUbeginner (Gast)


Lesenswert?

Hallo liebe Mikrocontroller Community!

Mit meinem ersten Projekt wollte ich ein NodeMCU ESP8266 12E über die 
Software Arduino IDE mit der onboard LED zum blinken bringen.

Genutzt habe ich dafür den folgenden Beispiel Code:

/*
 ESP8266 Blink by Simon Peter
 Blink the blue LED on the ESP-01 module
 This example code is in the public domain

 The blue LED on the ESP-01 module is connected to GPIO1
 (which is also the TXD pin; so we cannot use Serial.print() at the same 
time)

 Note that this sketch uses LED_BUILTIN to find the pin with the 
internal LED
*/

void setup() {
  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)
  delay(1000);                      // Wait for a second
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off by making the 
voltage HIGH
  delay(2000);                      // Wait for two seconds (to 
demonstrate the active low LED)
}

Die Erkennung meines Geräts und die Übertragung des Programms verlaufen 
fehlerfrei. DIe blaue LED blinkt sogar beim übertragen. Sobald ich aber 
100% des Programms übertragen habe leuchtet keine LED mehr. Weder die 
blaue noch die rote on-board LED.

Habt ihr irgendwelche Ratschläge die ich mir mal anschauen könnte?
Mir fällt nichts mehr ein...
Ich mache alles genauso wie in den Videos..

Ist vielleicht die rote LED kaputt?

Danke und Grüße!

: Verschoben durch User
von Einer K. (Gast)


Lesenswert?

Die blaue LED liegt bei einige Modulen(LoLin) auf Pin 2.
Also: LED_BUILTIN muss nicht richtig stehen

von Bastler (Gast)


Lesenswert?

Manchmal gibt es auch Probleme mit dem ESP-Paket 2.3.0, nimm dann mal 
2.2.0
Siehe auch hier im ESP-Tutorial: 
http://www.mikrocontroller-elektronik.de/nodemcu-esp8266-tutorial-wlan-board-arduino-ide/

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.