Echo signal and FTM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Echo signal and FTM

1,660 Views
murtadamuqdadi
Contributor I

Hello , by using FTM   how to measure the pulse width of the echo signal and thereby the distance between the sensor and any obstacle, I am using K64F and  HC-SR04 ultrasonic sensor  using two pins one as trigger for the sensor and the other for the echo signal, so by using the dual edge capture mode how will be the code script **consider me as beginner :smileyhappy:

1 Reply

1,355 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Murtada Muqdadi:

You may use KSDK for this application. See the next document created by Abigail Inzunza which implements distance measurement via KSDK, with the K64 using ultrasonic sensors:

Configuring Kinetis Software Development Kit (KSDK) to measure distance with ultrasonic transducers

Regards!

Jorge Gonzalez