## Things used in this project

## Story

### Binary

In mathematical operations, we often use the method of a decimal algorithm, but binary is a widely used in the calculation of a number of systems, binary data is 0 and 1 two numbers to represent the number. In decimal, we know that "1 + 1 = 2". So what is the operation in binary with Boson?

### Learn about Logical Operations

First, let's take a look at a few logical operations.

- Logic –AND

Logical operation diagram:

"AND" logical truth table:

- Logic –OR

Logical operation diagram:

"OR" logical truth table:

- Logic – NOT

Logical operation diagram:

"NOT" logical truth table:

- Logic – XOR

Logical operation diagram:

"XOR" logical operation schematic diagram:

"XOR" logical truth table:

### Binary Adder Schematic

The binary adder to be produced today is the addition of two numbers, that is, two inputs "A" and "B". The output is two digits, "S" and "Co" bit. “Co” is carry, “S” is the result.

The schematic of the binary adder is shown below.

What does it mean? Do not worry, let us follow the steps below to make the binary adder. So that we know how it is the operation, so as to get the binary addition of the formula.

### Binary Adder Required Modules and Tools

Next, we do some preparation for the production of binary adder, find the required BOSON components:

- Button Module * 2

- Boson Kit Main board * 1

- Battery Case * 1

- Boson Kit Splitter Module * 4

- Logic Module-NOT* 2

- Logic Module-AND* 2

- Logic Module-OR * 2

- LED Module * 2

### Binary Adder Module Introduction

All modules can be divided into four categories, input modules, function modules and output modules, and Boson Kit Main board.

**Input module:**Button Module

**Function modules:**Boson Kit Splitter Module, Logic Module-NOT, Logic Module-AND, Logic Module-OR

**Output module:**LED Module

### Wiring

We can simply see the binary adder as two paths, which are influential to each other, marked as "A" and "B".

### Connect "A" Path

- Use a short line to connect the input module (Button Module) to the Boson Kit Main board.

- Connect the "A" path to the function module and the output module in a single direction, paying attention to the order and direction of each module.

### Connect "B" Path

- Similar to the previous step. Connect the "B" path, but note that the part of the Logic Module -AND connected to the Logic Module -OR is connected according to the following figure.

### Interface Connections

- We found that many of the functional modules on the interface is not connected, how can this be done?

### Splitter Module

- Let's take a long line, connect the first Splitter Module in the "A" path to the Logic Module-OR in the "B" path.

- Use a long wire to connect the first Splitter Module to the Logic Module-OR in the "B" path.

- The second Splitter Module in the "A" path is connected to the Logic Module-AND in the "B" path with a long wire.

This is the last step!

It requires a medium-length wire. Connect the remaining two interfaces, that is the Logic Module-AND of the "A" path and the second Splitter Module in the "B" path, so that the complicated wiring part is done!

### Power

Let's get the power on!

Connect the Battery Case to the Boson Kit Main board and set the switch on the Boson Kit Main board to the "ON" position. You will see that the power indicator is on, indicating that it is already working.

### Binary Addition

- When the two buttons are not pressed, all the output of the LED Module are not lit.

This means that the binary addition algorithm is "0 + 0 = 0".

- When the red Button Module is pressed, it means "1", and "0" is not pressed, and the corresponding lamp at the S bit is on.

This means that the binary addition algorithm is "1+ 0 = 1".

- When the yellow Button Module is pressed, it means "1", and "0" is not pressed, and the corresponding lamp at the “S” bit is on.

This means that the binary addition algorithm is "0+ 1= 1".

- When the yellow the red Button Module are pressed, it means that "1" is input, and the lamp corresponding to the “Co” bit is on.

This means that the binary addition algorithm is "1+ 1= 10".

## Credits

## Replications

Did you replicate this project? Share it!

I made oneLove this project? Think it could be improved? Tell us what you think!