As a total ignoramus when it comes to sketching could you please help me with a problem, which might actually be non-viable.
I want to use a PIR sensor to stop a model railway turntable from turning for an exact time after first contact. The problem I'm having is that as long as the PIR is activated the turntable is stopped, so instead of 30 seconds stop that is wanted it is in the stopped position as long as there is power to the Arduino.
So I was wondering if there's any way I can override the PIR output for a few seconds so the turntable can get away from the actual PIR sensor, BUT THEN stop for the 30 seconds as above?
The problem is that the motor 28BYJ-48 will actually move slightly whist stopped by the PIR and over time get away from the actual sensor of PIR so it can rotate again. The problem with that is that as it jumps slightly the rails on the turntable are no longer aligned with the rails on the main layout.
You can put a loop in right before the delay to step the motor however many steps you need to get away from the PIR. It may be tricky to ensure that the track lines up every time though.