Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
X or Y but when both, only Y
Archive: 4 posts
What is the best method for creating a simple logic system, X or Y but when both, only X as an output? Example, I have two lights. There are two triggers that activate the lights separately, but when both are activated, only the one dominate light will turn on. | 2012-12-18 20:51:00 Author: Unknown User |
So, let me get this straight. Lets call the light bulbs A and B. X activates A, Y activates B? Is that correct? What do you mean by dominant light ? | 2012-12-18 22:55:00 Author: Ali_Star Posts: 4085 |
Use an XOR switch for Y, I guess. EDIT: Ah, it just occurred to me, the XOR switch should have three inputs with sensor X occupying two of them. | 2012-12-18 23:33:00 Author: MMLgamer Posts: 183 |
Y switch directly to Y light. X switch to 3-port XOR gate. XOR wired to X light. Wire Y switch to both remaining ports on the XOR. http://i9.lbp.me/img/ft/8a9ec278086b5c43154db114b540662dc612d6ef.jpg When Y is on, it will cause a double signal on the XOR, disabling it. If Y signal, but no signal from X switch, nothing happens to X light. If X and Y both on, X will not get through the XOR until Y is disabled. http://i1.lbp.me/img/ft/e11216bd55fcff67b343e19904fa454aa5affc54.jpg Another way is to use an AND gate before light X, wired to by switch X and an inverted signal from switch Y. This is an easier to understand setup, but I find the XOR method practical when X or Y are analogue sources. Thirdly, you can use a method that has signal priority at its heart! Put down a 3-port selector, wire switch X to port 2, switch Y to port 3. Selector output 2 goes to light X, output 3 to light Y. Now, when X is on alone, it will activate port 2. When Y alone, port 3. But when both X and Y are on, the highest port number takes precedence and only Y will turn on. http://i6.lbp.me/img/ft/f6698ffd3b09203a8842e6a80c41a3f58f932dff.jpg With this setup you'd need to set the selector back to port 1 when neither X or Y is active, so wire both output 2 and 3 to an OR gate. Wire the OR to selector input 1. This, too, is a priority situation: when input 2 or 3 is on, input 1 lights up as well now. However, not until the moment both of inputs 2 and 3 seize to be active, will port 1 be activated. http://if.lbp.me/img/ft/27f54935373c6274ca99f973fa09c8d1d163c3a4.jpg The big pro of method #3 is that it can easily be extended with more switches and lights while priority remains working and without growing complexity. | 2012-12-19 00:43:00 Author: Antikris Posts: 1340 |
LBPCentral Archive Statistics
Posts: 1077139
Threads: 69970
Members: 9661
Archive-Date: 2019-01-19
Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.