iliasam / OpenTOFLidar

Open Source TOF Lidar
https://habr.com/ru/post/485574/
MIT License
750 stars 185 forks source link

How pulse width is calibrated to measure distance #28

Open ShanLan12 opened 1 week ago

ShanLan12 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

Try to read this: https://github.com/iliasam/OpenTOFLidar/wiki/Walk-error-calibration and the original article: https://habr.com/ru/articles/485574/

ShanLan12 commented 6 days ago

Thanks!