Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine modulation with Manchester? #20

Open
Jozhxy opened this issue Feb 14, 2017 · 11 comments
Open

Combine modulation with Manchester? #20

Jozhxy opened this issue Feb 14, 2017 · 11 comments

Comments

@Jozhxy
Copy link

Jozhxy commented Feb 14, 2017

Hi, I've tried out your code, works fine with x9 LEDs to photodiode at other side.
Since Arduino UNO can't run the code in parallel. Is it possible to combine ASK into it without modifying the circuit at few hundreds Hz or kHz and then demodulate again?

@jpiat
Copy link
Owner

jpiat commented Feb 14, 2017 via email

@Jozhxy
Copy link
Author

Jozhxy commented Feb 14, 2017

Thank you for your quick respond. I found the hot spot at SYMBOL_PERIOD 2400 & changed the threshold which is still perfect square wave on the oscilloscope, unfortunately my photodiode won't detect any faster than that. But I'm glad the LED is above the threshold of human eye to perceive.
Thank you once again 👍

@jpiat
Copy link
Owner

jpiat commented Feb 14, 2017 via email

@Jozhxy
Copy link
Author

Jozhxy commented Feb 14, 2017

Oh sorry, it's a phototransistor. I use a macro lens to magnify in order to improve the signal.
http://www.vishay.com/docs/81321/tept5700.pdf
Bought it from: http://my.element14.com/vishay/tept5700/photo-transistor-npn-570nm-5mm/dp/1497676

@jpiat
Copy link
Owner

jpiat commented Feb 14, 2017 via email

@Jozhxy
Copy link
Author

Jozhxy commented Feb 14, 2017

Cool.
Yea, because I need to match the wavelength with the transmitter, most receivers are at IR range.
To achieve a standard communication system, other than modulation, what else could be implement into this project? (If arduino could handle it)

@jpiat
Copy link
Owner

jpiat commented Feb 15, 2017 via email

@shivanksharma91
Copy link

@Jozhxy Can you help me with this? please [email protected]

@Jozhxy
Copy link
Author

Jozhxy commented Mar 11, 2017

@shivanksharma91 For this case, only IR is fast enough to modulate cuz it's the standard.
LED will dim as it doesn't have much time to stay fully on or off. There's only few that manufactures high switching LED & phototransistor/diode which are very costly.
You can use function generator as an external modulation into AND transistor or if you can code a fixed modulation frequency while sending data in Arduino, maybe extract IR library and modify it.

@shivanksharma91
Copy link

@Jozhxy thanks for the quick respnse, i need help in using photodiode at receiving end. If i just replace the led with photodiode on the receiving end and upload the code, will it work? Since i cannot really understand the code, i am new to it.

@Jozhxy
Copy link
Author

Jozhxy commented Mar 11, 2017

The code sends out by frame, loop Hello Word 1 to 10.
Try it short distance, adjust to lower speed first in the code. Get a variable resistor to adjust photodiode sensitivity like IR receiver circuit.
See other issue posted before for further info of the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants