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

How pulse width is calibrated to measure distance #28

Open
ShanLan12 opened this issue Jun 29, 2024 · 4 comments
Open

How pulse width is calibrated to measure distance #28

ShanLan12 opened this issue Jun 29, 2024 · 4 comments

Comments

@ShanLan12
Copy link

Hello, I have a question for you, I recently came across a piece of code in my project which uses the MS1005 chip using the stop1 channel and stop2 channel connected to the same pin. A rising edge trigger and a falling edge trigger can be used to get the pulse width and use this pulse width to calibrate the distance measured. May I ask why it does this and how it calibrates the distance

2f4c7ef02ac0cc7412980e3b03d72d6 cd89776f09df7566da640947f878571

Here is the schematic for this project
XU_MAIN_v13.pdf
Thank you!

@iliasam
Copy link
Owner

iliasam commented Jun 29, 2024

Firstly, have you read this - https://github.com/iliasam/OpenTOFLidar/wiki/TDC-data-processing ?
You have connected "STOP1" and "STOP2" lines, so you need to change TDC configuration (comparing with my code).

@ShanLan12
Copy link
Author

Thank you for your answer.
I still don't know what the pulse width has to do with the measured distance, and why you can use the pulse width to correct the measured distance.

@iliasam
Copy link
Owner

iliasam commented Jun 30, 2024

@ShanLan12
Copy link
Author

Thanks!

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