Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

line follower with obstacle avoidance using a PIC18f252

Status
Not open for further replies.

waleedkk

Newbie level 5
Joined
Mar 25, 2011
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,342
hi im using a pic18f252 for obstacle avoidance and line following...
however i havent been able to sort out my ultrasonic programming bit and i do hav to vary my speed as well...can any1 help me with the programming bit of it?
thanx.
 

basically im using a srf04.....and i want it to detect the obstacle on a longer distance so whn it does detect it ,,, it slows down before stopping... i cant get my head around with the programming bit of it...i need to send out a pulse and detect and turn around...
 

yeah i hav the data sheet...and read the specs of this..
basically im actually gonna take all what i've done and have..and put it together and publish it..
coz building this ultra sonic the way according to ur post is way too much detailed and deep for a line following robot...

this is the last warning to you on using sms kind of typing in the forum...

you cannot be sucha lazy person who cant even type the words properly...

all your posts will be deleted if continued further...
 

SRF04 is quite easy to interface with µC. Fortunately, you don't need to read every thing. Two pins are for Vcc and GND(as usual) and one for input(Trigger) and other is the output(echo)..
Transmit a trigger and start timer and let it increment until you receive the echo.... Then calculate the distance...using S=V÷t... or better calibrate it to your self... because, actual distance will be slightly less then calculated with this formula... and perhaps can be neglected for your application...
It seems that you better understand timer operation of PIC18F242... Then you'll see some light...

Waqas Rafiq
 
i did all what was instructed and was quite helpfull to read into them and its understanding.....is there anyway using a LCD i could display my speed , time travel ,distance covered????
thank you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top