Fixing Wire Problem in Nim Game Design

  • Thread starter Thread starter EEmajor
  • Start date Start date
  • Tags Tags
    Confused
AI Thread Summary
The discussion focuses on troubleshooting a wire issue in a Nim game design using gate chips and switches. The main problem arises from unexpected LED behavior when touching a wire connected to a D flip-flop and an AND gate, indicating potential floating inputs in the circuit. It is suggested that high impedance in CMOS logic gates can cause this issue, and connecting unused inputs properly is essential. The user resolves a similar issue with banana clip wires by switching to regular wires and later fixes the switch problem by adding a pull-up resistor to ensure a defined output. The circuit is now functioning correctly, providing the necessary logic levels for the game.
EEmajor
Messages
3
Reaction score
0
Ok; so basically, I am creating the game of Nim through gate chips (AND/OR/NOT), switches, and yea all the basics.

I have pretty much completed designing and physically building the game but I have been having issues with one portion of the design -not the logic of the design.I have a regular wire coming out the output of a D flip-flop into an AND gate. I also have a resistor-LED coming off the output to ground to see the output of the flip-flop.When I physically touch the wire or get really close to the wire, the led lights up accordingly:

not touching but close = led flickers
touch the wire = led on
squeeze wire = led brighter

SOOO I have no idea why this is happening or how to fix this. (I can touch all other wires in the circuit and nothing happens.)
*****
OH and I had the same problem using banana clip wires to switches but that problem was solved when I connected the switches using the regular wires.
 
Engineering news on Phys.org
EEmajor said:
Ok; so basically, I am creating the game of Nim through gate chips (AND/OR/NOT), switches, and yea all the basics.

I have pretty much completed designing and physically building the game but I have been having issues with one portion of the design -not the logic of the design.


I have a regular wire coming out the output of a D flip-flop into an AND gate. I also have a resistor-LED coming off the output to ground to see the output of the flip-flop.


When I physically touch the wire or get really close to the wire, the led lights up accordingly:

not touching but close = led flickers
touch the wire = led on
squeeze wire = led brighter

SOOO I have no idea why this is happening or how to fix this. (I can touch all other wires in the circuit and nothing happens.)



*****
OH and I had the same problem using banana clip wires to switches but that problem was solved when I connected the switches using the regular wires.

Welcome to the PF.

If you leave CMOS logic gate inputs floating, you can see this type of behavior. The CMOS inputs are very high impedance when left unconnected, so static electricity and nearby parasitically-coupled 60Hz noise can make them switch their outputs. Always have something connected to logic gate inputs (tie off any unused inputs appropriately).
 
This circuit will determine who starts the game (computer or human) and will toggle the current turn after the clk is pressed (push button switch).

heres how I wired the diagram:

I think I have all the inputs connected? but the circuit reacts in the same way...
 

Attachments

  • 537979_401712526514144_100000261994025_1517148_1955542694_n[1].jpg
    537979_401712526514144_100000261994025_1517148_1955542694_n[1].jpg
    32.4 KB · Views: 425
EEmajor said:
This circuit will determine who starts the game (computer or human) and will toggle the current turn after the clk is pressed (push button switch).

heres how I wired the diagram:

I think I have all the inputs connected? but the circuit reacts in the same way...

And when the switches are open, what is connected to those inputs... ?
 
Sounds like you just need a pullup resistor.
 
thanx guys! I got the wire fixed some of my gates were bad apparently.

butta Berkeman

Ok so I have this basic switch which looks like

http://image.made-in-china.com/2f0j00zbaQEhTqjtPO/Sub-Miniature-Toggle-Switch.jpg

When the switch is ON, current is allowed through the switch while when the switch is OFF, no current is allowed through the switch.

My problem is where when the switch is OFF. Seemingly, if you connect a switch CMOS logic gate, the input of the switch is floating rather than '0'. Is there a way to make the switch give an output of '0'?***********
nvm! I figured it out! I put a large value resistor connected to ground with the input from the switch which gave me a 0 and 1 output to the logic gates!THANKS!
 
Last edited:
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...

Similar threads

Back
Top