Ping))) rangefinder for Microchip pic32

i need you to program for me this sensor on pic32mx460F512L

[url removed, login to view]

i need you to use only one Timer ( Timer6)

and it need to be in real time ( all delays need to be with an interrupt.. can't use Delayus() in the main loop

it will be something like

void Fire()


// activate Timer/The all process




do the required process

after there is a result in cm/inch apply it to a global parameter and raise a done flag


in main



if ( shouldFire ) // i got another timer that will set shouldFire =1 each 250ms


shouldFire =0;



if ( flag )



distance = rangeFinderResult;



i'm attaching a code i found on the internet for AVR

Skills: C Programming, Electrical Engineering, Embedded Software, Microcontroller

See more: pic32 ping sensor, ping microchip, while loop c programming, programming loop, programming a microcontroller, pic programming in c++, pic programming in c, loop programming, is programming for me, for loop in c programming, for loop c programming, do while c programming, c programming while loop, c programming for loop, avr programming pdf, avr c programming, microchip parallax ping, ping pic32, VOID, ping, pic microcontroller programming, parallax, inch, distance sensor, avr programming

About the Employer:
( 3 reviews ) tel aviv, Israel

Project ID: #1109964

Awarded to:


I can do it

$50 USD in 3 days
(12 Reviews)