You are currently viewing Unlock Advanced Arduino Projects: Arduino Optical Fiber Data Transfer | PART-6

Unlock Advanced Arduino Projects: Arduino Optical Fiber Data Transfer | PART-6

Arduino Optical Fiber Data Transmission

In my setup for Arduino optical fiber data transmission, I’ve chosen to employ the Amplitude Shift Keying (ASK) scheme. This communication method allows two Arduinos to exchange information through an optical link. To make this work, I’m relying on the Radiohead Amplitude Shift Keying Library. This library serves as a handy tool, simplifying the implementation of ASK in my project, making the communication process between the Arduinos efficient and effective.

Arduino Optical Fiber Communication Guide:

Before diving into this, check our previous articles on Arduino Optical Fiber Data Transmission for foundational insights and a clearer understanding

Transmission Setup:

Build the transmitter and receiver circuits according to their diagrams and connect them to their respective devices. The transmitter circuit includes the following components:

– Microcontroller (Arduino)
– HFBR-1414 Optical Fiber Cable Transmitter
– SN75452B Switching Driver
– Resistors with values of 10K (1) and 56 ohms (1)
– Capacitors with values of 0.1uF (3) and 10uF (1)

Here are the circuit connections on the breadboard.

Here is the full setup with Arduino Transmitter and Receiver Circuits. Connect the fiber cable and power up the boards.

Arduino Optical Fiber

Arduino Code

Here is the code for the Arduino transmitter and receiver using ASK modulation.

Arduino Transmitter with ASK

Arduino Receiver with ASK

Arduino Optical Fiber : Bidirectional Communication

For bidirectional Arduino Optical Fiber communication, combining the transmitter and receiver into a single circuit creates a transceiver, streamlining data transfer. This transceiver excels in serial communication over optical fiber, supporting encoding schemes like Manchester, 4B5B, or 8B10B for enhanced reliability. The versatility extends further as it seamlessly interfaces with multiple protocols such as I2C, UART, RS232, and RS485. This adaptability makes the circuit an ideal choice for various applications, from simple point-to-point connections to complex networks. Its compatibility and flexibility empower Arduino enthusiasts to explore a spectrum of communication possibilities, making it an invaluable asset for advanced projects and applications.

Here is an Arduino Optical Fiber bidirectional communication example:

This demo shows how Arduino can send data through light cables. Two Arduinos talk to each other using UART, controlling a moving part and light intensity. I tested it and it worked well over a distance of 342 meters. I made some adjustments to the sending part, and everything still worked fine. You can get all the things you need, like the code and the models for sending and receiving, from this post. If you want to understand it better, there’s a video you can watch too. It’s like a simple chat between Arduinos using light!

Arduino Bidirectional Communication - Code

I hope you now have a good understanding of the fundamentals of data transmission using optical fiber with Arduino. If you have any suggestions or ideas for improvement, kindly share them in the comments section. Stay connected for upcoming unique Arduino projects!

Optical Fiber Link - Proteus Library

Represents a Fiber Optical Transmitter and Receiver with an optical fiber link. It is designed solely for the demonstration of TTL-compatible devices

This Post Has 8 Comments

  1. nbb

    Do you have the code for the Bidirectional Communication?

    1. Usman

      Yes, I have the code and I will share it in this post.

  2. ZAENUDIN

    SYUKRON YA BROTHER USMAN, ALLAHU YARHAM, I’AM ZAENUDIN FROM INDONESIA

    1. Usman

      Marhaba, Zaenudin! It’s nice to meet you. How can I assist you?

  3. Tim

    Hi! What are the green boards responsible for using which you carry out bidirectional fiber communication between the Arduino?

    1. Usman

      I’ve merged the transmitter and receiver into one circuit, producing a transceiver board that enables bidirectional communication.

  4. Muthulakshmi

    Sir,What is the detailed circuit diagram for the bidirectional communication ?

  5. moghul vasan

    Can you share Arduino and hfbr rx side connection like hfbr tx connection

Leave a Reply