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: 428
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:
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...

Similar threads

Back
Top