Hi everyone,
For my school project, I have to make a LIFI system, using two arduino.
The sending system is done and works. But I have problem for reception.
I'm using a photodiode for reception. The LED is sending some bits (0 when off, 1 when off), and I want to translate these bits into characters, with the reception. I just don't know how to code the arduino. Nothing is done yet...
Thanks for our answers
Start simple
With the Tx running at a slow rate, say 1 Hz, can you detect the state of the LED with the photodiode on the Rx ?
xaiden:
The LED is sending some bits (0 when off, 1 when off)
That's not going to work well.
How are you going to know the start/end of the transmission, and when to sample the bit value on the receiving side?
Hint: read up on how a UART works.