Simple Optical Communication using Arduino (UART)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2022
  • To make the photodiode work, the pullup resistor in the Arduino must be disabled. This is done in the code shown in the video.

ความคิดเห็น • 39

  • @chintavishnuvardhan8379
    @chintavishnuvardhan8379 2 หลายเดือนก่อน +1

    Your'e a life Saver 🙌🏻

  • @osamamohamedmohamedshabana2002
    @osamamohamedmohamedshabana2002 9 วันที่ผ่านมา

    What can we add or replace in the electrical circuit so that the distance between the LED and the photodiode is as high as 1 meter?

  • @user-qt3bo2lw2m
    @user-qt3bo2lw2m 8 หลายเดือนก่อน

    thank you for this great video. Can explain how did you synchronious the two arduino at the transmeter to the receveir?

    • @BV-labs
      @BV-labs  6 หลายเดือนก่อน +1

      The Arduino’s do not need any synchronization. The light beam works exactly like an electric wire. It transmits a true/false signal. The uart protocol takes care of the signal, exactly like it does on a wired connection.

    • @chintavishnuvardhan8379
      @chintavishnuvardhan8379 2 หลายเดือนก่อน

      @@BV-labs Brother can get the code details!

    • @BV-labs
      @BV-labs  2 หลายเดือนก่อน

      @@chintavishnuvardhan8379 hi, all the necessary code is visible in the video

    • @chintavishnuvardhan8379
      @chintavishnuvardhan8379 หลายเดือนก่อน

      ​@@BV-labsHey why did you use pin 13 there is no connection regarding that pin in the code " line 6 "

  • @rkj.791
    @rkj.791 16 วันที่ผ่านมา +2

    How to open both the COM ports at once?
    I'm unable to open the serial monitor of both COM ports at once

    • @BV-labs
      @BV-labs  15 วันที่ผ่านมา +1

      This is straight forward, but you need to open Arduino Ide Two times.
      You can also open a different serial terminal program. Like this which is browser based: www.serialterminal.com/

  • @Ycfychhvbnn
    @Ycfychhvbnn 5 วันที่ผ่านมา

    Where to send and receive messages

  • @nedaa8829
    @nedaa8829 5 หลายเดือนก่อน

    Hi, thanks for the videom I tried making this with arduino uno and photoresisters but it's not transferring any messeges ! what do you think could be the problem?

    • @BV-labs
      @BV-labs  5 หลายเดือนก่อน

      It might be that the photoresistors are too slow. Can you try photodiodes?
      Can you set the Arduino pins to normal digital input and digital output and see if the signal is received correctly?

    • @nedaa8829
      @nedaa8829 5 หลายเดือนก่อน

      Can I please get an email adress so I can send you and ask you about the issues I'm facing, if you don't mind? I am an Engineering Physics student in my last year in Turkey, and I'm doing this project as a part of my senior project@@BV-labs

    • @BV-labs
      @BV-labs  5 หลายเดือนก่อน

      @@nedaa8829I can try to help here.

    • @nedaa8829
      @nedaa8829 5 หลายเดือนก่อน

      @@BV-labs .

    • @dreamhigh2434
      @dreamhigh2434 หลายเดือนก่อน

      ​@@nedaa8829same bro, I am here with the same project, 3rd yr btech in electronic and communication, can u help me I tried with phototransistors, it doesn't work

  • @sanjayrajn197
    @sanjayrajn197 12 วันที่ผ่านมา

    Bro please can you provide code.

  • @VarunPrasaathKS
    @VarunPrasaathKS 13 วันที่ผ่านมา

    Can LDR be used in place of photo diode? Kindly reply as early as possible

    • @BV-labs
      @BV-labs  13 วันที่ผ่านมา

      I think that question is asked earlier. Check the comments. The short answer is: I can’t guarantee it, and it will not be able to handle as high baud rates.

  • @vanmunch36
    @vanmunch36 ปีที่แล้ว

    Thank you, this is really great. Do you know what photodiode and LED part number you're using? Hope you have a good day.

    • @BV-labs
      @BV-labs  ปีที่แล้ว

      Thanks! I can check tomorrow. I think the most important parameter is that the two diodes are made for the same light wavelength. Theoretically it should be possible to use the same device in both ends, but i did not try that.
      What are you planning to use it for?

    • @vanmunch36
      @vanmunch36 ปีที่แล้ว +1

      @@BV-labs I'm hoping to use it for underwater communication.

    • @vanmunch36
      @vanmunch36 ปีที่แล้ว

      Thanks for checking!

    • @BV-labs
      @BV-labs  ปีที่แล้ว

      @@vanmunch36 Interesting!

    • @BV-labs
      @BV-labs  ปีที่แล้ว

      The photodiode i used was "ams OSRAM, SFH 229 Full Spectrum Si Photodiode". I don't have any data for the LED.

  • @lakshmilohithchowdary
    @lakshmilohithchowdary 6 หลายเดือนก่อน

    can you please tell me how to install step by step

    • @BV-labs
      @BV-labs  6 หลายเดือนก่อน

      Can you be more specific? Are you trying to install the software or hook up the circuit?

  • @x-6790
    @x-6790 ปีที่แล้ว

    Hey can u please send me code I want it for my project

    • @BV-labs
      @BV-labs  ปีที่แล้ว

      You can see the complete code at 0:40 in the video

    • @x-6790
      @x-6790 ปีที่แล้ว

      @@BV-labs thx and can I use ldr sensor and laser module as tx and rx

    • @BV-labs
      @BV-labs  ปีที่แล้ว

      yes, it should be possible, but it might not be able to handle a high baud rate. A photodiode is probably faster on the receiver side. Also, make sure the laser does not draw more current than the Arduino can handle.

  • @coolsk9
    @coolsk9 ปีที่แล้ว

    plse share the code bro

    • @BV-labs
      @BV-labs  ปีที่แล้ว +1

      You can see the complete code at 0:40 in the video

    • @chintavishnuvardhan8379
      @chintavishnuvardhan8379 2 หลายเดือนก่อน

      Is The code same for both transmitter and receiver arduino ! If you don't mind please share the schematic of the circuit it will be help ful to avoid mistakes ❤​@@BV-labs

    • @BV-labs
      @BV-labs  2 หลายเดือนก่อน +1

      @@chintavishnuvardhan8379 Yes, the sender and receiver work exactly the same. Both sides are actually both senders and receivers. They use the same code and the same Circuit. I dont have any more drawings of the circuit than what you see in the video.

    • @chintavishnuvardhan8379
      @chintavishnuvardhan8379 2 หลายเดือนก่อน

      ​@@BV-labs Thanks For Helping
      One last help can I use ldr instead of Photodiode

    • @BV-labs
      @BV-labs  2 หลายเดือนก่อน +1

      @@chintavishnuvardhan8379 it might be possible to use LDR, but you might have to adjust the resistor value. Also, it is a bit slower, but I guess that doesn’t matter at 9600 baud. Another thing you could try is to use a normal led the same way as a photoresistor. It should in theory work, but I haven’t tried.