this post was submitted on 04 Dec 2024
28 points (100.0% liked)

Explain Like I'm Five

14406 readers
1 users here now

Simplifying Complexity, One Answer at a Time!

Rules

  1. Be respectful and inclusive.
  2. No harassment, hate speech, or trolling.
  3. Engage in constructive discussions.
  4. Share relevant content.
  5. Follow guidelines and moderators' instructions.
  6. Use appropriate language and tone.
  7. Report violations.
  8. Foster a continuous learning environment.

founded 2 years ago
MODERATORS
 

Remember reading an article a while back where they said they did it. Can't find it but never really explained how it is even possible or how or why someone said look light lets put some data in itl

all 19 comments
sorted by: hot top controversial new old
[–] lvxferre@mander.xyz 32 points 2 weeks ago (1 children)

Okay, here's a silly explanation.

Imagine two people want to communicate. They shall be named Alice and Bob. It's night, and they're too far away to hear each other; but each has an electric torch, and they can see the light coming off the other person's torch.

Those torches are fancy. They have two settings: "strong" (big arse blinding light) and "weak" (wee light, but still visible). Let's call a strong flash "1" and a weak flash "0" for short.

They also have a code, that they use to interpret the flashes of light that they send each other. Here it is; check the "binary" column. For example, if Alice sent Bob a weak flash, then a strong flash, then weak, strong, weak, weak, strong, strong, then Bob is supposed to interpret this as an "S".

This is already enough to communicate. Like this:

  • Alice: 0000 0010 0100 1000 0110 1001 0010 0000 0100 0010 0110 1111 0110 0010 0000 0011
  • Bob: 0000 0010 0101 0011 0111 0101 0111 0000 0011 1111 0000 0011

Remember, each "0" is a weak flash and each "1" is a strong flash. When we decode it with the table from the link, here's what you get:

  • Alice: Hi Bob
  • Bob: Sup?

Now. Messing around with the settings of a torchlight is slow, painful, and annoying. So is to watch closely for light flashes, write them down, and decode them with a table. So... let's use machines to do so?

  • Encoder: a fancy machine with a built-in torch. You type "S" down that machine, and it outputs weak, strong, weak, strong, weak, weak, strong, strong flashes in this order.
  • Decoder: another fancy machine. It has an optical sensor; if it gets the exact sequence of flashes from above, it'll output "S".

Okay, now let's replace the torch. We want something that emits light that you can see from as far as reasonably possible; like, from Mars if you want. We could instead use light that has been amplified by radiation, it's really strong and directed. The common name for that is "laser".

[–] BearOfaTime@lemm.ee 10 points 2 weeks ago (1 children)

Hell, just use Morse as an example, instead of binary. Even simpler.

[–] SpikesOtherDog@ani.social 4 points 2 weeks ago

Alice and Bob have taught many.

[–] Death_Equity@lemmy.world 13 points 2 weeks ago (1 children)

The simple way is like Morse code, variable gaps and lengths of emissions to convey information.

The more complex version is that plus variable intensity and variable wavelengths for a more complex "language".

[–] Patnou@lemmy.world 2 points 2 weeks ago (2 children)

Ok I understood the morse code part but you lost me after that.

[–] donuts@lemmy.world 8 points 2 weeks ago (1 children)

If you flip a sine wave upside down (shift it 180 degrees), it can mean "1." If the wave stays as it is, it can mean "0." This flipping happens really fast, creating a pattern of 1s and 0s. That's your data.

A special receiver then measures the wave's shifts and turns them back into the original 1s and 0s.

Instead of just flipping the wave or not, you can also shift it by smaller angles:

  • No shift (0°) = 00
  • Small shift (90°) = 01
  • Bigger shift (180°) = 10
  • Biggest shift (270°) = 11

This way, each wave can carry two bits of data instead of one, making it faster.

[–] Patnou@lemmy.world 2 points 2 weeks ago (2 children)

I may be going out on a limb but something tells me we are far off from like transmitting a whole book and storing it in light or beam?

[–] Rhynoplaz@lemmy.world 11 points 2 weeks ago (1 children)

There's no storage in light.

Think about when you talk. The sound comes out, shoots through the air, goes in someone's ear, and then they interpret and remember what you said.

The light is your voice. It is transmitting data, but if there's nobody around to hear it, the data is lost.

The light has to hit a receiver, which translates it into usable data and then saves it to a storage device.

[–] donuts@lemmy.world 3 points 2 weeks ago (1 children)

mm I like this, you made it sound so simple!

[–] Rhynoplaz@lemmy.world 2 points 2 weeks ago

Thanks! I'm a simple person who is interested in complex things, so I think I've gotten pretty good at these kinds of analogies.

[–] WhatAmLemmy@lemmy.world 6 points 2 weeks ago* (last edited 2 weeks ago)

The entire internet backbone is fiber optic cables, so most data is already transferred using "beams" of light.

This is what computers do on either end of the fiber optic cables to transmit the data; except billions of times faster, using multiple "colors" (wavelengths) and similar tricks with light to stream as many 1's & 0's as fast as possible.

[–] maniel@sopuli.xyz 11 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Using light to communicate has a pretty long history, you just blink lights in a pattern, same as electric signals just without a wire, I mean you can use a "wire" to make light go further (optical fiber), you send zeros and ones by turning the laser on and off, that's all, optical audio connections came to the market in 1983, the undersea internet cable are optical etc, you can blink a flashlight in Morse code and it's a light based communication, swap flashlight with a laser and you have "an information in a laser beam", that's all, you want to send more info faster just blink faster

[–] satanmat@lemmy.world 6 points 2 weeks ago

That’s how fiber optic cables work now.

You can use a laser for line of sight through the air, so you don’t have to lay fiber. So ship to shore

How it is transmitted, others in this thread have said, light on is a 1 off is a zero, now just transmitting information in binary. You can go as fast as you can reliably turn it off and on, and understand the info at the other end.

The real trick is using multiple wavelengths at the same time. So your data goes at 100nm mine at 110nm and yes that is a gross oversimplification.

[–] CheddahBiscuit@lemmy.world 5 points 2 weeks ago

As the other comments stated, it can be as simple as turning the light on and off and we already do this with fiber optic network connections. The light particles themselves aren't carrying the data, just the pattern of on and off.

It is also possible to send multiple streams of light using color filters. It's called Wavelength Division Multiplexing.

[–] Bronzebeard@lemm.ee 5 points 2 weeks ago (1 children)

Digital data is just 1s and 0s.

On and off. If you turn that laser on and off you're transmitting binary information. The receiver can interpret that. We already do that with fiber optic cable, basically. This is just removing the wire.

[–] IphtashuFitz@lemmy.world 3 points 2 weeks ago

In other words, it’s effectively Morse Code via light instead of radio or telegraph.

[–] lurch@sh.itjust.works 0 points 2 weeks ago

you can pulse it or encode it changing color. this is nothing new.