7 Attachment(s)
Yet another way to divide signals.
I've seen many ways to divide signals. We've done this http://www.lbpcentral.com/forums/sho...viding+signals and this http://www.lbpcentral.com/forums/sho...viding+signals, and now, we're going to do this. (Caution: This is kind of logical and crap.)
http://if.lbp.me/img/ft/edf515b513c7...a47baaa47c.jpg
This is my method of dividing signals. It can perform a/b, where a and b are between 0 and 100. There is a green tag on each piece of sticker panel. The tags are the same (no labels). The tag on the left sticker panel and the microchip on the right piece are exactly 100 units away from each other. The tag sensor on the right piece's microchip has a maximum detection range of 100 units, a minimum range of 0.1 units (so the analog signal will be more accurate), is set to closeness, and detects the green tags. It's output goes through a NOT gate before going into a signal probe, so the output is 100%.
The whole setup works by using a gadget I made called the center seeker, which is placed on the green piece of sticker panel. It can find the center of an area whose borders are marked by 4 tags. An example is the center seeker in a box. If all four of the box's sides are marked by tags, then the center seeker will always find the center of said box, no matter where it is in the box. The original center seeker could originally move around on both the x and y axis, but the one used here only moves around on the x, so it only needs two tags.
http://i6.lbp.me/img/ft/ab6d4edef578...a0f4faeb25.jpg
(The center seeker).
As you can see, it has a green tag on it. The center seeker will find the center of the two red pieces of sticker panel, and since it has a green tag on it, the tag sensor detects that instead. It outputs something close to 50% (tag sensors are not pinpoint accurate), so it's like we're dividing by two.
What happens if we place another center seeker inside?
http://i6.lbp.me/img/ft/7d6c8d088753...532c3c6b51.jpg
Wait for it...
http://i2.lbp.me/img/ft/82233f675975...741dd8c74e.jpg
This happens. The left center seeker finds the center between the left red and the right center seeker, and the right center seeker finds the center between the right red and the left center seeker, meaning equal distance between all of them. The tag sensor, detecting the nearest tag, outputs something like 66.66%-run through the NOT gate, that becomes 33.33. So, we have pretty much divided 100 by 3. See the pattern? If we had 3 center seekers, it would be like dividing by four, four center seekers, like dividing by 5, and so on.
Here is 100 divided by 7.
http://if.lbp.me/img/ft/b8febbaac36d...93df63f522.jpg
It's only kind of accurate, though.
But say, what if you didn't want to divide something other than 100? Like 50/3, or 30/2, instead of just 100/b?
Well, you can do this:
http://ia.lbp.me/img/ft/74a758217651...381da79ee7.jpg
What I did is move the left red 60 units towards the right red, so now the NOT gate outputs about 40%. Now I can divide 40 by any number.
http://i3.lbp.me/img/ft/e835f995b1c8...9ed4edc61d.jpg
40 divided by 5. It's something like 8%.
So that's my method:
Pros:
Simple compared to other methods.
Does not involve much math
Extremely customizable and tweakable.
Cons:
Not very accurate
Can take a long time to work.
Cannot handle negative values, although I may add logic that lets it.
So that's pretty much my method. So yeah.
(Thanks Creator's Toolkit for the sweet logic probe!)