Scrap Mechanic

Scrap Mechanic

[Goal Achieved!] Reliable SR-Latch logic circuit?
Was wondering if anybody has managed to create a reliable SR-Latch with logic gates yet?

I mean, im aware of the few SR-Latches on the workshop, and i've added some myself that are slightly less prone to issues, but they're still not great.

Im talking about these issues:
- Turns into a clock (spazzes) when you give it a 1 tick pulse.
- Acts as a clock (spazzes) when you spawn it

I've tried all SR-Latches i could find on the workshop, and they all have one or both of these issues. So yea, im bscly looking to discuss these issues, and im hoping somebody may have overcome them both already with their design.

This is my best attempt so far, it overcomes the first issue, but not the second:
http://steamcommunity.com/sharedfiles/filedetails/?id=1196105933
Last edited by suicidal.banana; Nov 10, 2017 @ 5:32am
< >
Showing 1-7 of 7 comments
Pitchforque Nov 9, 2017 @ 9:35am 
Check my workshop. For single-input toggle, use "Switch". For dual-input memory use "Memory: 1-Bit".

The issues you're talking about bother the hell out of me too so I designed circuits specifically to avoid them. They create a 1-tick pulse when an input of any length is received, and use that to toggle an XOR loop. Solves both problems.
suicidal.banana Nov 9, 2017 @ 9:36am 
I see, ill try recreate that with my own edge detector's and a xor gate, thanks for the tip! :)
Sperzieb00n Nov 10, 2017 @ 4:24am 
Just look for creations by the user "refuse", he has basically optimized all kinds of logic components, including SR latches.
suicidal.banana Nov 10, 2017 @ 4:54am 
Heya, first off, thanks for the tip :)

So i did look at his SR Latch before (or Latch SR as he calls it) but the description (specifically the "Minimum 3 tick input for non destructive") threw me off, i thought it had the issue where to short of an input signal would cause it to spaz like all others, but turns out it doesnt.

(He mentions something in the comments about that line doing something for wavelength, but it goes way over my head lol)

So yea, great stuff, i do want a negative output on my SR Latch too, but thats super easy to add to his, so ima bscly recreate his version, with my styling & a extra output, then upload that and credit him ^^

Thanks again! :D

Edit: for anybody wondering/wanting one with a negative output aswell:
http://steamcommunity.com/sharedfiles/filedetails/?id=1196804698
Last edited by suicidal.banana; Nov 10, 2017 @ 5:25am
koryphaee Nov 11, 2017 @ 5:10am 
here is mine. it works perfectly.
signal length doesn't matter. it doesnt flicker ever.

http://steamcommunity.com/sharedfiles/filedetails/?id=1197896436
suicidal.banana Nov 11, 2017 @ 3:28pm 
Nice, thanks for sharing :)
苏沐辰M* Mar 28, 2022 @ 6:34am 
111
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Nov 9, 2017 @ 8:02am
Posts: 7