Tutorial: Data Transmission using light | Li-Fi

  Рет қаралды 54,949

Electronics and Programming

Electronics and Programming

Күн бұрын

Пікірлер: 162
@ashhkz2203
@ashhkz2203 Жыл бұрын
Probably one of the greatest and simplest videos i have seen on serial communication over light fidelity... Loved ot
@snehithkumar8148
@snehithkumar8148 11 ай бұрын
DID IT WORK FOR U?
@SwapneshKoli
@SwapneshKoli 8 ай бұрын
Same question it didn’t work for me may I should try it again
@shan_singh
@shan_singh 2 жыл бұрын
That was a really great explanation and thanks for providing code much appreciated
@electronicsandprogramming9794
@electronicsandprogramming9794 2 жыл бұрын
Thanks for your comment. It is always nice to have your work appreciated. :)
@thejasembeddedsolutions
@thejasembeddedsolutions 2 жыл бұрын
this a gd tutorial for one who start with lifi technology .
@literpaper
@literpaper 4 жыл бұрын
its a very clear tutorial, thanks.
@Drfau1710
@Drfau1710 Жыл бұрын
Wonderful explanation.
@GlobalStreams
@GlobalStreams 5 ай бұрын
I have modified this project to send image using the same circuit and uses a modified version of arduino program used in this video. However the problem is that it takes a lot of time to transfer the image data. i have reduced the period to 2 and it is receiving data correctly but it is still very slow is there any way to reduce the delay in processing the bytes
@manishsonawane1828
@manishsonawane1828 2 жыл бұрын
Hi! Thanks for this video! I want to follow this and complete my project on LiFi Technology for my course in Masters degree. I really need your help. I just have a few queries. 1. How is the Potentiometer connected here? Can you please tell me which pins go where and to what they are connected? 2. Can I use Lazer-Photo Transistor instead of LED-LDR? 3. How can I connect the Arduino to the laptop and upload the code? Would I be able to find any other video for that? 4. Is it possible to use pair of LED-LDRs to make simultaneous communication between two laptops instead of one-way communication? Please suggest. I have a subject 'Transmission technology' in my course and I have selected this topic LiFi. Please help brother! We can connect via email/WhatsApp or any other platform. Thank you very much in advance!
@crazyman176
@crazyman176 2 жыл бұрын
number 4, yes it is possible, we created multiple versions based on this exact project. We created a custom protocol to send and receive files simulatonalsly. But we ended finally with using UART. You can use SPI as well. check OPENVLC.org for beagleboard, or nerdcorner for raspberry pi. You can use the arduonis as a modem, basically sending the data it receives and send to a laptop via UART.
@lucaliberato8191
@lucaliberato8191 4 жыл бұрын
Sei un drago kitemmuort!
@Jaya.M78
@Jaya.M78 3 жыл бұрын
Hi sir....great project! Just wanted to ask you....is this related to Signal Processing?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Ashwin. I wouldn't say so.
@osmanefe8130
@osmanefe8130 Жыл бұрын
Working good. Thank you bro.
@johnhu9137
@johnhu9137 2 жыл бұрын
good job. if i want to transmit 720p video , any solution recommend?
@025_h_mohitkumardora5
@025_h_mohitkumardora5 2 жыл бұрын
sir can make this with only one Arduino instead of two?
@electronicsandprogramming9794
@electronicsandprogramming9794 2 жыл бұрын
Hello, unfortunately no.
@025_h_mohitkumardora5
@025_h_mohitkumardora5 2 жыл бұрын
@@electronicsandprogramming9794 ok 😅
@mominator_
@mominator_ Жыл бұрын
Bro do you have a tutorial to see how things are connected together on the Breadboard?
@salimirangi2000
@salimirangi2000 4 жыл бұрын
Very nice job. Can you please attach a more clear photo of how everything is wired?
@FahadAndFarrukh
@FahadAndFarrukh 4 жыл бұрын
Hello Salim, A schematic is provided in this link. github.com/SaadOjo/DIY_Li-Fi A0, A1 and A2 represent the analog pins of the arduino while D3 is the digital pin. Please let me know if you have any other questions.
@nandinikumari9456
@nandinikumari9456 2 жыл бұрын
I tried this project and it worked. Thank you for this video sir . But i am not able to make code for transmitting sensors data through LED. Could you please help?
@ghadahh9616
@ghadahh9616 Жыл бұрын
hello, can i ask you how did you connect the Potentiometer please ? cuz in the schematic it is not so clear unfortunately
@vinolicam4140
@vinolicam4140 3 жыл бұрын
great job! thank you for the explanation!
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Glad you enjoyed it!
@thomaswang3281
@thomaswang3281 Жыл бұрын
great project
@ebraheem5585
@ebraheem5585 5 ай бұрын
What is the photodiode you used to detect the visible light .. Idk if i will get an answer its been 3 years
@EEffectStudio
@EEffectStudio 2 жыл бұрын
Hello, I would like to ask, the press button which is connective between A0 of arduino receiver and ground why we need it?
@daCount0
@daCount0 11 ай бұрын
Interesting project - btw the sound of your keyboard is a littel too loud
@ankitaraychowdhury4630
@ankitaraychowdhury4630 2 жыл бұрын
I am trying to implement this project.. but at the receiver side nothing is coming. can you suggest anything to fix the problem??
@KartikMore-bj3pd
@KartikMore-bj3pd Жыл бұрын
Hello sir I have one doubt about the transmitter side what value of resistor you have used it seems small I mean smaller than 220ohm so please help me with this. Thank you
@adarshaadhi9455
@adarshaadhi9455 3 жыл бұрын
i have 5 sensor values, and i converted thoese to strings and it is recived properly. but i cannot able to retrive it
@mofeezurrahman9397
@mofeezurrahman9397 11 ай бұрын
Getting some random characters as output. But they are repeating as the original text should have. How to solve this issue?
@ajayreddy6845
@ajayreddy6845 3 жыл бұрын
Instead of getting the transmitted data on serial monitor ,how to get it on a LCD display
@J4Jevins
@J4Jevins 11 ай бұрын
Instead of Serial.print(buff); Use LCD print..
@israelflorescovarrubias145
@israelflorescovarrubias145 2 жыл бұрын
great explanation but it don't works for me, i have problems con the reciever could helpme please?
@ريحانهجليلكريم-ص6م
@ريحانهجليلكريم-ص6م 3 жыл бұрын
hi I Have same project I use laser in tx and laser receiver, I tried your code but its don't work, also tried and put laser receiver in digital pin without threshold value also don't work, Can you help me, please
@fortheloveoftajweed7013
@fortheloveoftajweed7013 2 жыл бұрын
I have been trying to replicate it for server also days now Everything seems fine but I’m stuck at my receiver LED not Turing on Can you help me figure how I could do it
@rainakn8300
@rainakn8300 3 жыл бұрын
Hello, According to the code the data is transmitted serially ryt? So while receiving without knowing the start bit and stop bit won't that be difficult during reception?
@rainakn8300
@rainakn8300 3 жыл бұрын
Can you help with the code if we have to convert this data that is received to voice?
@prabhudevbetsurmath7270
@prabhudevbetsurmath7270 2 жыл бұрын
I am not understanding which wire went were on the breadboard can you provide a slow video of connection or a proper image of connections.
@lilyfeng9891
@lilyfeng9891 3 жыл бұрын
Hi so my transmitter (led light) and receiver can only receive the right message when I hold them in a certain angle, and I tried many different led lights and still can't solve the problem. BTW my led lights cannot provide visible lights under the code, is that the problem?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello, so it must be related to the threshold issue or perhaps your LDR is too slow. The first thing that you can do is to check that the first part of the code where we only test is if the led turns on when you press the button. If that part works well it means that your threshold is setup correctly, otherwise you should adjust the potentiometer until this part works well. If this is working correctly you can change the speed of transmission which you need to do for both the transmitter and the receivers, you need to change the TIME_PERIOD definition in both codes but make sure that you change them such that both have the same value. Increase the time period to make the transmission slower.
@lilyfeng9891
@lilyfeng9891 3 жыл бұрын
@@electronicsandprogramming9794 Thank You! So I did check the first part and adjusted the potentiometer, and now it lights up when the transmitter is transmitting the signal. However, the serial monitor still outputs rubbish letters unless there is some sort of pressure on both the led light and LDR in order for the correct message to show. I tried to changed the time period but the same problem happened. I check the frequency of the led light in the LDR light, it blinks at the same rate with/without pressure. Please help me out. Thank you so much
@lilyfeng9891
@lilyfeng9891 3 жыл бұрын
@@electronicsandprogramming9794 Nevermind! I found the problem from one of the comments, it is the number of the threshold. My can only receiver letter at a minimum of 350.
@zekernz1019
@zekernz1019 10 ай бұрын
hey can u help me build this?@@lilyfeng9891
@chevurusrivarshini6276
@chevurusrivarshini6276 6 ай бұрын
@@lilyfeng9891 hi, i am facing the same problem can you please help me
@rushabhbannore808
@rushabhbannore808 2 жыл бұрын
Hi bro can we use two pc for it Please reply its urgent for me
@marwanyounes6015
@marwanyounes6015 3 жыл бұрын
Professor I have connected the wires like you did in the video but something is wrong and I have noticed that when you were trying the circuit the wires in the transmitter wasnt like shown in the circuit, they were connected to A4 and A1 , so I am lost at which pins should I connect to the receiver
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Marwan, If you look at the top of the code you will see that the pin mappings are written. Please try to follow them. Also note that there are two folders the ones with '_code' suffix are older so please use the other ones.
@salatonsimel9064
@salatonsimel9064 3 жыл бұрын
@electronicsandprogramming does the button have any use on the new updated code?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Salaton, The button is only used for testing purposes.
@alijaafar12
@alijaafar12 Жыл бұрын
you don't clear the diagram right please could you explain how the wire is connected from wich bin goes to wich bin please I want to make this project
@TejasL-v8m
@TejasL-v8m 3 ай бұрын
How did u set the threshold?
@darshanravikumar5300
@darshanravikumar5300 3 жыл бұрын
Is there any restriction to the color of the LED?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
No as long as your receiver is sensitive to those wavelength of the led you choose.
@Sneha-tp4gy
@Sneha-tp4gy 3 жыл бұрын
Hello sir, our Arduino receiver is not receiving the data from transmitter... Sir what are the three connections on potentiometer It is not clear in the video
@ALAAHUSSEIN-h2i
@ALAAHUSSEIN-h2i 9 күн бұрын
@marwanyounes6015
@marwanyounes6015 3 жыл бұрын
Professor, is there is anything connected to the +ve of the board apart from the 5v from the Arduino , I cant see it properly in the video
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Marwan, One side of the Potentiometer is connected to +ve. Voltage.
@vishnudeepak4826
@vishnudeepak4826 3 жыл бұрын
Hello sir; I want to implement this project in software like Proteus. Can u help me in that.
@cemaldinc6008
@cemaldinc6008 3 жыл бұрын
hello can ı use the arduino uno r3 for both side. This project is about my graduation project thank u for answer.
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Yes Jamal, You can use uno on both sides.
@cemaldinc6008
@cemaldinc6008 3 жыл бұрын
u used arduıno nano can ı used arduıno uno for both sıde
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@cemaldinc6008 yes
@cemaldinc6008
@cemaldinc6008 3 жыл бұрын
@@electronicsandprogramming9794 thank u so much one more and last question i implement the github.com/SaadOjo/DIY_Li-Fi/blob/master/image_2020-10-07_152426.png this photo because the circuit you build is looks little complex. Still the circuit scheme is working isnt it? if it is working i will pray for u Long days :D
@FlirtyWithPencils
@FlirtyWithPencils 3 жыл бұрын
What is the highest speed we can attain through this? And how can I transfer data from my embedded to laptop-based software in fastest way?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Indrajeet. Well this setup is not really optimized for speed. First you would want to use a phototransistor instead of the LDR as it is much faster, secondly instead of bit-banging just use the hardware uart it would be orders of magnitude faster that way. I hope this answers your question.
@snehithkumar8148
@snehithkumar8148 11 ай бұрын
by the way at last where have you given input text?
@mofeezurrahman9397
@mofeezurrahman9397 11 ай бұрын
Hi Did it work for you ?
@XxGamesTreeXx
@XxGamesTreeXx 3 жыл бұрын
Hello in the tx side of serial monitor i do not see any text.Only blank page and my text does not trasnmitting.Do you know what is the problem is ?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello. The transmitter does not have any serial output. It is expected to be like this. The reason it might not be transmitting is perhaps the thresholds are set differently. Each transmitter receiver pair must be tuned properly.
@daliausama9148
@daliausama9148 Жыл бұрын
May you please wirte up the components used in details?
@aligeologist3944
@aligeologist3944 3 жыл бұрын
Hello..Dear sir .. the heart rate sensor and the temperature sensor were connected, and then the TX library was combined together and currently I am having a problem with the RX. Can you help me solve the problem? Thank you
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Ali, were you able to get the test code working as shown in the video? By the way I would like to remind you that this project is purely educational and not actually an efficient way to transfer data as it uses bit-banging (en.wikipedia.org/wiki/Bit_banging) if you need this for a real project you are better of using UART of the Arduino and just substitute led/phototransistors instead of using wires.
@aligeologist3944
@aligeologist3944 3 жыл бұрын
@@electronicsandprogramming9794 Thank you very much, dear sir .. Where can I find the appropriate code for this operation to transfer data by led?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@aligeologist3944 The code is in the description. I am also pasting it here. github.com/SaadOjo/DIY_Li-Fi
@abdullahhasanali1424
@abdullahhasanali1424 3 жыл бұрын
the serial monter dose not show any thing why ?pleas tell me solving
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Were you able to get the circuit setup correctly and work as in 8:26?
@abdullahhasanali1424
@abdullahhasanali1424 3 жыл бұрын
@@electronicsandprogramming9794 the circuit is correct but doesnt show any thing .there is no any proplem in joint there are proplem but Idont know it .if you have suggestion please tell me
@beyzacagl7466
@beyzacagl7466 3 жыл бұрын
Hello, I want to do this project. But is it possible to do the same project with infrared led and infrared receiver?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Yeah why not. You won't we able to see the light turn on though so it might make debugging a bit difficult. Btw are you from Turkey? Your name sounds Turkish.
@beyzacagl7466
@beyzacagl7466 3 жыл бұрын
@@electronicsandprogramming9794 Yes, I'm From Turkey. Thanks for your reply. I'm doing my engineering project. These have to be infrared receivers and transmitters. So there will be changes to the arduino code, won't there?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@beyzacagl7466 I also graduated from here, from ODTU :) Yes you are right there is no need to change the code. So you are doing your bitirme project. We also had to use some infrared sensors in our project (kzbin.info/www/bejne/aIbQkJKdecmrbrM) and I can give you a tip. You can use the camera of your mobile to see if the led works, it can sense IR wavelength.
@beyzacagl7466
@beyzacagl7466 3 жыл бұрын
​@@electronicsandprogramming9794 I also study in Ankara. Thank you for your help. I'm trying to develop a prototype for Li-Fi technology. This is the beginning . If I have questions, Can I ask if it's okay with you?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@beyzacagl7466 Sure, you can ask. I am a little busy nowadays but I will try to reply to you if I have time. Good luck with your project.
@ruairimc2177
@ruairimc2177 3 жыл бұрын
Hi, I followed the tutorial ( I just didn't use a potentiometer) and although some text comes through the string that I am trying to send does not. I have altered the period time and the threshold but it still does not output the message clearly, any help would be greatly appreciated. Btw I'm using a 10K resistor for the LDR and a 470 for the LED. Also if I was to use a phototransistor instead of an LDR what code would I change?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello, Can you do the first part and make sure that the led turns on when you press the button. Maybe the setup is such that the led is inverted.
@ruairimc2177
@ruairimc2177 3 жыл бұрын
@@electronicsandprogramming9794 Yeah, I have completed the first part and successfully got the LED attached to the receiver to turn on when the transmitter LED is on. I found that the LDR works at a THRESHOLD value of 900. Maybe this indicates that the LDR is not good enough and thus I have a phototransistor that I can use. However, if I try to send the string "Hello" only the He will transmit and the rest is just rubbish letters.
@xaej1he144
@xaej1he144 Жыл бұрын
Is this working ?
@zekernz1019
@zekernz1019 10 ай бұрын
did it work for u?@@xaej1he144
@abdullahhasanali1424
@abdullahhasanali1424 3 жыл бұрын
I used LDR 4mm it is permissible or not
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Yes, it should work fine.
@abdullahhasanali1424
@abdullahhasanali1424 3 жыл бұрын
@@electronicsandprogramming9794 please can send me dirgram of circuit in tellegram Eino98
@lilyfeng9891
@lilyfeng9891 3 жыл бұрын
hi instead of letting the words show on the computer, do you think I can change the code to let it display on lcd?
@FahadAndFarrukh
@FahadAndFarrukh 3 жыл бұрын
Yes, it should be quite easy.
@lilyfeng9891
@lilyfeng9891 3 жыл бұрын
@@FahadAndFarrukh okayyy thank you! Another question, so I do not have a long breadboard with me, can this project work with two half breadboard? one for the transmitter and one for the receiver?
@FahadAndFarrukh
@FahadAndFarrukh 3 жыл бұрын
@@lilyfeng9891 Yes for sure. You can even have isolated power supplies. It will kind of act as a optocoupler.
@lilyfeng9891
@lilyfeng9891 3 жыл бұрын
@@FahadAndFarrukh THANK YOU SO MUCH! if the serial monitor is only showing a bunch of question mark, is it because the light is not strong enough?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@lilyfeng9891 May be you need to properly set the potentiometer. Are you able to get the first part of the project working? I mean does it work like in 8:26?
@armanx2
@armanx2 3 жыл бұрын
Now build array of lights to get bigger bandwidth ;)
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Actually if we replace the photodiode with a phototransistor we should have a much higher frequency and more bandwidth. If speed is your concern just connect a photodiode to uart it would be much faster, bit-banging has its limits.
@armanx2
@armanx2 3 жыл бұрын
@@electronicsandprogramming9794 I have very limited electronics knowledge , I'm web developer :) thx for tipis though.
@mehdielmamoun8441
@mehdielmamoun8441 3 жыл бұрын
hello can you tell me the value of the resistence used in the experience for the transmettre and recrever
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
The Potentiometer has a value of 10K
@adarshaadhi9455
@adarshaadhi9455 3 жыл бұрын
how can I separate the strings that were received? i have 5 separate integer value that needed to be retrieved at the end
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello you need to create a string parser. You can use comma as a delimiter.
@adarshaadhi9455
@adarshaadhi9455 3 жыл бұрын
I cant do it. I cant locate the starting of the string. Its seems impossible. Do you have any example code that could be used as a reference. Ive been trying for last 5 days.
@ItsAnvitGaming
@ItsAnvitGaming 3 жыл бұрын
Hii can you give a list of the components you used
@FahadAndFarrukh
@FahadAndFarrukh 3 жыл бұрын
The components are listed here. create.arduino.cc/projecthub/saad-saif/wireless-data-transmission-using-light-diy-li-fi-69eb0a?ref=search&ref_id=wireless%20data%20transmission&offset=0
@raghavendramirji2
@raghavendramirji2 2 жыл бұрын
Hello, Could anyone tell me if first part (before 8:44) is possible with only one microcontroller (Arduino UNO R3)?
@frgxcv6164
@frgxcv6164 8 ай бұрын
2 needed
@ayosh7886
@ayosh7886 3 жыл бұрын
How can we transfer any text i don't want him be fixed have any idea
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
The text can be easily changed, you can see it in the transmitter code. Furthermore you can modify the code to receive text from the computer through serial and then transmit it out.
@SureshKumar-nk2ok
@SureshKumar-nk2ok Жыл бұрын
sir how can i increase the distance with Li Fi
@HiHello-h6q
@HiHello-h6q 8 ай бұрын
use laser
@rainakn8300
@rainakn8300 3 жыл бұрын
can you please provide the block diagram and methodology. It will be helpful or my projhect
@FahadAndFarrukh
@FahadAndFarrukh 3 жыл бұрын
did you check out the github repository. Please follow it here. github.com/SaadOjo/DIY_Li-Fi
@rainakn8300
@rainakn8300 3 жыл бұрын
Yes, but I want detailing of the project. Can you please tell me how tgis can be implemented in real life? Which implemented practically what all will be the requirements?
@FahadAndFarrukh
@FahadAndFarrukh 3 жыл бұрын
@@rainakn8300 I tried to add all the details in the video. The connections and procedure is all there. What is not clear please let me know.
@rainakn8300
@rainakn8300 3 жыл бұрын
@@FahadAndFarrukh your video 's explanation is awesome. I want to know if we have to implement this on street lights how would it be like?
@FahadAndFarrukh
@FahadAndFarrukh 3 жыл бұрын
@@rainakn8300 Actually, this setup is more academic than practical. The first thing you should do is to use a photo-transistor instead on LDR as the LDR is too slow for any practical speeds. Also it is not the best idea to use software bit-banging instead a hardware based solution would be better. As a matter of fact the UART of the Arduino can be used directly and the TX RX lines can be replaced with a fast led and a photo-transistor. If you really wanted to use on the street as a practical solution the best way would be to replace the physical layer of the OSI model from ethernet to a custom lifi based solution. If you are interested I can try to do that and make a video on it.
@ajayreddy6845
@ajayreddy6845 3 жыл бұрын
Can u help us with code for getting output on lcd
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello. You can use this video as a guide. Where we have Serial.write() replace it with lcd.print() and it should work. :) Let me know how it goes.
@Kreo099
@Kreo099 4 жыл бұрын
please tell me how didi u received that final message u didnt show us when you send it
@electronicsandprogramming9794
@electronicsandprogramming9794 4 жыл бұрын
I have a send byte function that I call for each byte. You can look at in in the receiver code here. github.com/SaadOjo/DIY_Li-Fi Please let me know if you have any other questions.
@Kreo099
@Kreo099 3 жыл бұрын
@@electronicsandprogramming9794 why i get error after verfiying the code on arduino if u can send me the code of both trans and receiv thnk u very much
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@Kreo099 can you please send me the error. You can open an issue on the github repository.
@Kreo099
@Kreo099 3 жыл бұрын
@@electronicsandprogramming9794 i have copy the same code you type it in the video and look what i get like error Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno" FU:5:23: error: expected initializer before 'setup' char* string = "this " ; ^~ C:\Users\abdelkrim\Desktop\FU\FU.ino:5:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char* string = "this " ; ^~~~~~~ FU:8:1: error: expected initializer before 'void' void setup() { ^~~~ C:\Users\abdelkrim\Desktop\FU\FU.ino: In function 'void loop()': FU:17:21: error: 'string_lenght' was not declared in this scope for (int i = 0; i < string_lenght; i ++); ^~~~~~~~~~~~~ C:\Users\abdelkrim\Desktop\FU\FU.ino:17:21: note: suggested alternative: 'strnlen_PF' for (int i = 0; i < string_lenght; i ++); ^~~~~~~~~~~~~ strnlen_PF FU:19:20: error: 'i' was not declared in this scope send_byte(String(i)); ^ FU:19:3: error: 'send_byte' was not declared in this scope send_byte(String(i)); ^~~~~~~~~ FU:19:23: error: expected ')' before ';' token send_byte(String(i)); ^ FU:20:3: error: expected primary-expression before ')' token ) ^ C:\Users\abdelkrim\Desktop\FU\FU.ino: At global scope: FU:24:1: error: expected unqualified-id before '{' token { ^ exit status 1 expected initializer before 'setup' This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@Kreo099 okay thank you for the error. I will correct it and update the repository.
@MrZero-se6hb
@MrZero-se6hb 2 жыл бұрын
Your Voice is very low. I am listening on full sound volume
@sajjadkhan-gc2gp
@sajjadkhan-gc2gp 3 жыл бұрын
hello can anyone help me please what is the name of this other module used in the circuit
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Hello Sajjad, What module are you referring to?
@sajjadkhan-gc2gp
@sajjadkhan-gc2gp 3 жыл бұрын
@@electronicsandprogramming9794 i got i was talking about Arduino nano ,sir let me know i use both uno instead of one nano circuit will work
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@sajjadkhan-gc2gp Hey, Sajjad. It doesn't matter which one you use. As long as you use the same connections it should work. :)
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@sajjadkhan-gc2gp Yes it will work
@EEffectStudio
@EEffectStudio 3 жыл бұрын
Where can i change the text?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
In the code there is a string around the top, you can change it from there.
@EEffectStudio
@EEffectStudio 3 жыл бұрын
@@electronicsandprogramming9794 do you mean the char text right?
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
@@EEffectStudio Yes indeed :)
@rasheedataliep5757
@rasheedataliep5757 2 жыл бұрын
@summerkrinsky5369
@summerkrinsky5369 3 жыл бұрын
Didn't have a potentiometer so was trying this with just a 1k resistor -I had to change the threshold up to 400 to be accurate to the range I was getting out of the photocell- I am getting binary data transferred but it is not correct. It is consistently the same incorrect binary numbers corresponding with ascii characters- any suggestions? Really appreciate any ideas you might have thanks!
@summerkrinsky5369
@summerkrinsky5369 3 жыл бұрын
also because of this higher threshold I tried slowing it down to 1000 as the period on receiver and transmitter and still not working
@electronicsandprogramming9794
@electronicsandprogramming9794 3 жыл бұрын
Were you able to get the first part of the code to work?
@nanagogo7832
@nanagogo7832 2 жыл бұрын
@@electronicsandprogramming9794 I have the same problem! The initial test goes well, but no matter how I change the threshold the characters do not appear in the serial monitor. Please help!
@asphalt9phoque551
@asphalt9phoque551 Жыл бұрын
Hello. I think you will have to use potentiometer to change threshold of the ldr. If you don't have it, try to cover the LDR so that only the light of leds can reach it, like in a dark room
@sevgirumeysayldz1361
@sevgirumeysayldz1361 2 жыл бұрын
Hello, I tried to do this project but the serial moniter not show any thing why ? Can you help me please
Li-Fi: Send data via light using Arduino and JavaScript
12:59
Charlie Gerard
Рет қаралды 7 М.
Arduino Laser Data Transmission Tutorial
22:25
MindDump
Рет қаралды 1 М.
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 11 МЛН
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 22 МЛН
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 69 МЛН
Reliable data transmission
43:54
Ben Eater
Рет қаралды 1,6 МЛН
Optical Wireless Transmission - LiFi in a smart infrastructure
4:11
Fraunhofer HHI
Рет қаралды 23 М.
How Does LiFi Work?
2:22
pureLiFi
Рет қаралды 301 М.
LIFI CONTROLLED DOOR LOCK - USING ARDUINO
4:44
DIHO ROBOTICS
Рет қаралды 1,8 М.
When you Accidentally Compromise every CPU on Earth
15:59
Daniel Boctor
Рет қаралды 861 М.
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Serial Laser Communication -  Final Project - Utah State University (FALL 2020)
8:32
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 11 МЛН