this post was submitted on 18 Nov 2024
4 points (100.0% liked)

Factorio

990 readers
444 users here now

A Lemmy community for the game Factorio made by Wube Software.

Rules

founded 1 year ago
MODERATORS
 

Currently I have a circuit that keeps the last seen signal for 240 ticks, and at the end of the 240 ticks, if it sees the same input on green, it would restart the click for another 240 ticks.

This is close to what I want, but I would like to reset the clock every time I saw the input again. So if at 200 ticks I saw the input, I want to reset the clock and start again.

The entire time I want to maintain the output signal as constant, even during the reset. Any suggestions on doing this in a single circuit element?

you are viewing a single comment's thread
view the rest of the comments
[–] SaintWacko@slrpnk.net 2 points 3 hours ago

I'm not sure how to do it, but the term you're looking for here is "debounce". That may help you find how to make the circuit