How we can Integrating HC‑SR04 Ultrasonic Sensor into Demo code on MCIMX9352 SDK ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How we can Integrating HC‑SR04 Ultrasonic Sensor into Demo code on MCIMX9352 SDK ?

371件の閲覧回数
Manjunathb
Contributor II

Hello Experts,

I’m working with the MCIMX9352-EVK (i.MX93 Cortex‑M33) and the MCUXpresso SDK , and I’d like to extend the built‑in adc_polling_cm33 demo to also drive and read an HC‑SR04 ultrasonic sensor. My goal is to preserve the demo’s structure (using BOARD_InitHardware(), PRINTF(), GETCHAR(), etc.) but replace the ADC conversion loop 

Questions:

  1. Which SDK driver do you recommend for µs‑resolution on i.MX93, and how best to integrate it into the existing demo framework?

  2. Are there examples in the SDK showing how to use  input‑capture for pulse‑width measurement?

  3. Any guidance on preserving the ADC demo’s build settings (CMake or MCUXpresso project) while adding these new peripherals?

Thanks in advance !

@NXP_imx93evk_user i.MX93EVK #utrasonic_sensor

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

339件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

HI @Manjunathb!

 

As shown in the image, you can add additional components to your project.

Chavira_0-1751482110115.png

 

For example, you can use a TPM module for input capture functionality. We provide a working example that you can reference here:

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/mcimx93evk/driver_examples/tpm/input_c...

 

Best Regards!

Chavira

 

0 件の賞賛
返信

327件の閲覧回数
Manjunathb
Contributor II
@Chavira
Thank you for your response...
0 件の賞賛
返信