PulseIn() in aurdino

Submitted by Kamalesh on

Hi sir, I was tried to re create ur idea of Li-Fi based text communication, the Transmitter part is working good bt there is problem on receiver part.

The pulseIn () which is used to get the duration of pulse is not working.

It doesn't get any input from the LED.

What's the error sir?

Please reply me as soon as you possible 

Hello,

It seems like you're encountering an issue with the pulseIn() function in your Arduino project for Li-Fi text communication. If pulseIn() is not receiving any input from the LED, there are a few potential reasons for this problem.

Wiring and Connections: Double-check your wiring to ensure that the LED is correctly connected to the receiver pin on your Arduino board. Make sure there are no loose or disconnected wires.

LED Output: Ensure that the LED on the transmitter side is emitting pulses correctly. You may want to use a photodiode or phototransistor on the receiver side to verify this.

Signal Levels: Ensure that the signal levels are compatible between the transmitter and receiver. The LED should emit pulses that the receiver can detect.

Code Errors: Review your code for any errors, such as incorrect pin assignments or incorrect parameters passed to pulseIn(). Make sure you're using the correct pin number and duration units.

Testing: Consider testing your receiver code with a simple LED blink test before implementing the Li-Fi functionality to ensure your receiver circuit and code are functioning correctly.

By systematically checking these aspects, you should be able to identify and resolve the issue with the pulseIn() function in your Arduino Li-Fi project.

 

 

 

  Joined September 13, 2023      2
Wednesday at 05:32 PM