ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

PRO
Belgium
#57  

rr i just try post #55 and post #53 bolt doesn move the servo and disconnect the ezbv4

PRO
Belgium
#58  

batt are fully charged

sound files are 4 seconds each. took the command stop out. last little longer but disconnect ezbv4

#59  

It works for fine for me albeit I am using different sound files and a fresh battery...

You'll to write your own then because I don't know your set up so that's the best I can do... Like I said... check your battery

#60  

One last try... see if this works ... problem will be it will only play track 5 once until it sees an object...


setVolume(100)
:top
ControlCommand(Soundboard V4, Track_5)
repeatuntil(0)
$distance=GetPing(D20,D21) #check ping
if ($distance<50)
servo(D3,90)
ControlCommand("Soundboard v4", Stop)
sleep(25)
ControlCommand(Soundboard V4, Track_4)
sleep(4000) # change to what works best
ControlCommand("Soundboard v4", Stop)
sleep(25)
goto(top)
endif
servo(D3,50)
sleep(500)
servo(D3,130)
sleep(500)
endrepeatuntil
PRO
Belgium
#61  

rr

#you may need a sleep command here.i put one in and it doesn disconnect the, ezbv4.ok i will test further.thank you

#62  

Ok, work with that one then... the one I just in posted in post #61 probably will work, but it won't play track 5 continually...

#63  

@Nomad maybe a possible feature request is to be able to have tracks in the soundboard auto replay so you don't have the call it to play continually in a program repeatuntil or goto loop...... In your case track 5 is only 4 seconds long so having it auto replay would make what you want to do much easier... So this way you start track 5 (ping sound) and it plays over and over until you see an object that is detected with the ping ... Then track 4 plays... When the object is no longer in range your program starts track 5 again...

PRO
Belgium
#64  

rr

i jus found it the code do just that.am uploding a video. so one thing to be found is when he spot an object servo must stay , in the direction off the object