Can't set GPIO to LOW.

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
79kiko
Normal user
Posts: 15
Joined: 23 Aug 2016, 05:18

Can't set GPIO to LOW.

#1 Post by 79kiko » 04 Jan 2017, 21:44

Can't set GPIO to LOW. After boot are all pins set to LOW but when I send any message from my Openhab
/heating/gpio/13 0
or
/heating/gpio/13 1
everytime set my board Wemos D1 on HIGH and can't set to LOW.

Where can to be problem?

timsson
Normal user
Posts: 77
Joined: 25 Mar 2016, 22:00

Re: Can't set GPIO to LOW.

#2 Post by timsson » 04 Jan 2017, 22:31


79kiko
Normal user
Posts: 15
Joined: 23 Aug 2016, 05:18

Re: Can't set GPIO to LOW.

#3 Post by 79kiko » 04 Jan 2017, 23:32

When I setup in Hardware Pin Mode 13 to Default,after boot setup pin to LOW
When I setup in Hardware Pin Mode 13 to Output LOW,after boot setup pin to HIGH and same
When I setup in Hardware Pin Mode 13 to Output HIGH,after boot setup pin to HIGH

Led works fine ON/OFF.
ESPeasy version R120

All The pins do same.

Code: Select all

http://192.168.0.xxx/tools?cmd=gpio,13,0

Command output

Code: Select all

{
"log": "GPIO 13 Set to 0",
"plugin": 1,
"pin": 13,
"mode": "output",
"state": 0
}
and

Code: Select all

http://192.168.0.xxx/tools?cmd=gpio,13,1

Command output

Code: Select all

{
"log": "GPIO 13 Set to 1",
"plugin": 1,
"pin": 13,
"mode": "output",
"state": 1
}

timsson
Normal user
Posts: 77
Joined: 25 Mar 2016, 22:00

Re: Can't set GPIO to LOW.

#4 Post by timsson » 04 Jan 2017, 23:47

so you set gpio 13 low - fine :)
and now with mqtt
http://x.x.x.x/tools?cmd=Publish+/name/gpio/2,1
http://x.x.x.x/tools?cmd=Publish+/name/gpio/2,0
?
Subscribe Template: /%sysname%/#
Publish Template: /%sysname%/%tskname%/%valname%
MQTT Retain Msg: enable?

what do you see at the boker?
somethink like that
pi@HomeServerPi:~ $ mosquitto_sub -v -t /#
/ETH_01/status connected
/ETH_01/gpio/5 0
/ETH_01/gpio/6 1
/ETH_01/gpio/7 0

79kiko
Normal user
Posts: 15
Joined: 23 Aug 2016, 05:18

Re: Can't set GPIO to LOW.

#5 Post by 79kiko » 05 Jan 2017, 00:48

MQTT message work fine, but only my board don't do LOW. When I send message 1 or 0, my board do only HIGH. I can't to do LOW. On software side everything looks OK.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Can't set GPIO to LOW.

#6 Post by papperone » 06 Jan 2017, 10:41

maybe a stupid question but... have you setup WiFi Status Led on GPIO13 on the hardware tab???
if yes than I guess that's your problem :)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Post Reply

Who is online

Users browsing this forum: No registered users and 99 guests