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

Factorio

1023 readers
37 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?

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 4 points 3 days 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

[โ€“] [email protected] 4 points 3 days ago

I think this solves it. Lots of trail and error