Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

"red stuff" logic gates


  • Please log in to reply
1510 replies to this topic

#1

casino.doug

Posted 03 July 2010 - 06:44 AM

this thread is for posting how to make logic gates and uses for logic gates.
:sponge: =switch
:brick: =wire
:stone: = any block
:P  = red torch
[iron]   = air

:!:  is a not gate made from
:sponge:  :brick:  :stone:  :soil:


and gate

:!:  :brick:
[iron]  :stone:  :soil:
:!:  :brick:

OR gate

:sponge:  :brick:
[iron]  :brick:  :brick:  :stone:  :log:  :brick:  :stone:  :bookshelf:
:sponge:  :brick:

optimised XOR gate thanks to Wervyn

Quote

Wervyn
:sand: :brick: :brick: :soil: :tnt: :brick: :sand:
:!: :brick: :sand: :brick: :sand: :brick: :sand:
:sand: :soil: :tnt: :brick: :sand: :brick: :arrow:
:!: :brick: :sand: :brick: :sand: :brick: :sand:
:sand: :brick: :brick: :soil: :tnt: :brick: :sand:

more shall be added soon as made

sorry if this was better to put in a different thread such as a water logic gate thread but i thought it deserved its own

NOTE:for all of the torches they are to be put on the side of the blocks

EDIT #1:added or gates
EDIT #2:fixed or gate diagram
EDIT #3&4 added XOR gate and corrected name sorry D:

Register or log in to remove.

#2

Mystic-poot

Posted 03 July 2010 - 06:48 AM

I was JUST thinking of this! :P

#3

casino.doug

Posted 03 July 2010 - 07:32 AM

XOR
Posted Image
for those to lazy to click view full image
http://i1039.photobu... ... ORgate.png
this one is a image because i was to lazy to do it in smilies

also in there is the NAND chip witch is just a and with a not at the end

#4

DarkS7G
    DarkS7G

    Carpenter

  • Members
  • 45 posts

Posted 03 July 2010 - 07:41 AM

Wow that is pretty complex. I guess the basic thing to help understand is that a block with a torch on the side of it is an inverter.
This is the greatest addition to minecraft so far. The more things that can be controlled by these the better the game gets.

Also, if you flip a torch on and off really quickly a bit it will burn out and turn off for a second. Pretty cool.

#5

Oddix
    Oddix

    Redstone Miner

  • Members
  • 529 posts

Posted 03 July 2010 - 07:59 AM

ughhh... I took logic and this still doesn't make much sense to me.

what are some clever ways to utilize these gates?
I minecraft with my eyes closed.

#6

casino.doug

Posted 03 July 2010 - 08:02 AM

no clue :D
some how i dont think much of it will be any use to normal minecraft users
but for people like me we can make binary computers :D
as im righting this im working on a binary adding ......hmmm what to call it..... ill just go with gate

#7

Wervyn
    Wervyn

    Coal Miner

  • Members
  • 112 posts

Posted 03 July 2010 - 08:12 AM

Smaller XOR:
:sand:  :D  :D  :brick:  :sand:  :sand:  :sand:
:sand:  :brick:  :sand:  :brick:  :sand:  :sand:  :sand:
:!:  :brick:  :sand:  :soil:  :tnt:  :brick:  :sand:
:sand:  :soil:  :tnt:  :brick:  :sand:  :brick:  :arrow:
:!:  :brick:  :sand:  :soil:  :tnt:  :brick:  :sand:
:sand:  :brick:  :sand:  :brick:  :sand:  :sand:  :sand:
:sand:  :brick:  :brick:  :brick:  :sand:  :sand:  :sand:

I would LIKE to make it look like this:
:sand:  :brick:  :brick:  :brick:  :sand:  :sand:  :sand:
:!:  :brick:  :sand:  :soil:  :tnt:  :brick:  :sand:
:sand:  :soil:  :tnt:  :brick:  :sand:  :brick:  :arrow:
:!:  :brick:  :sand:  :soil:  :tnt:  :brick:  :sand:
:sand:  :brick:  :brick:  :brick:  :sand:  :sand:  :sand:

However the fuse won't connect with the transistor block on the edges, that way.

EDIT: Oh but wait, THIS should work:
:sand:  :brick:  :brick:  :soil:  :tnt:  :brick:  :sand:
:!:  :brick:  :sand:  :brick:  :sand:  :brick:  :sand:
:sand:  :soil:  :tnt:  :brick:  :sand:  :brick:  :arrow:
:!:  :brick:  :sand:  :brick:  :sand:  :brick:  :sand:
:sand:  :brick:  :brick:  :soil:  :tnt:  :brick:  :sand:

Incidentally, as has already sort of been pointed out, the inverter assembly is basically a transistor. This is very useful if you know anything about circuit design.

"Not that most of you do."
Cynicism is the intellectual cripple's substitute for intelligence.

#8

casino.doug

Posted 03 July 2010 - 08:15 AM

isn't that exactly what i made?
mine is just 3 NAND gates put together

#9

Kamji
    Kamji

    Coal Miner

  • Members
  • 126 posts
  • Location: Migrated to DF

Posted 03 July 2010 - 08:17 AM

How do you make the wires.
Does it come with the red torches?

Grimsight said:

