Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

Standard servo speed control Cricket / Circuit Playground Ex
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Standard servo speed control Cricket / Circuit Playground Ex

by Samatronics on Mon May 25, 2020 11:29 am

I have a Cricket with a CPX and a standard servo.
I have searched project videos and spent hours studying Makecode.
I did install the Cricket support in Makecode.
Please help me find a way to control servo speed. So far my servos will only change position and pause.
Is there an existing project with code that I can modify? Am I missing the instructions somewhere?

Samatronics
 
Posts: 21
Joined: Sat Mar 07, 2020 9:18 pm

Re: Standard servo speed control Cricket / Circuit Playgroun

by dastels on Mon May 25, 2020 12:28 pm

Essentially, that's what servos do: adjust to the angle specified by the PWM signal and hold there. How fast they move to the new position depends on the details of the servo (motor RPM and gearing).

The only way to "control its speed" is to break down it's movement, and move it incrementally (i.e. in small steps), pausing between increments. The longer you pause, the "slower" the servo rotates.

Dave

dastels
 
Posts: 2730
Joined: Tue Oct 20, 2015 3:22 pm

Re: Standard servo speed control Cricket / Circuit Playgroun

by Samatronics on Mon May 25, 2020 4:48 pm

Thank you! I guess I will spend a lot of time in Makecode entering tiny pauses and incremental moves.
I did not know how good I had it with fright ideas dmx servo controllers.
Please take a look at free Director. Perhaps some day Adafruit will incorporate this type of grid control.
Instantly draw grid lines to move servos at any speed and direction. They also have pre written and modifiable servo effects grids.
My Samatronics stage shows uses Director.
https://www.frightideas.com/director/software

Samatronics
 
Posts: 21
Joined: Sat Mar 07, 2020 9:18 pm

Please be positive and constructive with your questions and comments.