Sequence freezes af...
 
Notifications
Clear all

Sequence freezes after running from script

9 Posts
4 Users
0 Reactions
2,899 Views
Posts: 104
Topic starter
(@trioxide)
Estimable Member
Joined: 11 years ago
[#49144]

Okay I have the HC-SR501 PIR Sensor and am trying to connect it to my pi and have it trigger an event. Have Vcc to pin 2, Gnd to pin 6 and the output to BCM 17. I walk in front of the motion sensor and it triggers the script which plays the sequence. I noticed that after the sequence finishes playing, counts down to 00:00, Player Status still says Playing ** sequence name. Should this not be at Idle? After it counts down to 0 then I can not restart the sequence by motion, no matter the time I wait. I think it is cause it thinks it is still playing. If I hit the Stop Now button then motion starts the sequence again. If I play the sequence manually, I play it from the status page, the sequence plays fine and goes back to Idle status after Remaining is at 00:00 so it works like it should.

40677383 10160781738925542 1695306222607007744 o

Here are my config settings.

GPIO Input Triggers

40209955 10160757725785542 6254499240936996864 n

Events

40192090 10160757726805542 4619096078258536448 o

Script

40247051 10160757727330542 4427584835149627392 o

Playlist

40322964 10160757728210542 4677981836528320512 o

8 Replies
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago

I know very little about how FPP handles GPIO events. However some thoughts come to mind from using GPIO and PIR and other sensors in other projects.

I’d suspect that subsequent triggers while the event is still in progress are what’s causing the issue.

What prevents the PIR from retriggering while the action is executing? How does the FPP handle subsequent rising edges while the event is still executing?
Does your PIR return to low state immediately after it’s triggered or is there some delay? Is the delay adjustable so you can make it coincide with the duration of the event. Or slightly longer.

Sent from my iPhone using Tapatalk


Reply
Posts: 104
Topic starter
(@trioxide)
Estimable Member
Joined: 11 years ago

I have played with the settings on the PIR to no avail. I have made sure the PIR only triggered FPP 1 time and the same results. Therefore I do not think that is the problem. I do know other people have done this so I know it can be done. Something with my script not closing after the sequence is done or something. I have not done this before so just learning.


Reply
Posts: 209
(@marx1)
Reputable Member
Joined: 18 years ago

I would try running 1.x of FPP, there is a note on the 2.0 release notes about plugins and callbacks, it may be your issue:

"NOTE: Plugin callbacks are not fully working in the new playlist code at release time although fixing this is on the short term ToDo list. If you need plugins w/ callbacks, you will need to stick with v1.x for now."


Reply
Posts: 104
Topic starter
(@trioxide)
Estimable Member
Joined: 11 years ago

I am not using a plugin though and I don't know what a callback it.


Reply
Posts: 209
(@marx1)
Reputable Member
Joined: 18 years ago

It's still possible that there is a problem with the code somewhere. Personally, I would test it to rule it out.


Reply
Posts: 2
(@cscott)
New Member
Joined: 9 years ago

Trioxide, any luck getting this to work. I'm considering doing something similar with that exact same PIR, but for a Halloween display next year.


Reply
Posts: 104
Topic starter
(@trioxide)
Estimable Member
Joined: 11 years ago

No I haven't looked at it since the discussion above. Been working on getting everything ready for Halloween so haven't had time to work on it.


Reply
Posts: 2
(@cscott)
New Member
Joined: 9 years ago

I came across a set of instructions wherein the presenter provided a script to capture the existing playlist and playlist item running, stop the running playlist, play a new playlist such as a scare, then play the previous playlist and list item. It works great until I turn on the scheduler to auto start the playlist. It seems the starting logic of the scheduler and the script conflict with each other and that locks up the playlist, preventing anything else from running until I click to stop the playlist immediately. Not sure if this is the same issue you're running into, but I thought I'd share my experience last night.

https://www.instructables.com/id/Internet-Controlled-Singing-Animatronic-Jack-OLant/


Reply
Share: