4 Replies Latest reply on Jan 2, 2017 12:56 PM by rob.owings

    Distancing Measuring with HC-SR04 For CY8CKIT-059 PSoC® 5LP

    neohobbyist_1746876

      Hi everyone,

         

      I've very new to usage of PSoC, but I have a project that I want to attempt in using PSoC as the microcontroller to control the HC-SR04 chip and return a distance.

         

      I understand how the HC-SR04 works on the ardriuno but when it comes to using the PSoC I used the following code as a guide.

         

      http://www.cypress.com/forum/psoc-3-device-programming/ultrasonic-distance-sensor-hc-sro4

         

      For the last couple of hours, I've been trying to port over the code the PSoC 5LP and specifically the CY8CKIT-059. When I upload the current code into the device, the distance does not show and I'm unsure as to why this is so.

         

       

         

      Any Assistance would be greatly appreciated. I have uploaded the project below but it is literally a copy of Dana's project except with an adjust target device. 

         

       

         

      Thanks in advance