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

Managing Timer Signals

Archive: 5 posts


I have some timers that are working along side some sequencers. So if the timer is at 50%, then the sequencer is at 50%. The problem is that I have dials that are supposed to create the illusion that if you turn the dial half way, the timer will go up to half way. I've tried using wobble and motor bolts but with no luck.

So I guess my question is: Is it possible to sync the turning of the dial with the rising and falling of the timer? [If the dial spins right, the timer fills up. If the dial spins left, the timer resets.]

I could probably get a motor bolt to create a good illusion of the timer filling up as it spins to the right - but how could I get it to spin the other direction while the timer resets?

Thanks!
2011-03-16 20:40:00

Author:
Powershifter
Posts: 668


So I guess my question is: Is it possible to sync the turning of the dial with the rising and falling of the timer? [If the dial spins right, the timer fills up. If the dial spins left, the timer resets.]

It's not entirely clear what you mean, but a feedback system like in this post (https://lbpcentral.lbp-hub.com/index.php?t=52710-need-a-solution-for-analouge-movement-of-geometry&p=803614#post803614) might be useful. All you need is a way to translate the dial into an analog signal corresponding to how far it's been turned - a Tag Sensor ought to do the trick, but you won't get a linear output.

Might help to clarify what your "dial" actually is, and how it relates to the Timer, i.e. does the position of the dial determine the speed at which the Timer fills (or un-fills), or were you looking for a 'positional' relationship between the dial angle and the Timer value?
2011-03-16 21:14:00

Author:
Aya042
Posts: 2870


It's not entirely clear what you mean, but a feedback system like in this post (https://lbpcentral.lbp-hub.com/index.php?t=52710-need-a-solution-for-analouge-movement-of-geometry&p=803614#post803614) might be useful. All you need is a way to translate the dial into an analog signal corresponding to how far it's been turned - a Tag Sensor ought to do the trick, but you won't get a linear output.

Might help to clarify what your "dial" actually is, and how it relates to the Timer, i.e. does the position of the dial determine the speed at which the Timer fills (or un-fills), or were you looking for a 'positional' relationship between the dial angle and the Timer value?

The 'dials' are small button nobs that you turn. An example is like the dials you would find on a stove to turn a burner on. Another example of a dial would be a nob that you turn right or left to increase or decrease volume on a music player. I'm using the timer for visual effect, and so that I can get a signal to a sequencer. It's not really timing anything - it's actually for sending signals in percentages. If the timer is half full, it sets a sequencer to 50% .. which I can then use as a 50% signal.

So the idea is when the player turns the dial half way to the right, the timer also goes half way up .. giving 50% signal. Now let's say the player wanted to then decrease the signal. They would turn the dial a quarter turn to the left, and the timer would go down to 25%, thus giving me 25% signal on the sequencer.

I created something basic and similar to my set up:

http://id.lbp.me/img/ft/8eda1f9b5744fc88921a6555fe306e259fac1a36.jpg

The player gets in the controlinator - presses and holds 'x', and the timer will go up. I have it up to 50%, which is also indicated by the sequencer. The dial is the blue circle on the right. It's supposed to turn either left or right depending on if the timer increases or decreases. That creates the illusion that the dial is controling how much power (signal) is being put into the timer. The question is, is it possible to get the dial to turn left or right in sync with the timer increasing or decreasing?

If the player turns the dial right with half of a turn, the timer goes up 50% (while the dial is being turned). If the player turns the dial left, back to it's starting position, the time decreases back to 0% (while the dials is being turned). Hopefully that makes sense..

Edit: I just had a 'duh' moment. The problem is not the dial. I put a wobble bolt on it and set it to directional, and it's powered by my joystick. So now that works as it should. The real problem is what do I wire into the input of the timer so that it increases and decreases accordingly. Here's a new pic with the timer at 100%:

http://i7.lbp.me/img/ft/ad7070bdc89e74d703a784b970a00f0d215bf8d4.jpg

Edit - I changed the thread title since it's now more about timer signals than wobble or motor bolts
2011-03-16 21:44:00

Author:
Powershifter
Posts: 668


The problem is not the dial. I put a wobble bolt on it and set it to directional, and it's powered by my joystick. So now that works as it should. The real problem is what do I wire into the input of the timer so that it increases and decreases accordingly.

How about, instead of trying to make the dial position determine the Timer position, you do it the other way 'round by controlling the dial with a Joystick Rotator fed by the Timer? You'd have to do a bit of math to make it work, probably subtract 50% from the Timer signal, double the value, and feed that signal into the L/R input of the Joystick Rotator.

You'll probably also have to feed a small signal into the U/D input of the Joystick Rotator to keep it from rotating outside the top 180-degree section.
2011-03-16 22:08:00

Author:
Aya042
Posts: 2870


ah man I just got it working and it's so incredibly easy that I feel dumb I posted it in a help thread. I took what I had above in the last picture and switched the timer to directional. Then I wired it with my left joystick and wa lah .. works perfectly. doh!

Thanks for the help though
2011-03-16 22:11:00

Author:
Powershifter
Posts: 668


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.