Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

Help making a binary counter

Archive: 13 posts


I made a binary counter in LBP, but it goes past nine, to fifteen and i need it to stop at nine and reset to zero. does anyone know how i can do this?2010-07-15 00:23:00

Author:
applepod124
Posts: 163


Yes.

You need a BCD (Binary-Coded-Decimal) Ripple counter. I'm just trying to find you a diagram now
2010-07-15 00:35:00

Author:
rtm223
Posts: 6497


Ok. Thanks!2010-07-15 01:04:00

Author:
applepod124
Posts: 163


hmmm, there is this one that requires a resettable toggle:

http://www.internetarchaeology.org/www.geocities.com/Templarser/digital/FF9.gif

I need to go to bed now, but I know comphermc can provide you with a resettable one if you need (and hopefully he is vain to search for his own name and find this thread)

There are other ways of doing it, where you detect a 9 state and loop that through an OR into a couple of the toggle inputs (to force them to go low).
2010-07-15 01:34:00

Author:
rtm223
Posts: 6497


Alright, I just published a copyable level at the bottom of my planet called "Binary Counters for erisalaw54"

There are two. The first one uses rtm223's winch-based toggle. The second one uses aya042's zero-latency dissolve-based toggle. Both loop from 0 to 15 and also have a separate reset button.

They have some small imperfections but I'm too lazy atm to fix them

The one on the left would be more thermo-efficient if you inverted all the keyswitches and connected the reset winches from the toggles to the dark matter base. Then, you wouldn't need that extra L shape of dark matter.

There's also a problem with either of them counting when you hit play mode. I don't know why it happens but I think it's a glitch with 1-shot inputs. The first one counts when you go to play mode but I prevented that in the second one by saving the level while it starts in a default reset position.

The second one uses 25-50% more thermo because of the manual reset button. I know the glass is weird, but it's very stable and consistent.

I'll probably delete the level after you copy it so please give me a heads-up. I'm just glad I can put them to use because I doubt I'll ever use them.
2010-07-15 02:03:00

Author:
Incinerator22
Posts: 3251


I'll check out the level now. thanks.2010-07-15 02:46:00

Author:
applepod124
Posts: 163


thanks incinerator22. now all i need it to make it count from 0-9 instead of 0-15.2010-07-15 04:03:00

Author:
applepod124
Posts: 163


Oh, I thought you already had it counting from 0-15, hence why i didn't point you in the direction of a normal binary counter.

You still need to do the detection of 9/10 and reset the device at that point, so it forces it to 0 at the next clock pulse. I have just worked out (I think) the best way to make it, but you'll have to wait a good few hours before I can get to a PS3 I'm afraid.
2010-07-15 09:41:00

Author:
rtm223
Posts: 6497


I made a binary counter in LBP, but it goes past nine, to fifteen and i need it to stop at nine and reset to zero. does anyone know how i can do this?

Is there a reason you actually need the binary outputs? If not, just use an incremental bolt (https://lbpcentral.lbp-hub.com/index.php?t=19915-Incremental-Bolt).

If you do need binary outputs, you can still use an incremental bolt - just use multiple keys corresponding to the different binary outputs for each state.

Depending on your intended application, there may be an even more efficient way to do it.
2010-07-15 15:58:00

Author:
Aya042
Posts: 2870


I tried making a counter with a bolt and in short, it didn't turn out very well. I also tried making one with OR switches and rtm223's ordered inputs tool. that worked but it used a large amount of thermo when counting to high numbers, so i thought i'd try a binary counter to see if it would work.2010-07-17 17:56:00

Author:
applepod124
Posts: 163


I tried making a counter with a bolt and in short, it didn't turn out very well.

I believe comphermc has a copyable level with a bolt-based counter example. It's pretty low-thermo IIRC.
2010-07-17 22:02:00

Author:
Aya042
Posts: 2870


^Ok. I'll check that out.2010-07-18 09:09:00

Author:
applepod124
Posts: 163


I just made a BCD. It works well, but it slill goes to 15. how do i make it reset?2010-07-29 19:48:00

Author:
applepod124
Posts: 163


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.