Pulse not working

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Pulse not working

#1 Post by ewaldharmsen » 15 Apr 2023, 07:22

I have tried using pulse and LongPulse, to turn on gpio 5 which the relay of a sonoff dual r2 for 15 seconds, but it will always stay high and the device stays on until I switch it off.

On Clock#Time=All,06:00 do
SendToHTTP, 192.168.1.200,8080,/json.htm?param=switchlight&type=command&idx=60&switchcmd=Set%20Level&level=100
LongPulse,5,1,15
endon

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Pulse not working

#2 Post by Ath » 15 Apr 2023, 10:10

What release of ESPEasy do you have installed on your unit? (name of the .bin file please, can be found on the Info page, or in more recent releases, at the footer of each page)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Pulse not working

#3 Post by TD-er » 15 Apr 2023, 12:53

When you give these manual commands on the tools page to toggle the pin, does it then toggle?

Code: Select all

gpio,5,1
gpio,5,0
This to make sure your pin isn't pulled up somehow.

Just for reference the documentation:
https://espeasy.readthedocs.io/en/lates ... ernal-gpio

Is the pin also assigned to something else? For example mentioned in the I2C pin configuration on the Hardware tab?

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: Pulse not working

#4 Post by ewaldharmsen » 01 May 2023, 07:37

Ath wrote: 15 Apr 2023, 10:10 What release of ESPEasy do you have installed on your unit? (name of the .bin file please, can be found on the Info page, or in more recent releases, at the footer of each page)
ESP_Easy_mega_20230306_normal_ESP8266_1M

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: Pulse not working

#5 Post by ewaldharmsen » 01 May 2023, 07:41

TD-er wrote: 15 Apr 2023, 12:53 When you give these manual commands on the tools page to toggle the pin, does it then toggle?

Code: Select all

gpio,5,1
gpio,5,0
This to make sure your pin isn't pulled up somehow.

Just for reference the documentation:
https://espeasy.readthedocs.io/en/lates ... ernal-gpio

Is the pin also assigned to something else? For example mentioned in the I2C pin configuration on the Hardware tab?
I did this:
LongPulse,5,1,15 -> GPIO 5 was turned on
After 30 seconds I did this: gpio,5,0
GPIO 5 was turned off

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests