机械制造者 Trailmakers

机械制造者 Trailmakers

评价数不足
Simple Servo Speed Controller
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
52.861 KB
2 月 3 日 下午 9:38
2 月 6 日 下午 10:25
2 项改动说明 ( 查看 )

订阅以下载
Simple Servo Speed Controller

描述
This controls the speed of a servo and the servo will reset to center without input.

The angle of the servo is controlled by the ouput not the input. If I come up with a fix besides using constant loop timers I will upload it. For now you must either set the output or the servo itself to max angle and use inputs for Forward/Reverse only.

(UPDATE: adjust blue block threshold to adjust freezing, see "Other Note" below.
To change min/max Speed of the servo Adjust scale of orange servos, you can also adjust min and maximum angle in the orange blocks by lowering maximum 1.00 and or raising minimum -1.00 angles, or You can split the outputs if you need to so you can use the same controller to control angle ouputs, example using comparison gates set at 0 using 2 blocks "greater than" and "less than" and then connecting each output to to its own aggregate block (set to "product") and connecting green output to both blocks. With this setup you can set 1 servo to different angles.

Controls and setup

Servo "HOLD POSITION" Must be off (Don't forget to disconnect servo from seat or change default controls)

< or > = White block = Speed Control (Adjust output for Response Rate Default = 0.20)
Space = White/Red block = Positive (Input Positive)
Left Shift = White/Red Block = Negative (Input Positive)
Yellow Block Toggle Steps on or off NOTE: Minimum Default = 0 this will freeze the servo (even with input) until speed is increased again. Adjust the minimum to your liking.
Green = Output (Adjust for angle NOTE: max angle effects speed)

You can delete the number displays if you like they are only there for reference.

Other Note: When the servo transitions from negative to positive (or vise versa) at 0 position there will be slight increase in speed or pause (very minimal) but again I am working on it I will upload if I come up with a better design.