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?
Standard servo speed control Cricket / Circuit Playground Ex
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Samatronics
- Posts: 22
- Joined: Sat Mar 07, 2020 9:18 pm
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Standard servo speed control Cricket / Circuit Playgroun
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
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
- Samatronics
- Posts: 22
- Joined: Sat Mar 07, 2020 9:18 pm
Re: Standard servo speed control Cricket / Circuit Playgroun
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
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
Please be positive and constructive with your questions and comments.