Component: DC Motor (): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (8 intermediate revisions by 3 users not shown) | |||
| Line 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 72: | Line 66: | ||
''<span style="color:red;">No additional examples</span>'' | |||
==Macro reference== | ==Macro reference== | ||
===Break=== | ===Break=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Break''' | ||
|- | |- | ||
| colspan="2" | Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | | colspan="2" | Actively drives both ends of the motor by setting the pins according to the 'Brake Pattern' property. | ||
| Line 100: | Line 85: | ||
===Coast=== | ===Coast=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Coast''' | ||
|- | |- | ||
| colspan="2" | Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | | colspan="2" | Turn off power to the motor by setting the pins according to the 'Coast Pattern' property. | ||
| Line 114: | Line 99: | ||
===Disable=== | ===Disable=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Disable''' | ||
|- | |- | ||
| colspan="2" | Disable the motor output | | colspan="2" | Disable the motor output | ||
| Line 128: | Line 113: | ||
===Enable=== | ===Enable=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Enable''' | ||
|- | |- | ||
| colspan="2" | Enables the motor output | | colspan="2" | Enables the motor output | ||
| Line 142: | Line 127: | ||
===Forwards=== | ===Forwards=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Forwards''' | ||
|- | |- | ||
| colspan="2" | Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property. | | colspan="2" | Set the motor turning in the forwards direction by setting the pins according to the 'Reverse Pattern' property. | ||
| Line 161: | Line 146: | ||
===Reverse=== | ===Reverse=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Reverse''' | ||
|- | |- | ||
| colspan="2" | Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | | colspan="2" | Set the motor turning in the reverse direction by setting the pins according to the 'Reverse Pattern' property. | ||
| Line 181: | Line 166: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Control Type | ||
|- | |- | ||
|- | |- | ||
| Line 206: | Line 191: | ||
| colspan="2" | Decides how the motor outputs are enabled. | | colspan="2" | Decides how the motor outputs are enabled. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
|- | |- | ||
| Line 240: | Line 225: | ||
| colspan="2" | States of pins A and B required to stop the motor. | | colspan="2" | States of pins A and B required to stop the motor. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation Settings | ||
|- | |- | ||
|- | |- | ||
| Line 269: | Line 254: | ||
| colspan="2" | Which way the motor will rotate when the 'forwards' command is sent. | | colspan="2" | Which way the motor will rotate when the 'forwards' command is sent. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Linkage | ||
|- | |- | ||
|- | |- | ||
| Line 278: | 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 14:37, 13 July 2026
| Author | Matrix Ltd. |
| Version | 1.2 |
| Category |
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