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

Analog Signal Change Detection?

Archive: 11 posts


Hope this isn't a stupid question but...

Is there a way to detect when an analog signal changes?

Like say, if I went from 1% to 2% on a battery it would output a digital signal?

And I don't want something complex like an ADC, but something much simpler.

I swear I've seen something like this before somewhere, maybe on a friends moon on something. So I'm pretty sure it's possible without an ADC.

Thanks!!!!!!!!
2015-08-12 03:55:00

Author:
comishguy67
Posts: 849


Well, ADC isn't complex, it's just a battery on a sequencer
but it is the only way to do it (if you're not on Vita) because analog signals aren't tied to a digital component, they are loose values, not connected to each other, and the only way to do it is through ADC (you can do it without ADC if you don't mind losing the digital component, and only having the output be 100% or 0%)
2015-08-12 04:13:00

Author:
amiel445566
Posts: 664


Well, ADC isn't complex, it's just a battery on a sequencer
but it is the only way to do it (if you're not on Vita) because analog signals aren't tied to a digital component, they are loose values, not connected to each other, and the only way to do it is through ADC (you can do it without ADC if you don't mind losing the digital component, and only having the output be 100% or 0%)

I was thinking of those huge "X-bit converters" that map out the entire analog spectrum with batteries on a sequencers when I said complex (perhaps ADC isn't the correct term?).

I just need something that can detect CHANGE" in a signal and output a digital signal. I SWEAAAAR! I've seen something that can do it simply. I think it was using frame delays and such.

Are you sure there's no other way?
2015-08-12 04:32:00

Author:
comishguy67
Posts: 849


ADC is Analog to Digital Conversion, it detects a value present and outputs a digital value.

There's no other way to gap the bridge between analog and digital values besides a sequencer and battery (except for on Vita), or a timer set to positional (1 less gate, but it's 3 times slower)

then all you have to do with the ADC is to set up subtraction to subtract the current value with the last frame value and set the value to absolute, then put that into the ADC unit.
It should look like this (|(N1 - N2)| > 0?)
2015-08-12 04:37:00

Author:
amiel445566
Posts: 664


Alrighty then. I'm just a little worried 'cause my levels at 75% thermo and I still have a ways to go about it (and infinite thermo is completely useless lol). If I DO happen to find that simpler way, I'll be sure to post it here.

Thanks anyway!
2015-08-12 04:50:00

Author:
comishguy67
Posts: 849


The unit itself is only about 4-5 logic pieces, if you want a diagram, say the word 2015-08-12 05:00:00

Author:
amiel445566
Posts: 664


The unit itself is only about 4-5 logic pieces, if you want a diagram, say the word

Wait really? Oh...

Yes please...

Edit: Oh wow, yeah I think I read you're post wrong. I thought it require an already existing ADC. Ok I got it now.
2015-08-12 05:05:00

Author:
comishguy67
Posts: 849


Regardless, I'll still make the diagram:
http://i8.api.vita.lbp.me/img/ft/588622bc5e0217e102f7b167f0017a3e6aebc099.jpg
There were some bugs with my original design in my head, so the actual setup consists of 8 gates

NOTE:
Red battery = input
White battery = -100%
AND gate = multiplication
OR gate = addition
sequencer = positional

How it works (with an example):
If I input 50%, then I input 65% in the next tick, it will evaluate it as such

if (|50% + (-65%)| > 0) then output 100% Digital ON
if (|50% - 65%| > 0) then output 100% Digital ON
if (|-15%| > 0) then output 100% Digital ON
if (15% > 0) then output 100% Digital ON
output 100% Digital ON
2015-08-12 05:32:00

Author:
amiel445566
Posts: 664


Oh no...I'm sorry. I don't think I explained what I wanted very well.

I need it to output an intermitted signal every time the signal changes, not a constant one. Like say, a counter set to reset itself and it emits only a frame of output.

Maybe I should actually explain what I need for my level too.

I'm trying to count how many times an item is emitted into my level. The problem is, the tag that identifies the item is always on (and needs to be always on) so the sensor that detects that tag is always on as well. It can't detect if any other of the same items emit onto the level because it's always 100% on.

I tried using the "count" option for the output value for the sensor, but it's only analog. So I need something that can turn whatever signal changes the sensor makes into digital output so I can plug it into a counter and "count" it.

Am I making sense?

Edit: AHA! YES! I figured it out!

THIS is what I wanted. You were right in that it only needed 4 pieces of logic. lol Sorry I didn't explain it better. But I got it now. Thanks for helping me get there!!!

http://i.imgur.com/aXMQGtY.jpg
2015-08-12 06:11:00

Author:
comishguy67
Posts: 849


just out of curiosity, what is triggering the emitter, and what are it's settings?
also what is the counter used for, is the analogue signal of the counter used or just digital when it's full?
2015-08-12 12:15:00

Author:
evret
Posts: 612


just out of curiosity, what is triggering the emitter, and what are it's settings?
also what is the counter used for, is the analogue signal of the counter used or just digital when it's full?

Technically the player is triggering the emitter (emitters actually) with basic AND gates.

Both the analog and the digital is used. The analog is used to display the count (with notes) and the digital activates the other logic.

Hmm...now that I think about it, Could I maybe just use a timer that's wired into itself and an OR gate? It would do the same thing, but without the signal change thingy...but timers tend to be inaccurate though...

Eh...I'll mess around with it.
2015-08-12 15:13:00

Author:
comishguy67
Posts: 849


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.