4

I know exactly how DAC and ADC works; that's not my concern.

What I am asking is how the constituent state of matter (and the "states" represented by them) in a circuit can be transferred to a set of photons (with no mass) and hold varying "states" within the analog light or Radio Waves?

I guess a simple question would be, how does electronic power get turned in to encoded data within radio waves, and how does the encoded data get decoded back in to electrical power/matter from an energy level?

Connor Wolf
  • 31,938
  • 6
  • 77
  • 137
Vasiliy
  • 7,323
  • 2
  • 21
  • 38

2 Answers2

10

Encoding:

Information can't be "transferred to a set of photons (with no mass) and hold varying "states" within the analog light". The photons themselves do not store/carry the information inside them, but the variations in the number of photons (flux, intensity), or the variation in the frequency of photons can carry information.

"Constituent state of matter (and the "states" represented by them) in a circuit" are (usually) just varying voltage levels. These voltage levels can be converted into varying light intensity or varying frequency by various devices (the most widespread are LEDs and lasers). Thus, the (digital) information present in your circuit can be converted into light using relatively simple schemes - just turn the light ON and OFF in some predetermined manner (e.g. Morse code as suggested by @Passerby).

Radio waves, on the other hand, is all about sinusoidal signals. Yes, from theoretical point of view one can think of light and radio waves as being the same, but this approach does not work in real world. You can not transfer "digital radio wave pulse" wireless - you must send sinusoidal signals. If you are bound to use sinusoidal signals, then there are three parameters that you can change in order to encode your digital information: amplitude, frequency and phase. This encoding is called modulation, and it is very large topic (with many mathematical aspects).

Note that even though you can send digital information over light without employing modulation schemes, there are cases where the light's intensity or frequency may be modulated with digital information. The reasons for this complication may be: higher signal's integrity, higher SNR, higher bit rate and many more (the table applies to communication over fiber optic only):

enter image description here

However one of the most important advantages of modulation (maybe even the most important one) is that modulation allows for sharing a single physical media (both wired and wireless) between numerous logical channels. For example: phone, internet and TV can be "delivered" in parallel (simultaneously) over a single optic fiber cable when appropriate modulation scheme is used.

Decoding:

There are electronic devices which convert varying light's intensity or frequency back to varying voltage levels (the most common are photodiodes and photovoltaic cells). Once your information is represented by voltage levels, you're back in the usual electronics design. Various demodulation schemes may need to be implemented, depending on the modulation schemes initially used.

For radio waves the same is true, but the received signal is a modulated sinusoid, therefore demodulation schemes are always used. The device which receives radio waves and converts them into voltage levels is called "antenna".

Vasiliy
  • 7,323
  • 2
  • 21
  • 38
  • 3
    Excellent breakdown. Only thing I would add is that the simplest form of encoding data into light, is by turning it on and off in a pattern. A led blinking in morse code is an example of this. – Passerby Oct 04 '13 at 06:16
  • @Passerby which is OOK, which in turn is a form of AM, and is therefore referenced above. – markt Oct 04 '13 at 09:49
  • 3
    @markt in so many words. Sometimes its better to spell it out plainly, for educational purposes. – Passerby Oct 04 '13 at 10:01
  • @Passerby, I edited the answer. I indeed tried to explain in words a concept which is easier to demonstrate as an analogy to Morse code. Thx – Vasiliy Oct 06 '13 at 18:16
  • The question is really too broad for this site. A complete answer should also talk about coherent modulation on the optical side and DPSK/QPSK and a bunch of other modulation schemes on the radio side. – The Photon Oct 07 '13 at 00:26
  • @ThePhoton, the question is about conversion of "electricity" into "light" or "radio waves". I added modulation overview for completeness. If the question was about modulation schemes only, I wouldn't answer it because it is not my area of expertise at all. – Vasiliy Oct 07 '13 at 08:04
  • @Vasiliy, the question asks about "encoding/decoding", not "converting". And it's tagged (by OP (aka you) ) with "encoding", "decoding", and "modulation" tags. If the question isn't about modulation, I'm going to have to vote it "not clear what you're asking". – The Photon Oct 07 '13 at 15:50
  • @ThePhoton, you are welcome. The question is not mine, therefore I won't feel bad if you close it. I thought it may be of interest to someone, but the amount of downvotes and negative comments suggests that I was wrong. – Vasiliy Oct 07 '13 at 16:30
  • Very good explanation! – Boy Feb 09 '18 at 04:55
-1

Imagine 1 and 0 simple bit patterns 1 means high voltage and 0 means low voltage. now 7 of these 1 and 0 form ASCII codes 0100-0001 (41 in hexadecimal) equivalent to A. Now consider this every time you press a key on keyboard this bit pattern gets transmitted to processor and processor then finds character using look up table and display it on the screen. In TV remotes similar type of conversion takes place using infrared sensor. A transmitter in the remote and receiver in the TV. Suppose each button of the remote is hard coded into a bit pattern and the bit pattern and corresponding function is saved in TV. An infrared red detector at TV detects on and off condition of the remote, similar to a light switch getting on and off.
Now coming to radio waves, a song or your voice from mic converts into electrical signal. The mic uses external supply to do that - which converts sound vibration into electrical signals. These electrical signals are analog in nature. Now suppose we have converted them into digital signal using ADC (sampling and quantization) and transmitted them using radio wave. Here radio wave is nothing but a carrier like fedex or any courier service. At the receiver side bit patterns are extracted from radio waves. So we have now your song in the form of bit patterns 10111...... very long. DAC comes into picture it converts this digital signal into analog signal that is electric current. At this condition, if you hook a large speaker to output socket of your computer where you have these bit pattern stored, the current will directly go to the diaphragm of the speaker and vibrate it. Air plus vibration equals to sound which was generated in your vocal cords and converted in mic. So the process is nothing but conversion of one form of energy to another form just like water pushing turbines and steam generating electricity. The conversion done by transducers and there are different form of transducer like accelerometer in your smart phone which converts motion into electric current. Camera in smartphone which converts light into electric current. Printer, on the other hand, converts electric current into written material.

SexyBeast
  • 127
  • 7
  • Punctuation, spelling and grammar are all lacking. Please add paragraphs and make the answer coherent. As it stands the answer is hard to follow and doesn't add anything to this 3 year old question which already has a very good accepted answer. – Tom Carpenter Oct 22 '16 at 20:32