LuisAfonso95 / TM4C123-Launchpad-Examples

41 stars 37 forks source link

ultrasonic sensor give wrong distance #4

Open surajp37 opened 5 years ago

surajp37 commented 5 years ago

I am using your sr04 sensor code but it give me wrong distance. I am using tm4c1294xl so is there any change between tm4c123 and can u tell me how did u generate delay of 10 micro second and how u calculate a distance .i did not get your calculation so please help me

LuisAfonso95 commented 5 years ago

Sorry for the late reply. First of all did you check this? https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials/tiva-general-purpose-timers/timer-periodic-mode---srf04