Asked
— Edited
Hello,
i have one ( i hope easy) question.
i have a pressure sensor.
Work fine on the ADC!
Now i have one problem.
If the value for the ADC port is under 180 the servo must stop ( hold his position)
my idea of a script :
:loop
$CurrVoltage = GetADC(ADC0)
if ($CurrVoltage <= 180)
servo (d0, "stop")
sleep(300)
endif
goto (loop)
But the command servo (d0, "stop") dont exist
So with command i can take what tells the servo he must stop and HOLD his position.
Thanx a lot for helping
AND FOR ALL A HAPPY NEW YEAR!
AND BIGGER ROBOTS NEXT YEAR!
Hi Richard!
Happy new year!
How i slow down the servo in DJ´s Script?
@Boris... Could you use the release command and a slow moving servo .... although releasing a servo means resetting servo speeds again.....
Hello Richard!
And from where the Servo/the variable knows to move to which position?
($pos, 180, 0, 15 )
Boris
EDIT:
Or work your script like a monitoring script (i am not near my Inmoov)
@Boris.... You give $pos any value you want for example...
Hi Richard,
i understand now!
I will try in 2-3 hours, then i am back!
Boris
PS. And then i tell you if it works!
Hello Richard,
sorry it not works. If the value for the ADC is under the servo release not HOLD the Position! So this means if the Hand will hold something it will fall down.
The servo must hold his postions!
The best way until now is still the way from DJ!
Boris
Boris, no one can give you the complete solution catered to your application. We can only lend a hand and provide the template for you to work from. It's up to you to learn from the examples we provide. Keep at it and it'll come together for you
Hello DJ!
Everything OK! I never was thinking to get a completer Robot!
Thats why i am asking! Do you know "Sesame Street"? Who not ask, will stay stupid!
Again Everything ok, you understand something wrong! Relax!
Boris