Component: Servo Motor (Tower Pro 9g) ()

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.1
Category


Servo Motor (Tower Pro 9g) component

Small size 9g servo motor suitable for control by the 'Servo Controller' component. Use the 'Link to...' property to attach other objects to the rotor for emulating mechanical systems. Send a virtual PWM signal to the servo by selecting it as a target of the 'Servo Controller' component.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Micro_Servo_9G.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Micro_Servo_9G.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Please note that the servo motor template and child components require the Servo Controller component to control them.


Controlling a servo with an analogue input

This example reads the value of the analogue potentiometer and uses this to set the position of the servo motor. FC6 Icon.png Servo Example 1 The Servo controller is linked to the standard servo component but this could be linked to any object on the panel.

ServoLink.jpg


Creating a multi-axis actuator using servo motors

This example links two servo motors together using panel primitive objects and groups. FC6 Icon.png Servo Example 2 The Servo controller can handle up to 8 motors and is used to control both of the standard servo components on the panel.

LinkedServo.jpg






Macro reference

Property reference

Fc9-prop-icon.png Properties
Fc9-type-17-icon.png Link To...
Select a panel object here to connect it 'mechanically' to the servo's actuator. The selected object will now be moved whenever the servo position changes. NB) To move multiple objects, first group the objects, and then select the group. 
Fc9-type-7-icon.png Reverse Output
Some manufacturers motors may rotate in different ways to others. Changing this property allows you to flip the direction of the motor. 
Fc9-type-16-icon.png Movement Type