Hello everybody,
I would like to drive a led slow (5 sec) high with PIR. then she should stay on. and slowly go out again.
Esp Easy prgramm !?
PWM,gpio,500,5000 is after 5 sec out . not good
led dimmen
Moderators: grovkillen, Stuntteam, TD-er
Re: led dimmen
more infos of problem
Rule :
LS = ligt sensor
on LS#State=1 do
if [PIR#State]=1
PWM,13,500,5000 // light goes up 0-500 in 5s and then off ,and then the same again ( I would like on !)
else
PWM,13,0 // light goes off ( i would like slowly off - from 500 -0 )
endif
endon
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
Rule :
LS = ligt sensor
on LS#State=1 do
if [PIR#State]=1
PWM,13,500,5000 // light goes up 0-500 in 5s and then off ,and then the same again ( I would like on !)
else
PWM,13,0 // light goes off ( i would like slowly off - from 500 -0 )
endif
endon
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: led dimmen
Tried this?
Code: Select all
on LS#State=1 do
if [PIR#State]=1
PWM,13,500,5000 // light goes up 0-500 in 5s and then off ,and then the same again ( I would like on !)
PWM,13,500
else
PWM,13,0,5000
endif
endon
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
![Idee :idea:](./images/smilies/icon_idea.gif)
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
![Idee :idea:](./images/smilies/icon_idea.gif)
![Idee :idea:](./images/smilies/icon_idea.gif)
![Idee :idea:](./images/smilies/icon_idea.gif)
Re: led dimmen
i testet :
on LS#State=1 do
if [PIR#State]=1
PWM,13,500,5000 // stay at this point - 5s on -5s off .................
PWM,13,500
else
PWM,13,0,5000
endif
endon
on LS#State=1 do
if [PIR#State]=1
PWM,13,500,5000 // stay at this point - 5s on -5s off .................
![Beschaamd :oops:](./images/smilies/icon_redface.gif)
PWM,13,500
else
PWM,13,0,5000
endif
endon
Re: led dimmen
PWM,13,500 // ok
PWM,13,500,5000 // something is not right ! alls would crash the esp![Beschaamd :oops:](./images/smilies/icon_redface.gif)
PWM,13,500,5000 // something is not right ! alls would crash the esp
![Beschaamd :oops:](./images/smilies/icon_redface.gif)
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 148 guests