hye guys..:
i'm really new here..i'm looking 4 help.can anybody giv me suggestion on how to build a robot using PING))) ultrasonic sensor, servo motor and PIC - 16F84A. this is 4 my project assignment.help me plss...
You have to use timer module together with edge interrupt pin, to acount time between sent pulse and received pulse, and such distance is proportional to sound air speed ( ~340m/sec )
andre_teprom:
what is timer module together with edge interrupt pin?
can u giv me example for the circuit diagram to create dis robot..
i'm really2 new in dis kind of project..
The timer need to use the greater input clock source possible. When you send a train-pulse on transmiter cell, the timer is cleared and, started. So, now you enable interrupt pin ( like RB0 ), and if a pulse is detected, you get the timer result, and calculate distance.
There are several examples on the Web. Take a search using key : ultrasonic range finder circuit.
here is the link to the Ultrasonic Range Meter using PIC. https://www.hobby-elec.org/e_pic6_6.htm
and showing range on LEDs. you can add drive circuit and motors to the same microcontroller on this circuit. and program it.
HI, I CAN HELP U TO MAKE THIS.I WILL PROVIDE U FULL DOCUMENTATION ON THAT.
THINGS THAT U SHOULD KNOW
1) ABOUT PIC16F628 OR PIC16F84 (I LIKE PIC16F628)
2) ABOUT REFLECTIVE IR SENSORS OR ULTRASONIC RX AND TX
3) GEARED DC MOTORS
4) ABOUT PROGRAMMING LANGUAGES FOR PIC(PREFFERED ASM)
I U DONT KNOW ABOUT ANY ONE OF THEASE THINGS THEN PLEASE INFORM ME SO THAT I CAN HELP U.