PSoC4 with UltraSonic Sensor HC-SR04

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ShVy_264716
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hi All

   

I need to interface and utilize four Ultrasonic Sensor Modules HC-SR04 with the PSoC 4 Prototyping kit CY8CKIT-049 42xx. I want to do it using pin interrupts. Can somebody please suggest a method for this? Thank you in advance.

   

 

   

Regards

   

Shaunak

0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There is a single interrupt for a port on which several pins can be enabled to generate the interrupt. You will have to read the pins/port to decide which one did fire the int.

   

See attached for configuration.

   

 

   

Bob

0 Likes
ShVy_264716
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hi Bob

   

Thank you for reply. I have checked the project shared by you. I need help in programming the entire functionality. I mean I need help in defining the Timer/Counter and Pin interrupts for four Ultrasonic Sensor Modules. Even if given for only one module, it will help me a lot. Thanks in advance.

   

 

   

Regards

   

Shaunak

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

 

   

Perhaps you have not seen these posts:  

   

 

   

Ultrasonic Distance Sensor HC-SRO4

   

 

   

Interfacing ultrasonic sensor

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This might help -

   

 

   

    

   

              

   

          

   

    

   

 

   

          http://www.cypress.com/?rID=95069https://www.cypress.com/?rID=95069     AN90799 - PSoC® 4 Interrupts

   

    

   

          

   

http://www.cypress.com/?rID=93401     AN86439 - PSoC® 4 - Using GPIO Pins

   

 

   

 

   

Regards, Dana.

0 Likes