i have burned a whole house down by doing this on accident... lava be trollin

#10

casino.doug

Posted 03 July 2010 - 08:19 AM

the red "wires" are just the "red stuff" placed on the ground

#11

DarkS7G
    DarkS7G

    Carpenter

  • Members
  • 45 posts

Posted 03 July 2010 - 08:19 AM

He is just trying to make it as small as possible.

I just discovered after building your XOR gate that it takes time for the current to travel. Set up a long wire with a door at the beginning and end. The closer door will open before the farther door. Would some sort of clock be possible with this? Maybe we actually could build some kind of computer.

#12

Wervyn
    Wervyn

    Coal Miner

  • Members
  • 112 posts

Posted 03 July 2010 - 08:22 AM

Mine is three NOR gates put together, because NOR based logic is going to work with this system much better than NAND based will.  It's also about ten times smaller, so booyah.

EDIT: It may not have been clear from the original post, but that's a one-to-one scale diagram of the tiles, not an abstraction.  The whole thing really should be no larger than 7x5 tiles.

"Don't overcomplicate things."
Cynicism is the intellectual cripple's substitute for intelligence.

#13

KinoftheFlames

Posted 03 July 2010 - 08:26 AM

NOR gate
:sponge:  :brick:
[iron]  :stone:  :P
:sponge:  :brick:

NAND gate
:!:  :brick:
[iron]  :stone:  :bookshelf:  :brick:  :stone:  :bookshelf:
:!:  :brick:
The warpig thirsts for blood.

#14

casino.doug

Posted 03 July 2010 - 08:31 AM

oh i see ty for the optimized gate :P
ill be quoting that in the main post unless you have any complaints about me doing so

#15

KinoftheFlames

Posted 03 July 2010 - 08:33 AM

OR gate (smaller than OP)
:P  :bookshelf:  :brick:  :brick:  :brick:  :stone:
:stone:  :brick:   :soil:  :sponge:  :brick:  :soil:
:bookshelf:  :sponge: :stone:  :soil:  :soil:  :soil:

sand is nothing. tnt is new torch
The warpig thirsts for blood.

#16

splad
    splad

    Tree Puncher

  • Members
  • 25 posts

Posted 03 July 2010 - 08:38 AM

oh, cool, i had just posted my XOR gate in another thread then i saw this. a full adder should be easy now!

how long before we have fully computerized fortresses?

#17

DarkS7G
    DarkS7G

    Carpenter

  • Members
  • 45 posts

Posted 03 July 2010 - 09:02 AM

Alright. I've made a cycle kind of thing:
Posted Image

You flip the switch on the right and then turn it off just as the door at the left side opens. The current should  continue to loop forever with no power source. The delay is caused by the inverters. This will switch states about 2 times a second. All the doors along the top open and close in order. If you don't time it perfectly it will get faster and faster and become always on or become slower and turn off.

What could be done with this?
Maybe able to make a "sprint through a tunnel with doors closing behind you" kind of action scene.

#18

rupertofly
  • Location: Melbourne Australia

Posted 03 July 2010 - 09:14 AM

or with underground wiring make it look like a ghost is in with or the doors slamming
Posted Image
may notch be with you
and also with you
we lift up swords
we lift them to to you
for the developer, blogger, and generally awesome guy. mojang
mojang

#19

Wervyn
    Wervyn

    Coal Miner

  • Members
  • 112 posts

Posted 03 July 2010 - 09:27 AM

Well if you're really serious about making computers you're going to need some of these:

RS flipflop
:!:  :sand:  :sand:  :sand:  :sand:  :sand:  :!:
:brick:  :sand:  :sand:  :sand:  :sand:  :sand:  :brick:
:soil:  :brick:  :D  :soil:  :soil:  :brick:  :soil:
:tnt:  :sand:  :sand:  :soil:  :sand:  :sand:  :tnt:
:brick:  :brick:  :soil:  :soil:  :obsidian:  :brick:  :brick:
:arrow:  :sand:  :sand:  :sand:  :sand:  :sand:  :arrow:

This one is a little hard to explain in a two dimensional diagram, but basically, you need to have a little raised S of soil and have the wire go over it, and you need to have a mirrored pit that goes beneath it and run wire through that too. In short, you need to cross the wires, and have the output each gate feed back into the other without touching. This is basically the building block of computer memory.  If you flip one switch and then flip it off, it'll stay in one state. If you flip the other switch and then flip it off, it'll stay in the other state. Of course if you ever flip both switches on at the same time, you'll get a fun race condition and one of your torches will burn out.

"Dibs on the Electrician job."
Cynicism is the intellectual cripple's substitute for intelligence.

#20

DarkS7G
    DarkS7G

    Carpenter

  • Members
  • 45 posts

Posted 03 July 2010 - 09:35 AM

Well here's a much simpler version of the clock:

Posted Image

This is accurate and will never go out. No lever required. As soon as you complete the circuit it will begin its cycle. I tried making it faster than this (which is about 3-4 ticks per second) but the torches burn out and you have to reset it. The more double NOTs the slower it is.

Just hearing the word flip-flop makes me cringe. I just took digital logic and had the most boring professor ever. I had a project to make a synchronous counter with flip flops, but my partners did most of the work. This is interesting though. Will that rs flip flop definitely work?