Newbie help with pir setting delay for less than 3 seconds on

Hi.
I'm still learning but need help.
My project is a skeleton that rises on a pulley when a pir is triggered.
The problem is the pot on the pir can only be set to a minimum of 3 seconds, I need it to be on for about 1 second or less.
Can anyone help with the code?
So it needs to include something like

digitalWrite(relay,HIGH); // turn ON the relay
Delay (500);
digitalWrite(relay,low); // turn OFF the relay

But I think the pir just determines the time on/delay not the code.

Thanks for any help Paul

That 3 seconds is just the time that the PIR can't register new events.
Not a problem to do things longer or shorter than that.

Your code should detect when the pirPin becomes high.
And then run the sequence you want.

Look at the StateChangeDetection example in the IDE.

Post your best attempt if you get stuck.
Leo..

The problem is the pot on the pir can only be set to a minimum of 3 seconds, I need it to be on for about 1 second or less.
Can anyone help with the code?

If you want to change this then code will not help you. This is built in to the PIR hardware. There is a pot you can change to alter this. If the pot has been adjusted to the minimum time and it is too long then you have to change two capacitors on the board.

Locate capacitor CY1, under the pot delay RL1 and CY2 just above the ground pin. Remove them by quickly alternating your soldering iron from one end to the other until both ends melt and you can flick it off or grab it with tweezers. Clean the pads with some solder braid to remove all the solder, work quickly so you do not lift the pads. Then replace them with a 1nF to 1.5nF capacitor, I used a 1.2nF.