Code Monkey home page Code Monkey logo

Comments (14)

fadvictim avatar fadvictim commented on July 16, 2024

Was just thinking.. do the LEDs need to be in line of sight (top to top)?

from arduino.

luizmendes avatar luizmendes commented on July 16, 2024

Hi @fadvictim ,

About the LED, in my case, the emitter needs to be directly pointed to the receiver.

About the pins, if your receiver is on pin A0, the receiver's code should be changed, because in the way it is, the receiver is connected to analog pin 3.

Here is the piece of code that should be changed:

//This defines receiver properties #define SENSOR_PIN 3 #define SYMBOL_PERIOD 500 #define SAMPLE_PER_SYMBOL 4

Just change it to "#define SENSOR_PIN A0", and see if it works. This worked for me.
Hope it helps you.

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

after changing that pin configuration I am not receiving the transmitted data.please help me out as it mine final year project.

from arduino.

luizmendes avatar luizmendes commented on July 16, 2024

Hi @deepak0003

Before that, were you receiving any data?

You can get the original code and put the sensor on pin A3. It should work.

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

thanks @luizmendes so promptly replying

YES. I am receiving some garbage data.I have checked the serial moniter for transmitter .it was sending the same data frame as in the code.But the reciever isn't getting that data.insted some garbage value is coming.

have you got the proper output result.

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

HI @jpiat
Sir,I am not able to receive the transmitted message of hello world in LIFI project.I am receiving some garbage value.
Should I use photodiode instead of led parallel with resistor.

from arduino.

jpiat avatar jpiat commented on July 16, 2024

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

hi
components are
Transmitter side
1.white Led
2. Arduino UNO r3
3.resistor with 270 ohms in series with led
4.Led is connected to digital pin 13(uncommented the line in the code for making digital pin 13 for output)
5.postive pin of led is connected to pin 13 and the negative end to ground.

Receiver side
1.Arduino UNO r3
2.White Led with 1M ohms in parallel
3.Led reverse biased connected to analog input pin 3 and ground

while checking the output in serial monitor baud rate set to 115200 and I checked with 1200 baud rate too and much more.
still, i am not getting the required output.please help me out and if possible give your skype id or facebook id through which I can do video conferencing.
I know it is too much to ask but I am very much in need of any type help.

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

hi @jpiat
components are
Transmitter side
1.white Led
2. Arduino UNO r3
3.resistor with 270 ohms in series with led
4.Led is connected to digital pin 13(uncommented the line in the code for making digital pin 13 for output)
5.postive pin of led is connected to pin 13 and the negative end to ground.

Receiver side
1.Arduino UNO r3
2.White Led with 1M ohms in parallel
3.Led reverse biased connected to analog input pin 3 and ground

while checking the output in serial monitor baud rate set to 115200 and I checked with 1200 baud rate too and much more.
still, i am not getting the required output.please help me out and if possible give your skype id or facebook id through which I can do video conferencing.
I know it is too much to ask but I am very much in need of any type help.

from arduino.

jpiat avatar jpiat commented on July 16, 2024

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

ok thanks for that i will let you know the output once i use RGB led.
thanks for the insight

from arduino.

deepak0003 avatar deepak0003 commented on July 16, 2024

hi @jpiat

Which type would be better Diffused or Clear red led .
please could you tell me which led you used and resistor so that i would be sure that output will come.

for reciever end ,arduino internal voltage should be 5 or 3 or 1.

from arduino.

jpiat avatar jpiat commented on July 16, 2024

from arduino.

SunilKumarAmpolu avatar SunilKumarAmpolu commented on July 16, 2024

hello jipiat,

will your code work on Arduino UNO. if yes, any modifications required?

from arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.