This is pretty simple actually. Look into Sleep() and the Redstone API. I'll code this for you, but most people probably would point you in the right direction (as I did with the Sleep() and the RS API)
when you see "–" (no quotes) the computer will look over it and pretend it's not even there. these are called comments and are for the coder, not the computer. it's helpful for explanation.
function pulse(side) -- function to pulse the designated side of the computer. Remember to put your side into quotes, to make it a string.
rs.setOutput(side, true) -- part of the redstone API.
sleep(1) -- makes the computer wait 1 second. Note that the number inside is not in quotes as it is a number, not a string. It is in seconds.
rs.setOutput(side, false)
end
while true do -- while is a loop, paired with the true boolean, it will indefinitely loop. AKA it is essentially infinite.
pulse("top") -- top is in quotes making it a string. use top, bottom, left, right, front, back in quotes for the respective side of the computer.
sleep(10) -- waits for 10 seconds
pulse("top") -- pulses again
sleep(300) -- waits for 5 minutes.
end
if you want an easy way to have the computer sleep for x amount of minutes then you can do something like this
minutes = 5 * 60 -- so 5 minutes.
sleep(minutes) -- will sleep for the defined number of minutes.