Arduino Fiber Optics | Transmitting Numbers Using Light?

  Рет қаралды 31,538

Carbon Coil

Carbon Coil

4 жыл бұрын

In this video we transmit numbers from one Arduino Uno to another Arduino Uno using light. No wires run between the two micro controllers, just a clear rod for light to pass through.
Code for Transmitter Arduino: pastebin.com/tyM5dYHF
Code for Receiver Arduino: pastebin.com/rkPgrv92
Unfortunately I don’t have a circuit diagram for this design.
Arduino Uno - amzn.to/4dhEyAi
16x2 LCD - amzn.to/4dglYJ0
Photo-resistor - amzn.to/3WjrFQr
5k Potentiometers - amzn.to/49WQsg3
In reference to 4:30 - While electricity does travel slightly slower than the speed of light, practically this doesn't make much of a difference. The main advantages of using fiber optics come from their higher switching frequency making them more suitable for high bandwidth applications.
Icosmophedron helped me code the transmission protocol for this video, you can find his itch.io page here: icosmophedron.itch.io
He creates all sorts of cool games and I suggest you check them out.
Music by The Arcadium: "Cineminate - New Beginning"

Пікірлер: 80
@pkart8451
@pkart8451 3 жыл бұрын
Code?
@CarbonCoil
@CarbonCoil 3 жыл бұрын
For anyone who wants a copy of the code used in this video, there are PasteBin links in the description :)
@suryashanmugam2969
@suryashanmugam2969 Жыл бұрын
​@@CarbonCoilconnection ckt
@nikhilbarapatre2750
@nikhilbarapatre2750 3 жыл бұрын
that's really cool...a great way to understand how fiber optics communication works...keep it up man
@CarbonCoil
@CarbonCoil 3 жыл бұрын
Thanks!
@gajendraray1618
@gajendraray1618 11 ай бұрын
that's is really cool and gives the understanding of how data is transmitted thank you for sharing this wonderful videos...
@yelectric1893
@yelectric1893 2 жыл бұрын
I would suggest using a phototransistor as they have faster response rates than photoresistors. However, this is a great demonstrator and it works outstandingly. Great job!
@CarbonCoil
@CarbonCoil 2 жыл бұрын
Version 2.0 might be coming soon and thats one of the upgrades I would make for faster transfer time, thanks!
@harrypineda895
@harrypineda895 4 жыл бұрын
Cool video, I learned a lot of interesting things
@NoOne-ei5hs
@NoOne-ei5hs Жыл бұрын
Very nice video!
@krishnajasuresh3209
@krishnajasuresh3209 10 ай бұрын
I was not clear on how bits can be transmitted as lights.Thanks for making thus video.
@CarbonCoil
@CarbonCoil 10 ай бұрын
You’re welcome! Thanks for watching :)
@pkart8451
@pkart8451 3 жыл бұрын
After 2 day search on vedio I found such a great vedio
@CarbonCoil
@CarbonCoil 3 жыл бұрын
Glad you liked it!
@Kai-dk7cx
@Kai-dk7cx 4 жыл бұрын
Very cool!
@cristianmejia4526
@cristianmejia4526 2 жыл бұрын
It has the potential to resolve the I2C distance problem and touch keyboard interference problem. In fact, I think that this is the solution. I would like to test it someday.
@icosmohedron
@icosmohedron 4 жыл бұрын
Now I need to make one that can transmit words. Most convoluted way to talk to people ever
@CarbonCoil
@CarbonCoil 4 жыл бұрын
Might be an idea for a future video!
@FieryCoal
@FieryCoal 4 жыл бұрын
Maybe binary? It’ll be a pretty long time before you get the message though
@surenbono6063
@surenbono6063 9 ай бұрын
.. impressive work ... someday we will have a Optical Serial Bus instead of USB flash drive... with 2 copper+ 2 optics wire and a photo detector in each OSB to manage & store data like a typical flash drive... reduces systems copper resistance heat and speed...mybe motherboard can be designed to handle photons as well to transfer data between drive to RAM..
@yametekudasaisensei539
@yametekudasaisensei539 Жыл бұрын
i love ur project, did u test increase the frecuency of data transmision?
@CarbonCoil
@CarbonCoil Жыл бұрын
I have not tested this yet. The photo-resistor sensor I used is pretty slow to react to changes in light, therefore I would choose a different and more reactive sensor before increasing the frequency.
@LyLeap
@LyLeap 3 жыл бұрын
By the way , why dont u use a laser diode module like Ky-008, and can u make the code faster?, I wanted to make a laser tag game but just couldn't the life of me thing of how to send data via light. Thank anyway u thought me alot
@CarbonCoil
@CarbonCoil 3 жыл бұрын
I could have used a laser diode but I didn't since this was just a test setup. The main bottleneck was actually the sensor. The Photoresistor sensor is quite slow and other sensors would ideally work better.
@LyLeap
@LyLeap 3 жыл бұрын
@@CarbonCoil ah i understand now, well thank for the reply
@heetsheth2063
@heetsheth2063 Жыл бұрын
Sir, I have mail you can you please provide the code?
@priyaop5040
@priyaop5040 2 жыл бұрын
How fast can it go? And the ways to make the process more faster?
@CarbonCoil
@CarbonCoil 2 жыл бұрын
It's very slow due to the slow response of the photoresistor and my poor programming. This transmission could be sped up by using a photodiode instead of a photoresistor or some other faster-acting sensor, and then decreasing delays in the code.
@I_ssues
@I_ssues 3 жыл бұрын
Can I use such a setup to prove that we can transmit the laser in fiberoptics freely in space?
@CarbonCoil
@CarbonCoil 3 жыл бұрын
You should be able to do this if you use a laser, yes.
@chrispusgithaiga383
@chrispusgithaiga383 3 жыл бұрын
@@CarbonCoil thanks. sending you an email rightaway so that you can send me the code used.
@FenrirTheMenace
@FenrirTheMenace Жыл бұрын
It's worth pointing out the light does not travel faster than electricity, but rather electrical signals degrade faster over lengths of wire, meaning repeaters will be necessary sooner, adding latency and distortion to the signal.
@CarbonCoil
@CarbonCoil Жыл бұрын
This is somewhat true. While electricity does travel slightly slower than the speed of light, practically this doesn't make much of a difference. The main advantages of using fiber optics come from their higher switching frequency making them more suitable for high bandwidth applications.
@FenrirTheMenace
@FenrirTheMenace Жыл бұрын
@@CarbonCoil I don't follow. How can light have a higher switching frequency?
@CarbonCoil
@CarbonCoil Жыл бұрын
@@FenrirTheMenace Essentially when you run a signal through a copper wire or a fiber optic cable, as you increase the transmission frequency, the signal degrades more in the copper wire than it does in the fiber optic cable (because of interference, reflections, etc.) The actual physics explanation behind this is a pretty deep topic, but the important takeaway is that fiber optic cables can carry much higher frequency ranges without distortion, and a higher frequency range means higher bandwidth (or the amount of data that can be transmitted over a certain time period) - Paraphrased from Prof. Robert Malaney, University of New South Wales
@ZEZART
@ZEZART 2 жыл бұрын
Code?
@PRANAVTECHGURU
@PRANAVTECHGURU 11 ай бұрын
@CarbonCoil connection ckt please
@satish5637
@satish5637 Жыл бұрын
Great sir I want circuit and component details Please sir
@DBXLabs
@DBXLabs 4 жыл бұрын
Sounds like you need some laser diodes
@webdevil6354
@webdevil6354 Жыл бұрын
How does it detect multiple zeros? Like 0000? What does it sensing ?
@CarbonCoil
@CarbonCoil Жыл бұрын
Multiple zeros are represented by multiple time slots where there is no light. The transmission sequence begins with a starting signal that syncs both Arduino's and tells the receiver that data is going to be sent. Then the Transmitter sends data (the LED being on or off) in each time slot during the transmission representing a 1 or 0. To represent multiple zeros, the transmission Arduino would just send the starting sequence and then turn the LED off for a length of time in accordance with how many zeros there are.
@webdevil6354
@webdevil6354 Жыл бұрын
@@CarbonCoil thank you very much for a clear answer
@riko6962
@riko6962 3 жыл бұрын
can you transfer 1 gb video or other data and share the result
@CarbonCoil
@CarbonCoil 3 жыл бұрын
Probably not, the protocol is very slow and was written to only transfer a single number at a time. However, I might revisit this project at some point and make some improvements.
@4azorblade
@4azorblade Жыл бұрын
Can we use optical fibre instead of glass rod
@CarbonCoil
@CarbonCoil Жыл бұрын
Yes!
@4azorblade
@4azorblade Жыл бұрын
@@CarbonCoil thanks man
@thetrailoutthere
@thetrailoutthere 2 жыл бұрын
That song @3:47 where he's making more circuits... like a group of people actually got together and said "let's record this!"
@PlcProgram-all
@PlcProgram-all 4 жыл бұрын
Can you send me its circuit diagram and its program. Please
@CarbonCoil
@CarbonCoil 3 жыл бұрын
For anyone who wants the code used in this video, please email carboncoilbusiness@gmail.com I will send an email back to you that includes the code used in this video.
@francescocaramanna6096
@francescocaramanna6096 3 жыл бұрын
@@CarbonCoil i send you a email to...i very need this program /circuit !
@suhailkhan8690
@suhailkhan8690 2 жыл бұрын
Hey I too need circuit and code used
@sansnicyt14
@sansnicyt14 2 жыл бұрын
bro please show the code
@caz6925
@caz6925 2 жыл бұрын
can we use a single arduino???
@CarbonCoil
@CarbonCoil 2 жыл бұрын
Technically you could do this, but then there wouldn't really be a point in transmitting the data at all. One Arduino is the transmitter and one is the receiver.
@ltgamer9068
@ltgamer9068 Жыл бұрын
@carbon coil This is so interesting I have mailed you , can you send the code and design , for studying.
@pkart8451
@pkart8451 3 жыл бұрын
Can I send alphabet by using this Method?
@CarbonCoil
@CarbonCoil 3 жыл бұрын
Probably yes, although I haven't tried it or written code for it.
@HadjerElHamlili
@HadjerElHamlili 2 ай бұрын
i have question sir : how to connect SFP module with arduino?
@CarbonCoil
@CarbonCoil 2 ай бұрын
Hi, I'm not sure what you mean by SFP module?
@HadjerElHamlili
@HadjerElHamlili 2 ай бұрын
@@CarbonCoil i don't know how to explain it to you!!!
@CarbonCoil
@CarbonCoil 2 ай бұрын
@@HadjerElHamlili Could you reference a timestamp in the video?
@troyhayder6986
@troyhayder6986 Жыл бұрын
You could easily transmit data with binary...on or off...detecting the information might be a problem...because you have to detect at the speed of light...unless you use x amount of intervals...unless you use phosphorus...like in a crt display...that can detect light...I'll leave it to your imagination...
@loco6378
@loco6378 2 жыл бұрын
hello dear can you please make an elaborative video on the same with all material links and code in the description it means a lot to me thanks
@user-gu8ob9er9g
@user-gu8ob9er9g Жыл бұрын
Isn't the speed of light and electricity the same?!?
@CarbonCoil
@CarbonCoil Жыл бұрын
Electricity does travel slightly slower than the speed of light, but practically speaking this doesn't make much of a difference. The main advantages of using fiber optics come from their higher switching frequency making them more suitable for high bandwidth applications.
@anuratan5646
@anuratan5646 Жыл бұрын
Unable to find code
@CarbonCoil
@CarbonCoil Жыл бұрын
I have linked a PasteBin in the description of the video with the code
@kavindawanshanath3958
@kavindawanshanath3958 11 ай бұрын
diagrem ?
@CarbonCoil
@CarbonCoil 11 ай бұрын
LCD wiring: www.arduino.cc/en/Tutorial/LibraryExamples/HelloWorld
@Axellse
@Axellse 10 ай бұрын
Another way of transferring the data would be to have a laser instead of the rod
@CarbonCoil
@CarbonCoil 10 ай бұрын
Yes, another great idea for a bench-top test setup!
@eZy4k.
@eZy4k. 7 ай бұрын
Using lasers may be more efficient
@indrarider5506
@indrarider5506 2 жыл бұрын
I sent a mail..
@davidsvarrer8942
@davidsvarrer8942 2 жыл бұрын
Stoooop the music. Not necessary. Remember that. No music. Nooooo music. It is disturbing. ANd... Your show is great!
@ashikurrahman1000
@ashikurrahman1000 Жыл бұрын
Just silent your phone
@kristinbezick3754
@kristinbezick3754 4 жыл бұрын
I don’t understand please explain in kindergarten terms
@CarbonCoil
@CarbonCoil 4 жыл бұрын
The number on the left screen changes as the knob is turned. When the button is clicked, the small computer turns the number into binary, and sends it over the acrylic tube as light. (Think of this transmission like using morse code, sending messages from place to place by flashing a light on/off in different patterns). The Arduino on the other side turns this binary (The light pulses) back into a number and displays it on the screen.
@danieleduardogalvez44
@danieleduardogalvez44 2 жыл бұрын
I sent a mail..
Trapping a Beam of Light In a Loop Of Fiber Optic Cable
10:31
The Action Lab
Рет қаралды 480 М.
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 46 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 132 МЛН
$3 laser transmits audio over 100m (arduino)
21:17
iforce2d
Рет қаралды 217 М.
Trapping Particles In a Beam of Light-The Optical Tweezers Experiment
7:21
Optical Wireless Transmission - LiFi in a smart infrastructure
4:11
Fraunhofer HHI
Рет қаралды 22 М.
Basic Fiber Optic Signaling
10:36
subcooledheatpump
Рет қаралды 8 М.
Turning Sound Into a Laser
3:08
CodeParade
Рет қаралды 750 М.
Fiberoptic joystick with quadrature encoders and arduino
9:11
Applied Science
Рет қаралды 52 М.
12 Brilliant Cyberdecks to try using Raspberry Pi!
8:53
ToP Projects Compilation
Рет қаралды 566 М.
Tutorial: Data Transmission using light | Li-Fi
28:01
Electronics and Programming
Рет қаралды 52 М.
How Does LIGHT Carry Data? - Fiber Optics Explained
5:42
Techquickie
Рет қаралды 1,3 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
Самые крутые школьные гаджеты
0:49