Skip to main content

Command Palette

Search for a command to run...

How does 0, 1 Binary make Everything in your computer?

Published
3 min read
How does 0, 1 Binary make Everything in your computer?

Computers are everywhere, on your desk, in your pocket, the whole world is dependent on computers. From music, movies, games to complex calculations, all are done with the help of computers.

You all know that computers work on binary digits which are 0 and 1. So have you wondered how 0 and 1 computers can do so many complex things? How do such beautiful images, music, and movies come to be?

In this article, I am going to share every information related to computers from 0 and 1 to full computers.

Computers give every output in human forms like text, video, and image, but everything inside the computer is operated by a binary number which is 0 and 1.

Why does a computer always uses 0 and 1?

binary3.jpg

This is because as you know that computers work by electricity, which consists of wires, circuits, and most importantly transistors which work as switches. The transistor can be on or off, yes or no, 0 or 1, complete binary operates by these transistors.

Whenever the company praises its product, it tells that this product has 6 billion transistors. So these signals on and off are called binary digits i.e bits.

There are only two possibilities in 1 bit, which are 0 and 1 and 2 bits have 4 possibilities (0,1), (1,0), (0,0), and (1,1). Similarly, 8 bits have 256 possibilities and 8 bit is also called 1 byte. Every calculation is done by combining these bits.

How is a calculation done in computers?

Transistors are placed in a computer in such a way that logic gates are made. For example NOT gate in which if you give 0 input it will give you 1 output, and vice-versa. Same in AND gate which has two inputs if one of them is 0 then the output will also become 0. Thus there are many gates.

Through these logic gates, we can make many more complex logics by which computers can do calculations like addition, subtraction, multiplication.

How Computers Create Text, Images, Video, and Music Using Binary digits(0 and 1)?

Text

The computer gives us alphabets in the method of ASCII or Unicode. In these methods, each letter character has its own numerical code. For example, I write Asus then the computer will store it as A=065, s=115, u=117, and s=115 then it is translated into a binary number which is (01000001, 01110011, 01101000, 01110101)

Images

All pictures are made with little pickles which are present on your device screen and these pickles have three colors which are red, green, and blue all the colors are made from these colors and the computer recognizes these colors by those numbers which are given to them like red( 255,0,0), black(0,0,0) blue(0,0,255).

By binary input, all pickles show their color and each pickle shows different colors which make up the image.

Video

Video works similar to image but video requires higher processing power because the image was 1 frame but the video has 24 frames changed every second and each frame has different bits that's why video use more storage than image.

Games

Game or more complicated because preloaded frames are shown in the video but in-game the computer has to make the frames as you play. The computation of games is very complex it is so complex that even a CPU cannot manage that's why we need GPU.

Music

Music is also the same, music consists of waves that have high and low nodes in this also each wave has different numbers and is also saved as binary digit(0 and 1).

Conclusion

In this way if the image, video, text and game are all processed by binary digit and converting it we get an image music or video.