I'm making a lidar module as a project at my university. The deliverable should be a module like YDLIDAR X4 Lidar or tf-mini lidar.
I watched a video from GreatScott in which he disassembled a YLIDAR X4 lidar. The microcontroller was a STM32F302x6. I went through the datasheet and found it has a maximum of 72 MHz clock.
Through a simple calculation light travels at 3*10^8 m/s that means to measure time of flight of 0.5 meter between the object meaning 1 meter round trip it needs to be at least 300 MHz, but it can measure 30 cm. How is that possible or what did I get wrong and what microcontroller clock do I need as a minimum so I can at least match these specifications?
Edit 1: It seems that the Microcontroller doesn't do the measuring of the time of flight, a specialaized ic is used that then interfaces with the Microcontroller.
In addition I didn't want to use FPGA becuase I know Nothing About it and it will take a lot of time to learn and use for a project like this.