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: 429
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:
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
Thread 'How Does Jaguar's 1980s V12 Dual Coil Ignition System Enhance Spark Strength?'
I have come across a dual coil ignition system as used by Jaguar on their V12 in the 1980's. It uses two ignition coils with their primary windings wired in parallel. The primary coil has its secondary winding wired to the distributor and then to the spark plugs as is standard practice. However, the auxiliary coil has it secondary winding output sealed off. The purpose of the system was to provide a stronger spark to the plugs, always a difficult task with the very short dwell time of a...

Similar threads

Back
Top