Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Water Level Control

Archive: 3 posts


Hey everyone!

I've been working on a little gadget that allows you to control the water-level using the D-pad. But since there's not "positional" input value or simply any logic component that allows me to completely control the exact amount of water, I've tried using a selector. But it's not working the way I want it to. (I will try to explain it as clear as possible)

I've wired up the D-Pad "Up/Down" to a direction splitter, the direction splitter is wired into two different microchip - One for rising the water-level - and one for lowering the water-level.

Inside each microchip there's a selector that has 6 inputs/outputs and the outputs are wired into 6 different water-levels. The microchip that will rise the water-level is obviously set to a higher amount of water and the microchip that will lower the water-level is obviously set to a lower amount of water. (If that makes sense!?)

This worked fine, I could rise and lower the water-level. But not in the order i want. The selector will restart after it hits the bottom output, and the water-level will be higher or lower which will cause a sudden switch between low -> high or high -> low

This might sound confusing, I don't have any screenshots yet, but hopefully I can access LBP.me soon to upload some.

I've only tried this very simple logic method, and I'm sure some of you have a better suggestion? Thanks in advance!

-- Jauw
2014-01-22 17:06:00

Author:
Jauw
Posts: 484


You could use timers hooked up to the buttons which would then be wired to a positional sequencer, and all you'd have to do is place the water tweakers on the sequencer and the timer would govern what position the water is based on the D-pad input. I hope that makes sense haha2014-01-22 18:22:00

Author:
theIronHorse
Posts: 279


There is a quite simple and smart solution, not found by me obviously lol, i think i saw it in a gifted object i obtained by playing a level...umm, anyway lol.

Add 2 more ports on your selector(s) and use your logic in the ports starting from the second down to the second to last. That means you will have 8 ports and will use the 6 ports ranging from 2 to 7. Then connect the output of 1st port to the input of 2nd (using an OR gate, along with the wire of your current logic if needed), and connect the output of 8th port to the input of 7th. (Again an OR gate along with the other wire of your current logic should be also used here, if needed).
That hopefully will prevent selector(s) from cycling.

There is another more complex method that involves splitting, ADD gate checking and combining the signal but the above should be enough i believe.

And of course there is also the Ironhorse's elegant solution wich might give you the advandage of easier modification and expandability.
2014-01-22 18:29:00

Author:
zupaton
Posts: 167


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.