Fixing Wire Problem in Nim Game Design

  • Thread starter Thread starter EEmajor
  • Start date Start date
  • Tags Tags
    Confused
Click For Summary

Discussion Overview

The discussion revolves around issues encountered in the design of a Nim game using digital logic components, specifically focusing on problems related to wiring and signal integrity in a circuit involving D flip-flops and logic gates. Participants explore the behavior of the circuit when interacting with wires and switches, as well as solutions to ensure proper logic levels are maintained.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • One participant describes unexpected behavior in their circuit where touching a wire connected to a D flip-flop causes an LED to light up, suggesting issues with signal integrity.
  • Another participant notes that leaving CMOS logic gate inputs floating can lead to erratic behavior due to high impedance, recommending that unused inputs be tied off appropriately.
  • There is a query about the connections of inputs when switches are open, indicating uncertainty about how the circuit behaves in that state.
  • A suggestion is made that a pull-up resistor may be necessary to stabilize the input signals.
  • A participant reports resolving their issue by identifying faulty gates and implementing a resistor to ground to ensure proper logic levels from a switch.

Areas of Agreement / Disagreement

Participants express various viewpoints on the causes of the issues and potential solutions, but there is no clear consensus on the best approach to take. Some solutions are proposed, but the effectiveness of these solutions is not universally agreed upon.

Contextual Notes

Participants mention the importance of ensuring that logic gate inputs are not left floating and the role of pull-up resistors in maintaining stable logic levels. There are references to specific wiring configurations and component behaviors that may depend on the particular setup.

Who May Find This Useful

This discussion may be useful for individuals designing digital circuits, particularly those working with CMOS logic and troubleshooting signal integrity issues in their designs.

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: 441
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:

Similar threads

Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 34 ·
2
Replies
34
Views
5K
Replies
1
Views
4K
Replies
14
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 18 ·
Replies
18
Views
5K