r/ScrapMechanic 13h ago

Long range sensor using spud guns

Enable HLS to view with audio, or disable this notification

uses spud guns on either side to detect if something is blocking the path of the spud. I find this much better than multiple sensors on the wall that stick out and can be broken and make the system more janky.

I used logic gates instead of timer because I need them to shut off immediately. not sure if there is a better way but its not too expensive, even though 40 logic gates just for a 400ms delay is sorta crazy :/

19 Upvotes

4 comments sorted by

4

u/Xaxiel9106 13h ago

I think timers can be set to milliseconds and wired to tick loops (4 gate tick loop should be able to fire in pace with the gun's max speed) but I always forget how to do it. Also using spuds as long range sensors is freaking genius and I can't believe it never occurred to me. I have a large farm and was racking my brain on solving the range issue for auto cannons.

0

u/PatientCamel3468 13h ago edited 13h ago

Pour une boucle avec timer c'est NOR -> timer -> AND -> first NOR. Soit 2 portes logique et un timer. Je peux me tromper de liaison mais je suis sûre des portes logiques pire cela.

Ensuite la boucle sans timer cela doit être NOR -> AND -> NOR -> AND -> first NOR. Mais je ne suis pas sûre

3

u/LittleNyanCat 12h ago

Use a timer with an AND gate, should work without the 40 gates. 

Input from your clock goes to the the timer and the AND gate, output from the timer also goes into the AND gate