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

Extract value of 1 and 0 at receiver #21

Open
bl1229 opened this issue Feb 16, 2017 · 4 comments
Open

Extract value of 1 and 0 at receiver #21

bl1229 opened this issue Feb 16, 2017 · 4 comments

Comments

@bl1229
Copy link

bl1229 commented Feb 16, 2017

Hi, I used your code to get communications between an LED and a photodiode. I am now trying to implement a positioning algorithm and I need to be able to find the sensor reading that corresponds to receiving a 1 and a 0 for distance estimation purposes. Do you know if it will be possible to do this with this code?
Thank you

@jpiat
Copy link
Owner

jpiat commented Feb 16, 2017 via email

@bl1229
Copy link
Author

bl1229 commented Feb 16, 2017

Yes I have 4 transmitters to one receiver. But it sees multiple transmitters at the same time and only one transmitter sends data at any one time (when not sending data the rest transmit at a constant high value - no Manchester). Based on the difference in light intensity between receiving a 1 and a 0 the Rx will find its distance from each of the Tx. These distances then used for triangulation

@jpiat
Copy link
Owner

jpiat commented Feb 16, 2017 via email

@bl1229
Copy link
Author

bl1229 commented Feb 17, 2017

The receiver is always on a plane parallel to the transmitters so orientation angle is not a problem. The distance from the Tx to Rx is related to the difference in light level from a 1 and a 0 so the ambient light will not be a problem because it is constant, I am conducting experiments in the dark anyway so the only ambient light in the system is from other transmitters. In your code do you calculate the light level associated with a 1 and 0 or is just based on the assumption that if the light level is higher than the last bit by the threshold it must be a 1 and lower than the last bit it must be 0?
Thank you

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

2 participants