Arduino Fiber Optics | Transmitting Numbers Using Light?
HTML-код
- Опубликовано: 8 фев 2025
- 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/t...
Code for Receiver Arduino: pastebin.com/r...
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....
He creates all sorts of cool games and I suggest you check them out.
Music by The Arcadium: "Cineminate - New Beginning"
Code?
For anyone who wants a copy of the code used in this video, there are PasteBin links in the description :)
@@CarbonCoilconnection ckt
Binary code
that's really cool...a great way to understand how fiber optics communication works...keep it up man
Thanks!
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!
Version 2.0 might be coming soon and thats one of the upgrades I would make for faster transfer time, thanks!
that's is really cool and gives the understanding of how data is transmitted thank you for sharing this wonderful videos...
I was not clear on how bits can be transmitted as lights.Thanks for making thus video.
You’re welcome! Thanks for watching :)
After 2 day search on vedio I found such a great vedio
Glad you liked it!
Now I need to make one that can transmit words. Most convoluted way to talk to people ever
Might be an idea for a future video!
Maybe binary? It’ll be a pretty long time before you get the message though
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.
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.
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.
@@CarbonCoil I don't follow. How can light have a higher switching frequency?
@@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
This is work & helping me, thank you so muchhh ☆
I'm glad to hear it!
You are a hero
im just a 13 year old kid and it took me 1 day to figure out the circuit diagram
.. 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..
Cool video, I learned a lot of interesting things
Very nice video!
That song @3:47 where he's making more circuits... like a group of people actually got together and said "let's record this!"
Sir, I have mail you can you please provide the code?
ما هي الاجهزة المستخدمة في هذا المشروع
Very cool!
Circuit diagram please
Sounds like you need some laser diodes
Componnet ?
i have question sir : how to connect SFP module with arduino?
Hi, I'm not sure what you mean by SFP module?
@@CarbonCoil i don't know how to explain it to you!!!
@@HadjerElHamlili Could you reference a timestamp in the video?
Please send me your video circuit diagram.
i love ur project, did u test increase the frecuency of data transmision?
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.
How does it detect multiple zeros? Like 0000? What does it sensing ?
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.
@@CarbonCoil thank you very much for a clear answer
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...
Can we use optical fibre instead of glass rod
Yes!
@@CarbonCoil thanks man
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
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.
@@CarbonCoil ah i understand now, well thank for the reply
How fast can it go?
And the ways to make the process more faster?
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.
Can you send me its circuit diagram and its program.
Please
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.
@@CarbonCoil i send you a email to...i very need this program /circuit !
Hey I too need circuit and code used
Can I use such a setup to prove that we can transmit the laser in fiberoptics freely in space?
You should be able to do this if you use a laser, yes.
@@CarbonCoil thanks. sending you an email rightaway so that you can send me the code used.
what kind of hero are you?
Thank you :)
Isn't the speed of light and electricity the same?!?
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.
Great sir
I want circuit and component details
Please sir
can we use a single arduino???
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.
Another way of transferring the data would be to have a laser instead of the rod
Yes, another great idea for a bench-top test setup!
@CarbonCoil connection ckt please
can you transfer 1 gb video or other data and share the result
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.
Can I send alphabet by using this Method?
Probably yes, although I haven't tried it or written code for it.
@carbon coil
This is so interesting
I have mailed you , can you send the code and design , for studying.
Using lasers may be more efficient
diagrem ?
LCD wiring: www.arduino.cc/en/Tutorial/LibraryExamples/HelloWorld
Unable to find code
I have linked a PasteBin in the description of the video with the code
bro please show the code
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
Stoooop the music. Not necessary. Remember that. No music. Nooooo music. It is disturbing. ANd... Your show is great!
Just silent your phone
I sent a mail..
I don’t understand please explain in kindergarten terms
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.
Code?
I sent a mail..