Multiple ultrasonic sensor connection to Robot-hat

Hello ,

I am using a PiCar-X with a Raspberry Pi 4 B Model.
I need to connect 4 ultrasonic sensors (HC-SR04) to the Robot-hat, which only has 4 available digital pins, allowing me to connect only 2 ultrasonic sensors.

For other 2 Ultrasonic sensor, Which other pins can be used ?

I am planning to connect the 4 trigger pins of the HC-SR04 sensors to the available digital pins D0, D1, D2, and D3 of Robot-hat. Additionally, I will connect the 4 echo pins to available PWM pins.

Is this connection okay?

Thank you !

Best Regards,
Purusshotthama

Unfortunately, our Robot Hat can only accommodate a maximum of two ultrasonic modules. There are no additional pins available to connect multiple ultrasonic modules.
Connecting four echo pins to available PWM pins is not feasible in this case.

what about connecting 4 trigger pins to PWM and Echo pins to Digital pins ?
any other possibility ?

Sorry it can’t.If you have any further questions, please let me know.

Are the Digital D6, D7, D8, and D9 pins configured on the board?

The robot hat is only configured with 4 sets of 3-pin digital pins (D0-D3).