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

Generating a digital signal, and combining with an analog one.

Archive: 2 posts


Hey everybody. I'm looking for a solution.

Given a wire (W) that has both digital (G) and analog (A) signal data, generate a new digital (D) signal based on the current state of (A). (G) must be discarded from (W) in favor of (D). (A) goes from -100% to over 100% ((W) starts off at a score sensor, hence the over 100% part). (D) must be -1 when (A) is less than 0% and +1 otherwise.

The circuity I currently have is designed in 3 phases:

1. Generate (D).
2. Clear (G) from (W) to be 0.
3. Combine (D) and (A) onto (W).

Generating (D) is no problem at all. Combining (A) and (D) is also no problem at all. However, I can't wrap my head around how to remove (G) from (W).

Circuitry screenshot here: http://i52.tinypic.com/2vxlpad.png

Legend:
Yellow boxes indicate identical microchips.
Red box indicates (D) generator.
Green box indicates combiner.
2011-03-11 11:07:00

Author:
Unknown User


Balorn made a signal combiner thing that's pretty handy - though I think his might have actually been a bit over-complicated. Basically it works like this:

Take a 50% battery (+1, 0.5)
Pass it through a NOT gate to get (0, 0.5)
combine these with a direction combiner to get (+1, 0.0)
Invert that with a NOT gate to get (0, 1.0)

Those last two signals can be used with AND gates to mask out part of a signal, and then an OR gate can be used to combine an analog-only signal with a digital-only signal. AND gates can mess up analog signal direction, though: so when stripping the digital portion out of an analog signal you may have to direction-split, use one AND gate on each output of the direction splitter, and then re-combined the two AND outputs with a direction combiner.

You have an additional problem here, though, which is that you are doing all this with a score-sensor output, and want to preserve the original analog signal if it's greater than 1.0. If you pass that signal through any inverters, or use AND with a 100% analog signal, you'll lose that...

So another way to strip out the digital portion of a signal is to subtract it away. Take the source signal, direction-split it. Then use direction combiners with the (+1, 0.0) signal to subtract out the digital portion of each direction splitter output. The resulting digital portion of those signals will then be either 0 or -1 (since the direction splitter only puts out non-negative values) - then direction-split those results: the digital portion (if any) will wind up at the negative terminal and the analog portion will wind up at the positive terminal. Then use a direction-combiner on the positive sides of those two direction splitters to get your signed analog signal back.
2011-03-11 15:06:00

Author:
tetsujin
Posts: 187


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.