Component: DC Motor (Mechatronics): Difference between revisions
Appearance
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (One intermediate revision by the same user not shown) | |||
| Line 168: | Line 168: | ||
|- | |- | ||
|- | |- | ||
| 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 187: | Line 187: | ||
| 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 221: | Line 221: | ||
| 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" | Software PWM Settings | ||
|- | |- | ||
|- | |- | ||
| Line 260: | Line 260: | ||
| colspan="2" | Decides what to do when output PWM output is low. | | colspan="2" | Decides what to do when output PWM output is low. | ||
|- | |- | ||
| 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 | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.2 |
| Category | Mechatronics |
DC Motor component
DC Motor that can be driven in one or both directions using digital output pins, PWM or HBRIDGE peripherals.
Version information
Library Version, Component Version, Date, Author, Info 2, 1.2, 13-11-24, BR, Altered property tooltips to make them more meaningful
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing how to drive the motor component by only using Enable and two port pins.
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 'Forwards Pattern' property. | |
| Duty | |
| Sets the motor power for PWM or H-Bridge outputs | |
| Return | |
GetSimAngle
| GetSimAngle | |
| Gets the angle of the simulated motor shaft in degrees. | |
| 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_DCMotor_2d.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DCMotor_2d.fcfx