Roll Pitch Yaw icon Roll Pitch Yaw Rotate and position camera or object with roll/pitch/yaw controls; save camera settings; bind or monitor a 3-value EZ-Script array for live rotation. Try it →

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

You could script it quite easily.


$pwm_target = 100 # Set for target speed
$pwm_start = 0 # Set for start speed
PWM(D0,$pwm_start)

:loop
IF(GetPWM(D0) < $pwm_target)
  PWM(D0,$pwm_start)
  $pwm_start= $pwm_start + 5 # Change 5 to required amount for speed of increase
ELSE
  Halt() # PWM at required level, stop script.
ENDIF
Sleep(10) # Change sleep to suit speed.
GOTO(loop)

Apologies if the code is a bit messy and not explained too well I'm strapped for time but it should give an idea (hopefully)

#2  

Ok, I understand how the code works. Now it's clear. Thanks;)

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

Or you can servospeed() command. It applies to PWM as well

for example


ServoSpeed(d0, 4)

PWM(d0, 5)

Sleep(3000) 

PWM(d0, 90)

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#4  

Even I learn something new from time to time, I did not know ServoSpeed() applied to PWM too, that's much easier:)