jawad28
24-04-2008, 21:52
hi
guys
i need some help? i am doing the project on ultrasonic car parking sensor,i have used a one sensor(srf005) and it seems to be working ok.i have used a following programme
Symbol soundport = 1
Symbol delaytime = w1
Symbol range = w1
Symbol trigport = 0
Symbol echoport = 1
Main:
pulsout trigport, 2
Pulsin echoport, 1, range
Pause 10
Sound soundport, (105, 20)
If range < 500 Then ne
Range = 500
ne:
Pause range
Goto main
now the problem is i want to add another sensor(srf005) it means i have to do some changes in the programming so it can activate both sensor same time and gives the ouput same time.i have used speaker as a output.could anyone please help me to do the programme,i am using PIC 16F88.
rgds:
jawad
guys
i need some help? i am doing the project on ultrasonic car parking sensor,i have used a one sensor(srf005) and it seems to be working ok.i have used a following programme
Symbol soundport = 1
Symbol delaytime = w1
Symbol range = w1
Symbol trigport = 0
Symbol echoport = 1
Main:
pulsout trigport, 2
Pulsin echoport, 1, range
Pause 10
Sound soundport, (105, 20)
If range < 500 Then ne
Range = 500
ne:
Pause range
Goto main
now the problem is i want to add another sensor(srf005) it means i have to do some changes in the programming so it can activate both sensor same time and gives the ouput same time.i have used speaker as a output.could anyone please help me to do the programme,i am using PIC 16F88.
rgds:
jawad