Difference between revisions of "Component: DC Motor ()"
From Flowcode Help
Jump to navigationJump to searchLine 14: | Line 14: | ||
==DC Motor component== | ==DC Motor component== | ||
DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals. | DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Detailed description== | ==Detailed description== | ||
Line 269: | Line 263: | ||
| colspan="2" | An object or group to link the motor to - the object will move along with the motor. | | colspan="2" | An object or group to link the motor to - the object will move along with the motor. | ||
|} | |} | ||
+ | |||
+ | ==Component Source Code== | ||
+ | |||
+ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Motor_with_reverse.fcfx FC_Comp_Source_Motor_with_reverse.fcfx] | ||
+ | |||
+ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Motor_with_reverse.fcfx FC_Comp_Source_Motor_with_reverse.fcfx] |
Latest revision as of 11:42, 26 November 2024
Author | Matrix Ltd. |
Version | 1.2 |
Category |
Contents
DC Motor component
DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Break
![]() |
Break |
Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | |
![]() |
Return |
Coast
![]() |
Coast |
Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | |
![]() |
Return |
Disable
![]() |
Disable |
Disable the motor output | |
![]() |
Return |
Enable
![]() |
Enable |
Enables the motor output | |
![]() |
Return |
Forwards
![]() |
Forwards |
Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property. | |
![]() |
Duty |
Sets the motor power for PWM or H-Bridge outputs | |
![]() |
Return |
Reverse
![]() |
Reverse |
Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | |
![]() |
Duty |
Sets the motor power for PWM or H-Bridge outputs | |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Motor_with_reverse.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Motor_with_reverse.fcfx