Digital Paint Discussion Board

Digital Paint Community => Other Stuff => Topic started by: sk89q on August 29, 2009, 01:59:19 AM

Title: Circuit puzzle game!
Post by: sk89q on August 29, 2009, 01:59:19 AM
So let's play a puzzle!

You have a bulb and a battery, and you need to make a (simple) circuit to make the bulb glow only under certain conditions.

Basic Introduction to Circuits

Think of the battery as a water pump, and wires as pipes. For everything to work, the water has to leave the pump, go through the pipes, and then return back to the pump.

Here's a simple circuit with a battery (represented by the symbol on the left) and a light bulb (or more precisely, an LED) on the right:
(http://img133.imageshack.us/img133/2915/1basic.png)

The "water" starts from the battery, goes around the wires, through the light, and then back to the pump. The "water" has to return back to the pump through the light for the light to be on, which it is in this case.

Now what if we split the piping?

(http://img133.imageshack.us/img133/8697/2twolights.png)

It works too! Both lights are on!

Now let's introduce a very simple switch, the "single pole, single throw" (SPST) switch. It is either on or off:

(http://img133.imageshack.us/img133/491/3switch.png)

When it's off, the pipe is cut off, so the "water" won't get to the 2nd light. Now the water can just go to the bottom and then to the right, but after it goes through the 2nd light, it has nowhere to go to return back to the pump (battery), and it cannot go back the same way it went.

Now let's introduce another switch, the "double pole, single throw" (DPST) switch. When it's on, the electricity goes through one wire, and when it's "off," it goes through another wire.

(http://img133.imageshack.us/img133/2482/4spdt.png)

So you can turn on one light or another, but not both at the same time.

See, the other way:

(http://img133.imageshack.us/img133/4721/4spdtotherway.png)

Lastly, let's introduce the "double pole, double throw" (DPDT) switch. It's two of the above switches in one, but you have to have BOTH switches in a DPDT switch on, or both to be "off." You cannot have one on and the other off. See here:

(http://img133.imageshack.us/img133/4669/5dpdt.png)

In this circuit simulator I am using, it doesn't show, but normally there is a dotted line through the two above switches to indicate that both of them are together. It's supposed to look like this:

(http://img29.imageshack.us/img29/2235/dpdtsymbol.gif)

If you don't fully get it, you can try this simple circuit simulator, although it only has the first type of switch:
http://phet.colorado.edu/simulations/sims....ion_Kit_DC_Only (http://phet.colorado.edu/simulations/sims.php?sim=Circuit_Construction_Kit_DC_Only)

Simulator to Use

Once you get the hang of it, you can use this simulator: http://www.falstad.com/circuit/ (http://www.falstad.com/circuit/)

Some notes:
NOTE: The LED only takes water/electrons from one end of the battery. If the light isn't turning on, try switching the way you connect the battery.
(http://img132.imageshack.us/img132/6271/leddir.png)
Puzzles

You can submit your solution by posting screenshots, or drawing a schematic.

#1. Lamp #1 must glow ONLY if TWO switches are both in the "ON" position.
#2. Light lamp #1 when switch A is ON, and light lamp #2 when switch A is OFF.
#3: Turn on a light when BOTH switch A and switch B are ON, or when both are OFF, but not if one is ON and the other is OFF.
#4: Turn on a light only when switch A is ON and switch B is OFF, or vice versa. The light must not turn on when both switches are ON or both switches are OFF.
#5. Turn on a light only when ANY ONE switch out of THREE is ON, OR when ALL switches out of three are ON. If TWO switches are ON, then the light must be OFF. If ALL switches are OFF, then the light must be OFF.
#6. Have a lamp glow when at least TWO out of THREE switches are on, by using either 0 or 2 or more DPDT.
#7. Have a lamp glow when at least TWO out of THREE switches are on, by using 1 DPDT.
More to come...
Title: Re: Circuit puzzle game!
Post by: Zorchenhimer on August 29, 2009, 02:27:14 AM
And here I was expecting a flash game.  :(
Title: Re: Circuit puzzle game!
Post by: sk89q on August 29, 2009, 01:16:46 PM
Three more:
#3: Turn on a light when BOTH switch A and switch B are ON, or when both are OFF, but not if one is ON and the other is OFF.
#4: Turn on a light only when switch A is ON and switch B is OFF, or vice versa. The light must not turn on when both switches are ON or both switches are OFF.
#5. Turn on a light only when ANY ONE switch out of THREE is ON, OR when ALL switches out of three are ON. If TWO switches are ON, then the light must be OFF. If ALL switches are OFF, then the light must be OFF.
Title: Re: Circuit puzzle game!
Post by: sk89q on August 29, 2009, 05:27:58 PM
Since some expressed ambiguity about puzzle #5 (on another forum), I have updated it.
Title: Re: Circuit puzzle game!
Post by: Justinph5 on August 29, 2009, 05:56:43 PM
sweet.         Off topic: Now is there a site for understanding amps vs.volts vs. resistors?   (not the calculator, I'll just use that for double checks), but a site that uses pics to help explain? I'm very visual.
Title: Re: Circuit puzzle game!
Post by: T3RR0R15T on August 29, 2009, 06:17:12 PM
I'll play it in the next days, because i don't want post the answer before another one played it :)
Title: Re: Circuit puzzle game!
Post by: sk89q on August 29, 2009, 09:35:50 PM
#6. Have a lamp glow when at least TWO out of THREE switches are on.

And no, I don't know a guide.
Title: Re: Circuit puzzle game!
Post by: sk89q on August 29, 2009, 10:26:02 PM
#7. Have a lamp glow when at least TWO out of THREE switches are on, by using 1 DPDT.

I consequently changed #6 to:
#6. Have a lamp glow when at least TWO out of THREE switches are on, by using either 0 or 2 or more DPDT.
Title: Re: Circuit puzzle game!
Post by: Eiii on August 31, 2009, 06:22:13 PM
Here's (http://orst.edu/~merriler/img/5.png) my solution to #5.

EDIT:
Aaaaand #6 (http://orst.edu/~merriler/img/6.png).

EDIT2:
Aaaaand #7 (http://orst.edu/~merriler/img/7.png).
Title: Re: Circuit puzzle game!
Post by: jitspoe on August 31, 2009, 11:20:52 PM
Sorry, sk89q, I'm not doing your ECE homework for you!
Title: Re: Circuit puzzle game!
Post by: sk89q on September 01, 2009, 02:58:17 AM
This isn't homework. Writing that tutorial with god darn slow ass Photoshop CS4 took almost more time than trying to do them myself.

@Eiii: I'm going to assume you did those right. While it doesn't seem that anyone here wants to do these, I also posted these puzzles on the other forums, and I'm done with checking solutions >:

BTW, I might make a digital circuit puzzle thread. Depends if anyone cares (on here/other forums I posted this on) for actually doing them. People generally stopped posting after I posted puzzle #5.