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

Factorio

990 readers
425 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
[โ€“] SaintWacko@slrpnk.net 2 points 2 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

[โ€“] jet@hackertalks.com 1 points 5 hours ago

I think this solves it. Lots of trail and error