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 ?

357 次查看
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 回复数

325 次查看
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 项奖励
回复

313 次查看
Manjunathb
Contributor II
@Chavira
Thank you for your response...
0 项奖励
回复