ESP12F - switching a Relay off turns the wireless LED onboard BRIGHT BLUE ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

ESP12F - switching a Relay off turns the wireless LED onboard BRIGHT BLUE ?

#1 Post by JR01 » 21 Jun 2016, 23:56

Guys, this is a funny one, first time this happened to me.

I have an ESP12F, with r107, GPIO2 linked to a spark fun logic converter, with the 5v side of the logic converter switching a relay, and 10k pull-up on GPIO2 (also tested with an LED), using a 'Switch' in devices....
- when I switch the Switch on with http://192.168.2.65/control?cmd=GPIO,2,1 ~ all good, the Relay switches on, but......
- when I switch it off, with http://192.168.2.65/control?cmd=GPIO,2,0 - the relay switches off, good, but it also turns the LED on the ESP on, BRIGHT blue ?????

Same behaviour if I switch the Switch off with MQTT with topic /RHZA/ESP03/GPIO/2 and payload 0. Also tried it with another ESP12F, same behaviour. Also tried it without the pull-up 10k from GPIO2.

Apart from the fact that all works, I have never seen this, and surely this will eat amps?

Anybody with ideas here?
Switch r107.png
Switch r107.png (60.27 KiB) Viewed 5131 times
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

MarS
New user
Posts: 1
Joined: 03 Jun 2016, 10:32

Re: ESP12F - switching a Relay off turns the wireless LED onboard BRIGHT BLUE ?

#2 Post by MarS » 22 Jun 2016, 08:21

Check if "Wifi Status LED" on the tab "hardware" is pointing at GPIO2.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: ESP12F - switching a Relay off turns the wireless LED onboard BRIGHT BLUE ?

#3 Post by JR01 » 22 Jun 2016, 10:45

Thank you MarS, nope not pointing to it. Any other ideas where to look?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: ESP12F - switching a Relay off turns the wireless LED onboard BRIGHT BLUE ?

#4 Post by costo » 25 Jun 2016, 15:57

It is just by design.
Some ESP modules have the blue Led connected to GPIO2.
Image
So the led will turn on when GPIO2 is made 'LOW' which explains what you see.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: ESP12F - switching a Relay off turns the wireless LED onboard BRIGHT BLUE ?

#5 Post by JR01 » 26 Jun 2016, 07:22

Thank you costi, switched out to gpio16, now working. Found another post in esp forum with same. Thanks!
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests