0 and 1's - Binary (Digital) vs Analog...What?

rapbeats

Superstar
Joined
Jun 8, 2012
Messages
9,362
Reputation
1,890
Daps
12,850
Reppin
NULL
0 and 1's - Binary (Digital) vs Analog...What?

To understand this is to understand both computers and digital/analog recording/playback(there's a lot of home studio producers in today's time.)

How electrical signals converted into Digital (binary 1 0)

^^read thru the entire thing. very good/solid explanations that are easy to understand.

How electrical signals converted into Digital (binary 1 0)
Original question:
I already ask this question in yahoo and in Microsoft........they say that : did I mean to say how to convert analog signals to digital signals.....and they suggest me the theory of AD converter So, here is my question : the electricity that we use in our daily life to operate computers, refrigerators, televisions etc = ANALOG SIGNAL ?......because I want to know how this electricity is converted into digital signals

1. if electricity = analog signal, then ok I already got the answer(AD converter)

  1. if electricity analog signal, then suggest me any book where from I learn this mechanism step by step to convert it to digital signals
  2. if electricity analog signal, can I convert this electricity directly to digital, without converting it first to analog signal

Answers:
Your question assumes that there are somehow two kinds of electricity, analog and digital. This is not the case. The difference between analog and digital is how we humans interpret an electrical signal. Electricity is electricity, it does not care how we interpret it.

For an analog signal we interpret its level value (voltage, or sometimes current) as conveying information with infinite resolution: in the ideal world 1.00000 Volt and 1.00001 Volt convey different information (the latter could mean for instance that the measured temperature is 0.1 degree higher).

For a digital signal we interpret its level as conveying just one bit of information. For instance, below 2.5V (but ideally 0V) it conveys a 0, above 2.5V (ideally 5V) it conveys a 1.

An analog signal can clearly convey much more information with just the level on one wire. A digital signal on the other hand has the very important property that a little noise on the line does not affect the information in an ideal signal: 0V (ideal 0 signal level) + 1V noise => 1V, which is still recognizable as a 0 level. This means that a digital signal can be transported, stored/retrieved and processed without loss of information.

It turns out that it is much easier and cheaper to create a digital circuit that handle/store/transmit let's say 20 bits (which together can represent ~ 1*10^6 different values) than to create an analog circuit that can do things with an analog signal with an accuracy of 1*10-6. Hence the trend to do everything digital.

That brings us back to your question of A/D conversion. Our real world is inherently analog, and so are (nearly?) all our sensors that interface with the real world. They produce an analog signal, which we would like to feed into our digital circuits. The circuit that does this is called an Analog-to-Digital-Converter. IIRC there are good explanations on SE of the working of an ADC.

shareimprove this answer
edited Jun 13 '14 at 7:58


answered Jun 13 '14 at 7:07

Wouter van Ooijen

45.1k11 gold badge5252 silver badges121

---
All the signals in nature are analog signals. It needs enormous storage capacity to store an analog signal completely. So instead of storing all the values, only samples of a signal are stored and these samples can have only predefined values. The value of samples are 'rounded' to nearest 'allowed' value. Such a representation of signal is called digital signal and these predefined set of 'allowed' values are represented by binary values (combination of 1's and 0's).

The electricity that we use in our daily life to operate computers, refrigerators, televisions is an analog signal. The output of a micro-phone is an analog signal. The ADC's are used to represent these signals with binary values.

Note: Since only samples are taken and values are represented with discrete levels, analog-to-digital conversion leads to loss of some finer details in the signal. But the conversion is usually done with such a precision that the loss of details is under allowed limits or beyond human perception limits.

shareimprove this answer
answered Jun 13 '14 at 6:40

nidhin

7,46722 gold badges2121 silver badges39

--
0
The ADC stuff is useful if you want to describe the signal you receive. If you know you are receiving a numerical signal, and expect it to be 0 or 1, you have much more efficient ways to know if your signal is 0 or 1.
You probably know the logical 1 is often 5V, and the 0 0V. Those values depends on the technology you use (most parts on high-end microprocessors now use 1.2V as 1, and 0V as 0), but I will always say "5V" in my answer, for readability.
Were does it comes from ? From transistors. Digital electronics uses transistors as commutators. Transistors either let the current pass, or block it. If you put 5V on the gate of your transistor, it let the current pass, if you put 0V, it blocks the current (some transistors works just the opposite way, some are just different, but it does not matter here). By using 5V in your whole circuit, you become able to switch transistors ON and OFF using other transistors.
So, why precisely 5V ? In fact, we don't really need 5V. 4.5V works fine too, 5.5V works fines too, but 10V will probably make your transistor burn, while 2V will make your transistor let some current pass, but resist to it. On the first case, you destroy your circuit, it is obvious it won't work. On the second case, you just can't predict if your output will allow to put the following transistor to either 0 or 1. This lead to logical issues, such as your processor making a subtraction instead of an addition.
To sum up, we need binary logic, and we make electronics behave as logical systems. We have just chosen some parts of the analog characteristics that allow us to do logic, and avoid to make transistors be between passing and blocking state, as it makes no sense in binary logic.
shareimprove this answer
answered Jun 13 '14 at 10:03
Jacen
46833 silver badges9

--
0
I think the aspect that you trying to understand, and most people don't think about, is what is meant by "analog" or "Analogue"?

It really means "analogous" -> adjective (often analogous to) comparable in certain respects.

This means it is a representative in electrical terms (voltage, current) of a real world "signal". If you are designing a sound system you don't actually work with sound, you use a transducer (a microphone) to convert to an electrical signal, manipulate it in the electrical domain and then convert it back when you need to hear it this is done through another transducer (a speaker).

The distinction in the electrical domain is whether the signal is continuous or discrete. the former, confusingly is simply called "analog" in common usage, and the later is called digital, again in common usage.

There are systems, relatively rare now, that use pneumatics to control pneumatic systems, and in some cases those had discrete control ("digital") and continuous control. They are air controlling air, with no "analogous" step in between. Automobiles use mechanical systems to control mechanical systems (springs, shock absorbers etc.).

In some cases you can directly convert from the real world signal (sound, light etc.) directly in the digital domain (discrete electrical signalling). Simple examples might be a contact closure that is temperature sensitive to control a furnace (power on off), to more complex, like an image sensor that detects individual photons and counts them (at that level you could consider light to be in discrete units already - since the term is so loosely applied - you could consider it to be digital already).

Here is a write up on why the distinction between analog and digital is perhaps not significant is certain areas. It's just simply "what is the easiest representation that allows a problems to be solved"

shareimprove this answer
edited Apr 13 '17 at 12:32

Community

1
answered Jun 13 '14 at 15:57

placeholder

27.7k88 gold badges5252 silver badges98
 

rapbeats

Superstar
Joined
Jun 8, 2012
Messages
9,362
Reputation
1,890
Daps
12,850
Reppin
NULL
Now that we know all the above. lets talk about this music thing analoge vs digital.

https://www.quora.com/Is-there-a-di...-at-0dB-and-then-pulling-the-master-down-12dB

....
.............
But here’s the thing. In the analogue world, we had this thing called HEADROOM. 0VU was NOT the absolute highest level achievable. The console (if it was a good one) could conceivably handle signal of +28dB at the master before it started to sound like crap.

Digital isn’t like this. With digital, you can raise the level up and up and up until you hit 0dBFS (decibels full scale) and then it all goes pear-shaped with a level increase of just 1dB. There is no “soft limiting” like analogue tape would give you.

“But I’m not going to analogue!” I hear you shout. Wrong. You ARE going to analogue when the soundcard sends the signal to your AD converters just prior to sending it to your speakers. And if your digital system hasn’t been calibrated properly, who’s to say at what level (VU, not dBFS) you’re actually hitting your analogue inputs?

So, that’s one side of it. By running your digital mix with a small safety margin built in, you can be sure that you’re not hitting the analogue path too hard.

Then there’s the whole conundrum of bit depth inside your DAW. If you’re mixing in a 16 bit environment (NOBODY should be doing that these days, but you never can tell what stupid things people will do!), then you absolutely have ZERO tolerance for signals above 0dBFS. None. Zip. Nada. You hit 0dBFS and your waveform IS clipped. Pure and simple.

For a really technical read on fixed point vs floating point, check out this thread at Gearslutz: 32bit floating point vs 32bit fixed point

If you’re mixing at 32 bit or higher (this refers to the internal math that your DAW is using, not the file format you choose to render a mix out to), AND you’re mixing in an environment that utilises FLOATING POINT ALGEBRA, then yes, you CAN exceed 0dBFS during the mixing signal path, AS LONG as you drop it back down to something under 0dBFS at the master output (or at the output stage of the last plugin on your DAW master channel).

Now lets move back to computers in general as well as quantum computing. since this below video has been created we have achieved all sorts of things in the quantum computing realm. But its still relevant and there's the first half of this video that explains the basics of computing before you get to quantum computing.

 

Him Duncan

Hugh G Reckshon
Joined
Jun 2, 2012
Messages
1,011
Reputation
286
Daps
1,864
Reppin
Cincinnati, OH
Long read. Lazy answer. There are two diff forms of electricity.

Dc is more digital/binary. It's either there at a constant or it's not.

Ac is more analog it ranges from 0-a high range-a negative equal of the same range.

Think of dc like a regular light switch, it has two positions on/off

Think of ac like a dimmer, it can range anywhere from 0-120
 

theworldismine13

God Emperor of SOHH
Joined
May 4, 2012
Messages
22,755
Reputation
570
Daps
22,700
Reppin
Arrakis
Long read. Lazy answer. There are two diff forms of electricity.

Dc is more digital/binary. It's either there at a constant or it's not.

Ac is more analog it ranges from 0-a high range-a negative equal of the same range.

Think of dc like a regular light switch, it has two positions on/off

Think of ac like a dimmer, it can range anywhere from 0-120
hmm no

digital vs analog is not the same thing as AC vs DC

digital and analog are different forms of signals in an electric circuit with electrical components, in other words you are transmiting information

AC and DC are different ways of transmitting electricity, no information is being transmitted
 
Top