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

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

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

353 Views
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

Labels (2)
0 Kudos
Reply
2 Replies

321 Views
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 Kudos
Reply

309 Views
Manjunathb
Contributor II
@Chavira
Thank you for your response...
0 Kudos
Reply