2-Bit Subtractor
![WhatsApp Image 2024-01-23 at 8.48.38 PM.jpeg](/proxy/?url=https://content.instructables.com/FF4/I3LD/LRQD9FJZ/FF4I3LDLRQD9FJZ.jpg&filename=WhatsApp Image 2024-01-23 at 8.48.38 PM.jpeg)
![WhatsApp Image 2024-01-23 at 8.51.09 PM (1).jpeg](/proxy/?url=https://content.instructables.com/FGY/5O7X/LRQD99IC/FGY5O7XLRQD99IC.jpg&filename=WhatsApp Image 2024-01-23 at 8.51.09 PM (1).jpeg)
![WhatsApp Image 2024-01-23 at 8.51.09 PM.jpeg](/proxy/?url=https://content.instructables.com/FI1/8MTB/LRQD99II/FI18MTBLRQD99II.jpg&filename=WhatsApp Image 2024-01-23 at 8.51.09 PM.jpeg)
![WhatsApp Image 2024-01-23 at 8.48.38 PM (3).jpeg](/proxy/?url=https://content.instructables.com/FCT/155A/LRQD99IP/FCT155ALRQD99IP.jpg&filename=WhatsApp Image 2024-01-23 at 8.48.38 PM (3).jpeg)
![WhatsApp Image 2024-01-23 at 8.48.38 PM (2).jpeg](/proxy/?url=https://content.instructables.com/F0K/BPKW/LRQD99IX/F0KBPKWLRQD99IX.jpg&filename=WhatsApp Image 2024-01-23 at 8.48.38 PM (2).jpeg)
![WhatsApp Image 2024-01-23 at 8.48.38 PM (1).jpeg](/proxy/?url=https://content.instructables.com/FMQ/W1F0/LRQD99J6/FMQW1F0LRQD99J6.jpg&filename=WhatsApp Image 2024-01-23 at 8.48.38 PM (1).jpeg)
![WhatsApp Image 2024-01-23 at 8.48.38 PM.jpeg](/proxy/?url=https://content.instructables.com/FRE/7LFZ/LRQD99JI/FRE7LFZLRQD99JI.jpg&filename=WhatsApp Image 2024-01-23 at 8.48.38 PM.jpeg)
![WhatsApp Image 2024-01-23 at 10.11.57 PM.jpeg](/proxy/?url=https://content.instructables.com/FWH/T3HR/LRQD9FWK/FWHT3HRLRQD9FWK.jpg&filename=WhatsApp Image 2024-01-23 at 10.11.57 PM.jpeg)
This project is a 2-bit subtractor. which includes the 3 inputs of A, B, Bin. This circuit will give you the output of Difference and Borrow out.
Supplies
![WhatsApp Image 2024-01-23 at 8.41.35 PM.jpeg](/proxy/?url=https://content.instructables.com/FTW/6IS7/LRQD98SI/FTW6IS7LRQD98SI.jpg&filename=WhatsApp Image 2024-01-23 at 8.41.35 PM.jpeg)
The gates which are used In the 2-bit subtractor are as follows:
AND Gate
OR Gate
XOR Gate
NOT Gate
LED
Wires
Working of the Circuit
![WhatsApp Image 2024-01-23 at 8.54.37 PM.jpeg](/proxy/?url=https://content.instructables.com/FUY/61S0/LRQD99MV/FUY61S0LRQD99MV.jpg&filename=WhatsApp Image 2024-01-23 at 8.54.37 PM.jpeg)
![WhatsApp Image 2024-01-23 at 8.56.56 PM (2).jpeg](/proxy/?url=https://content.instructables.com/FT9/G5CZ/LRQD99N8/FT9G5CZLRQD99N8.jpg&filename=WhatsApp Image 2024-01-23 at 8.56.56 PM (2).jpeg)
![WhatsApp Image 2024-01-23 at 8.56.56 PM (1).jpeg](/proxy/?url=https://content.instructables.com/F7Z/RJRA/LRQD99NM/F7ZRJRALRQD99NM.jpg&filename=WhatsApp Image 2024-01-23 at 8.56.56 PM (1).jpeg)
![WhatsApp Image 2024-01-23 at 8.56.56 PM.jpeg](/proxy/?url=https://content.instructables.com/FE5/PGLD/LRQD99O3/FE5PGLDLRQD99O3.jpg&filename=WhatsApp Image 2024-01-23 at 8.56.56 PM.jpeg)
When all the inputs are 1, both the bulbs will on on. From the ICs pin 7 ground the wire, and the pin 14 it will be Vcc.
A and B will be attach to the pin 1,2 of the XOR and 4 pin will be Borrow in. A will be connected to the NOT Gate. A' will be connected to the AND Gate. B will be connected to the 2 pin of AND Gate. The output of AND Gate will be connected to the OR Gate. Bin will be connected to the 4 pin of the AND Gate. The (A XOR B)' will be connected to the 4 pin of the AND Gate. Bin is also connected to the AND Gate. The output of the AND Gate will be connected to the OR Gate. The output of the OR Gate will give the Borrow out. And the LED will also be there at the output of the OR Gate. The output (Difference) will be represented at the XOR Gate and LED will also be placed there, which will represent the output of Difference. Also connect a wire whose both ends are connected in ground wires, same in Vcc. Attach a wire in Vcc and connect it to the positive terminal of the battery, the ground wire will connected to the negative terminal of the battery.