LED Widget HELP!

Hi All,

I’m new at this and need help. I learn easier visually. Anyway…My Components are:

  1. ESP8266 12E
  2. Float switch
  3. 3vdc Relay
    I can’t seem to figure out how to write a sketch to be alerted on Blynk using the LED widget
    When the float Switch makes. Can someone Help me please! Step-by-Step!

Thank you Much!

Sketch Builder example…

This turns on an LED widget if the GOIO1 pin is connected to GND.

I’d change this to a more sensible pin though, using GPIO5 (D1) or GPIO4 (D2).

Pete.

Nothing Happened after successful download. Changed to pin 5 (D1) on board and (5) in IDE.
Entered my Template ID, Template Name, and AUTH, My WiFi name and password.
I DON’T GET IT!

What does your serial monitor show?
What datastreams have you set-up, and what type are they?

Pete.

Serial Monitor doesn’t show anything,
DATA Stream reads:
id = 1, Name = LED, Alias =LED, Color= Red, Pin= V3, Data Type = Integer, fauls ,0, 1, 0
When I login from my phone “LED Status” says offline.

You need to fix this.
Do you have the serial monitor baud rate set correctly?
If so then try disconnecting everything except the USB cable and try again.

Pete.

Thanks alot for helping…
I changed the baud rate to 9600, Now I’m showing connecting to J.Smith “My wifi”, then some strange char’s.

Try changing this line…
Serial.begin(115200);

to a baud rate of 74880 and re-upload, and set your serial monitor to match.

Pete.

Changed that line,
Turned off firewall and all security
Gonna try moving closer to router…Just trying everything I can.
Serial Monitor states…rf[112] : 0 [75] Connecting to my “wifi”

I’d suggest that you copy the text from your serial monitor and post it here, with triple backticks at the beginning and end so that it displays correctly.
Triple backticks look like this…

```

DO NOT POST A SCREENSHOT!

I want to see what appears in your serial monitor from the point when you press the RST button on the NodeMCU.

Pete.

[Unformatted serial output removed by moderator]

I gave you triple backticks to copy/paste, but you’ve decided to use some other random characters!

Pete.

Thanks for trying…This is Way to difficult to set up. I’ll Look for something else.
Again, Thanks!