Hallo WELT…

[0] Blynk v0.3.4
[499] Connecting to GastNetz
[3636] IP: +CIFSR:STAIP,“192.168.3.160”
+CIFSR:STAMAC,“18:fe:34:cf:67:64”

OK
[3665] Connected to WiFi
[10212] Ready (ping: 20ms).

so die Ausgabe vom seriellen Monitor. Die Taste auf dem Smartfone habe ich inzwischen zum Schalter gemacht, aber auch nicht besser…
Wo kann der Fehler liegen? Wie kann ich die LED “örtlich” einschalten, so zum Test der Verdrahtung? Kann ich die WLAN-Verbindung mit einer Meldung quittieren lassen?


3 Antworten

holzmann – 06.12.2016

Hallo,
du kannst mit:

/*
Blynk 1: LED
Change ssid, password and token
*/

char ssid[] = "";
char password[] = "";
char token[] = "";

//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include 
#include 

// Set NanoESP Serial object
#include 
SoftwareSerial EspSerial(11, 12); // RX, TX
#define RED_LED 9

ESP8266 wifi(EspSerial);

void setup()
{
  // Set console baud rate
  Serial.begin(19200);
  EspSerial.begin(19200);
  pinMode(RED_LED, OUTPUT);

  Blynk.begin(token, wifi, ssid, password);
}

void loop()
{
  digitalWrite(RED_LED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);                       // wait 
 Blynk.run();
  digitalWrite(RED_LED, LOW);    // turn the LED off by making the voltage LOW
  delay(100);                       // wait 
}

die rote LED schnell bliinken lassen.
Ansonsten mal die LED um 180° drehen.

Burkhard – 06.12.2016

Danke “Holzmann”, die LED steckte richtig, aber der Widerstand nicht in D09…
Wo/wie kann ich lernen, wie man diese Programmchen schreibt? So ab nach Weihnachten?

holzmann – 06.12.2016

Konkret zum Board kann ich dir leider auch nichts empfehlen - ist auch für mich neu.
Ich bin nur “vorbelastet” - ich programmiere in “C”.