Help with ping sensor
Robe
Posts: 13
I am trying to run four pings, with my bobat for navegation but
my servos speeds·slow down.· from full speed to slow
could it be batery pawer or code.· if i use only two ping runs ok
all pings are conected to BS2 .
······················ could anyone helpme,·I appreceate the help.
·
·
my servos speeds·slow down.· from full speed to slow
could it be batery pawer or code.· if i use only two ping runs ok
all pings are conected to BS2 .
······················ could anyone helpme,·I appreceate the help.
·
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
when you say round robin fashion how do i do that.
·
you send me a image to knock off half a volt fron a 1.5 surce
for a pir sensor
a 10K resistor coming from the PIR sensor to the BS2 then in line another resistor 4.7K
i think it's end is conected to groun is it. but coneted to the PIR ground or the BS2 I not shure
· pingNum = pingNum + 1 // 4
This will keep the value of "pingNum" between 0 and 3.· If you wire your sensors to continguous pins you can call the first PingBase and then do something like this:
Get_Sonar:
· thePing = PingBase + pingNum
· LOW·thePing
· PULSOUT thePing, Trigger
· PULSIN· thePing, IsHigh, rawDist(pingNum)
· rawDist(pingNum) = rawDist(pingNum) */ Scale
· rawDist(pingNum) = rawDist(pingNum) / 2
· RETURN
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
" If you wire your sensors to continguous pins you can call the first
( PingBase ) and then do something like this:"
(Is this where you would put " PingBase" pin and # or is it "ThePing" pin #)
Thank You for all of your help in this matter
samsam
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards
Manuel C. Reinhard
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards
Manuel C. Reinhard
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax