Testing LED on ESP12E dev kit

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Testing LED on ESP12E dev kit

#1 Post by MarkIngle » 11 Feb 2016, 03:26

Hello all! Complete newbie here to home automation and esp8266. I have ESP Easy running on my dev kit and noticed the "Hardware Settings" page appears to have a way to set GPIO to low o high. Is it possible to make the blue LED (either on the board or on the 8266) turn on/off by changing the pin mode settings and clicking the submit button? I am trying to understand the relationship between GPIO assignments in the software and the actual hardware they are assign to. Thanks in advance for the help!

Mark

MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Re: Testing LED on ESP12E dev kit

#2 Post by MarkIngle » 11 Feb 2016, 07:04

I think I figured out how to turn on the blue LED. I set sda and scl to gpio16 and set pin mode to low. For some reason I have to reboot to enable the setting.....reloads the settings in flash? I hope that I understand this correctly. Really cool stuff.

If I can figure out how to reduce volt 5 to 3.3 I will set up my hc-sr04.... Fingers crossed!

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Testing LED on ESP12E dev kit

#3 Post by tozett » 11 Feb 2016, 14:34

SOLVED?

MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Re: Testing LED on ESP12E dev kit

#4 Post by MarkIngle » 13 Feb 2016, 13:59

Yes the original problem is solved.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: Testing LED on ESP12E dev kit

#5 Post by BertB » 13 Feb 2016, 15:32

MarkIngle wrote:I set sda and scl to gpio16 and set pin mode to low.
This is highly alternative :o SDA and SCL cannot operate from the same io pin.
To my understanding, the blue led is connected to GPIO pin 01, which is also the tx pin. This pin cannot be directly controlled.

The pin modes in the hardware page are intended to preset the levels of GPIO pins after startup.
If you want to flash a led, why not just mount one in series with a resistor to a GPIO pin and use the LED example in the wiki?

MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Re: Testing LED on ESP12E dev kit

#6 Post by MarkIngle » 13 Feb 2016, 15:47

To make sure I understand . GPIO16 is the blue LED on my dev board not the blue LED on the ESP8266 board. Correct?

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: Testing LED on ESP12E dev kit

#7 Post by BertB » 13 Feb 2016, 21:35

Ah, sorry for the mistake. On the NodeMCU, GPIO16 is the blue led on the board. GPIO02 = TXD1 = blue led on the esp 12E module.
You are correct. if you just keep SDA on GPIO04 and SDC on GPIO05 and pull GPIO16 to ground level, the blue led goes on.

You can also set Pinmode 16 to Output Low and reboot. The blue led will then switch on.

You can also leave Pinmode 16 on Default and send:
http://your ESPEasy ip/control?cmd=GPIO,16,0 to switch blue led on and
http://your ESPEasy ip/control?cmd=GPIO,16,1 to switch blue led off.

hope this helps.

MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Re: Testing LED on ESP12E dev kit

#8 Post by MarkIngle » 13 Feb 2016, 22:42

That does help Bert! Thanks for the info on the URL cmd....thats a good way to test connections prior testing via web app, etc

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: Testing LED on ESP12E dev kit

#9 Post by BertB » 13 Feb 2016, 22:56

Welcome, but please also look here in the wiki http://www.esp8266.nu/index.php/GPIO

MarkIngle
Normal user
Posts: 47
Joined: 10 Feb 2016, 05:06

Re: Testing LED on ESP12E dev kit - SOLVED

#10 Post by MarkIngle » 14 Feb 2016, 20:13

SOLVED

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 13 guests