Breadboard and XOR Gate Not Working

Your schematic shows not what you have on your breadboard.

The LED is actually connected the other way round, i.e. anode is actually at 5V, cathode is connected to gate output via resistor (in addition it should show two separate inputs for the gate). The LED lights if the output of the XOR gate is LOW.

That's why you get the inverted output compared to what you expected.

simulate this circuit Schematic created using CircuitLab

70I am trying to make a circuit in which the switches will determine the outputs for the xor gate however when i used the switches it is giving me the opposite outputs. For example, a 1 & 1 should give a 0 but i am getting an output of 1.

I have attached a picture of my board.

Note the resistors connected to 5v and to switch are 470kohm and the resistor connected to led is 470 omhs.

note that for IC the VCC is on top right and grnd is on the bottom left. Also the top two pins from right after VCC are the inputs and the one below that is the output (HC86 gate).

Edit * I am not sure the schematic is correct as I was not given one to work with but I think this is essentially what I am trying to do.

simulate this circuit

Figure 3. Corrected schematic for OP to verify. [By @Transistor.]

·OTHER ANSWER:

simulate this circuit Schematic created using CircuitLab

70I am trying to make a circuit in which the switches will determine the outputs for the xor gate however when i used the switches it is giving me the opposite outputs. For example, a 1 & 1 should give a 0 but i am getting an output of 1.

I have attached a picture of my board.

Note the resistors connected to 5v and to switch are 470kohm and the resistor connected to led is 470 omhs.

note that for IC the VCC is on top right and grnd is on the bottom left. Also the top two pins from right after VCC are the inputs and the one below that is the output (HC86 gate).

Edit * I am not sure the schematic is correct as I was not given one to work with but I think this is essentially what I am trying to do.

simulate this circuit

Figure 3. Corrected schematic for OP to verify. [By @Transistor.]

Breadboard and XOR Gate Not Working 1

LED lights related articles
LED Downlight for Home and Office Applications
End of Halogen Light Bulbs Spells Brighter and Cleaner Future
Can't Get Raspberry Pi to Control LED Lights
What Household Items Contain Led Lights?
Incandesent Lights Going Out in 2008-2009?
Green Earth is continuously approaching different markets in various ways, we will keep on researching and designing innovative products, bring a better light to human beings. 
QUICK LINK
CONTACT US

Market cooperation : Pei Yin

E-mail : greenearthcn@greenearthcn.com

Phone : +86 13823531612

Supplier Cooperation : Zhi Song

E-mail : songzhi@green-earth.cn

Phone : +86 13588306599

ADDRESS
5-7F, Block 1, Industrial Park 29, Makan Village, Xili Town, Nanshan District, Shenzhen,China. 518055
FOLLOW US
   

Copyright © 2021 GREENEARTH  |  Sitemap

chat online
Please message us and we’ll be sure to respond ASAP, what product you intrested in?