Logic Tractor Beam help

    Discussion in 'Logic' started by Crimson-Artist, Feb 28, 2019.

    1. Crimson-Artist

      Crimson-Artist Wiki Administrator

      Joined:
      Sep 10, 2013
      Messages:
      1,640
      I need some help wiring up a logic Tractor Beam system. I'm trying to have it so you can control what mode the tractor beam is in via inner ship remotes. One for each mode. each ISR activates a logic clock that fires the tractor beam and each individual ISR determines how many activators are on.

      Functionally i'd like the system to work like IRL a series of push-down buttons that each activate a separate light however only one light can be active at a time and pressing another button pushes up all the rest thus leaving only the most recent button press on. The system can be deactivated by pressing the most recently pressed button again.

      Where im running into trouble is the circuit that will only allow one of the three inputs on at any given time while also allowing the system to be turned off. im still not even sure what this circuit is called however people have told me that it might be a XOR gate I need but all the information ive been able to get on XOR gates only allows 2 inputs, not three.
       
    2. DeepspaceMechanic

      Joined:
      Mar 10, 2016
      Messages:
      387
      Hi Crimson!

      I found a solution and made a proof-of-concept, the blueprint of which is attached to this post. Figured I should share it this way, because it's a little too much to explain in text, or to sketch up as a wiring diagram. Check the BP in the game, and feel free to ask if the purpose of some components or connections are unclear.

      The system uses around 30 logic blocks in total, so it's probably not the most component-economic solution, but it works just as needed.

      The testing rig I shared comes with a 2,000-module tractor beam setup and all basic ship systems, so you will be able to fly it near an asteroid or something to test the logic tractor beam.

      I like the design you outlined, by the way. It's nice to be able to select eg. "Pull" on your hotbar, and when the target is pulled close enough, you just click the neighboring "Hold" ISR to both stop pulling and start holding. - Neat! (y)


      EDIT: found a possibility for some minor simplification, and replaced the original BP, apparently before anybody downloaded it.
       

      Attached Files:

      #2 DeepspaceMechanic, Feb 28, 2019
      Last edited: Feb 28, 2019
      • Like Like x 2
    3. Crimson-Artist

      Crimson-Artist Wiki Administrator

      Joined:
      Sep 10, 2013
      Messages:
      1,640
      Thank you so much, dude!

      As soon as tractor beams were announced I had the idea to build a tractor beam system this way I just didnt know exactly how to wire up the 3 input toggle (Is that what that circuit is called?). I knew that the mode toggle needed buttons but wasnt sure of how the wiring for it would've gone.

      Im going to add the 3 input toggle to the list of useful circuits on the wiki. I'm steadily trying to compile as many useful circuit designs in one place so ppl have a easy to check guide to building circuits.
       
      • Like Like x 2
    4. DeepspaceMechanic

      Joined:
      Mar 10, 2016
      Messages:
      387

      Glad I could help :)

      I checked the Wiki page you linked. It's a splendidly concise and well-organized page. Bravo for that (y)

      I noticed that you already added the circuit I shared, and also included a second variant of your own. I prefer your solution, it's more elegant without those delays. And Design-2 can actually be modified to work with ISRs in the way Design-1 does, simply by replacing the FlipFlops with ISRs and wiring them up in the same way. It spares two blocks per column compared to Design-1, and even has the advantage of turning off the previously activated mode simultaneously with the activation of the currently selected one (without a 0.5 sec delay).


      But you know, besides such a "3-input toggle", there's a possibility to have something that some of us established as a "3-way toggle": a single ISR that jumps through a sequence of three or more modes when clicked repeatedly. This system uses an ISR that is cross-linked with a button to turn itself off automatically after each time it's clicked. It has the disadvantage that you don't have an indication on the hotbar as to which mode is currently selected. But, of course, in the case of tractor beams, you can tell this simply by observing the beam's effect on the target anyway. This system was originally discussed in this thread, and you can check out my wiring diagram sketch of such a "3-way toggle" in the spoiler below:
      1, 2 & 3 represent whatever functions you wish to assign to such a triple-ISR, potentially including an inactive state.

      Note that one FlipFlop-Delay pair has to be turned on manually the first time.

      [​IMG]
       
      #4 DeepspaceMechanic, Mar 1, 2019
      Last edited: Mar 1, 2019
      • Like Like x 1
    5. DeepspaceMechanic

      Joined:
      Mar 10, 2016
      Messages:
      387
      UPDATE:
      I couldn't resist making a variant of the previously shared tractor beam rig which uses the aforementioned single-ISR solution for toggleing between more than two states. I attached this second variant's blueprint to this post.

      As shown in the GIF below, this system comes with a dedicated tractor beam camera, that is labeled with a dynamic display to indicate whether the beam is in its Push, Pull, Hold or Off state.

      Without the HUD, the GIF doesn't show that I switched between these four states by subsequent clicks of the same ISR, but you can trust me ;)

      Check out the attached blueprint in the game for the details.



      starmade-gif-0000.gif
       

      Attached Files:

      #5 DeepspaceMechanic, Mar 1, 2019
      Last edited: Mar 1, 2019
      • Like Like x 5
    6. Lone_Puppy

      Lone_Puppy Me, myself and I.

      Joined:
      Mar 12, 2015
      Messages:
      1,231
      Hey DeepspaceMechanicDeepspaceMechanic , that Tractorbeam rig is pretty awesome! I had a play with it, and it's a nice rig. How did you work out the logic for the different beam variations?
       
      • Like Like x 1
    7. DeepspaceMechanic

      Joined:
      Mar 10, 2016
      Messages:
      387

      Thanks, I'm glad you like it.

      Since there's no guidance in the in-game block descriptions as to how we should use logic blocks to automate tractor beam systems, I had to take a hint from CrimsonArtist's original post, specifically the line "and each individual ISR determines how many activators are on."

      After a little experimentation, it turned out that you have to connect two activators to the tractor beam computer - if one of them is On, the beam will push; if both of them are On, the beam will pull; if none of them are On, the beam will hold.

      As for the system's Off state, you just have to toggle Off the clock circuit that feeds the tractor beam computer with a pulsating signal.

      I imagine that all such information will eventually get into the in-game block descriptions, it's just that the tractor beam and similar systems were implemented in a time of much work, and detailed in-game descriptions were at the time (and apparently still are) low-priority.
       
      #7 DeepspaceMechanic, Mar 3, 2019
      Last edited: Mar 3, 2019
      • Like Like x 2
    8. Lone_Puppy

      Lone_Puppy Me, myself and I.

      Joined:
      Mar 12, 2015
      Messages:
      1,231
      Awesome! Thanks to you both DeepspaceMechanicDeepspaceMechanic and Crimson-ArtistCrimson-Artist ! It's exactly what I've been looking for to manipulate cargo pods on a station I'm working on.
       
      • Like Like x 3
    9. Crimson-Artist

      Crimson-Artist Wiki Administrator

      Joined:
      Sep 10, 2013
      Messages:
      1,640
      • Like Like x 1
    10. DeepspaceMechanic

      Joined:
      Mar 10, 2016
      Messages:
      387
      • Like Like x 1
    Loading...