Continuous Servo
CONTINUOUS SERVO provides the interfaces for controlling a continuous servo motor.
Add Output Device
Item |
Description |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Continuous |
Functions for controlling continuous servo motors.
|
CE products: from conservo import *
TI-Nspire CX II: from ti_hub import *
|
|
|
The function to create the object is pasted from the menu.
var=continuous_servo("OUT 3")
Command: |
var=continuous_servo("OUT 3") |
---|---|
Command |
var=continuous_servo("OUT 3") |
Python |
TI Nspire CX II: from ti_hub import * from time import *
cs1=continuous_servo("OUT 3")
cs1.set_cw(100,5) sleep(5) cs1.set_ccw(100,5) |
|
CE products: from conservo import * from time import *
cs1=continuous_servo("OUT 3")
cs1.set_cw(100,5) sleep(5) cs1.set_ccw(100,5) |
Range: |
|
Describe: |
Creates an object for a continuous servo motor. The port is limited to OUT 3 because a servo motor needs 5V to operate that is only available on OUT 3. |
Result: |
|
Type or |
Control |
var.set_cw(speed,time)
Command: |
var.set_cw(speed,time) |
---|---|
Command |
var.set_cw(speed,time) |
Range: |
|
Describe: |
Turn the motor clockwise at the specified “speed” (0 – 100) for the specified time in seconds. |
Result: |
|
Type or |
Control |
var.set_ccw(speed,time)
Command: |
var.set_ccw(speed,time) |
---|---|
Command |
var.set_ccw(speed,time) |
Range: |
|
Describe: |
Turn the motor counter-clockwise at the specified “speed” (0 – 100) for the specified time in seconds. |
Result: |
|
Type or |
Control |
var.stop()
Command: |
var.stop() |
---|---|
Command |
var.stop() |
Range: |
|
Describe: |
Stops the motor. |
Result: |
|
Type or |
Control |