Difference between revisions of "Component: DC Motor (Half Bridge) ()"

From Flowcode Help
Jump to navigationJump to search
Line 17: Line 17:
 
==Component Source Code==
 
==Component Source Code==
  
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Motor_simple.fcfx FC_Comp_Source_Motor_simple.fcfx]
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/Motor_simple.fcfx FC_Comp_Source_temp/Motor_simple.fcfx]
  
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Motor_simple.fcfx FC_Comp_Source_Motor_simple.fcfx]
+
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/Motor_simple.fcfx FC_Comp_Source_temp/Motor_simple.fcfx]
  
 
==Detailed description==
 
==Detailed description==
Line 58: Line 58:
 
Simple example showing how to drive the motor components and how to create sub assemblies attached to the motor output shafts in the simulation panels.
 
Simple example showing how to drive the motor components and how to create sub assemblies attached to the motor output shafts in the simulation panels.
 
{{Fcfile|Motors.fcfx|Motors}}
 
{{Fcfile|Motors.fcfx|Motors}}
 +
 +
  
  
Line 65: Line 67:
 
==Macro reference==
 
==Macro reference==
  
===Stop===
+
===Start===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Stop'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Start'''
 
|-
 
|-
| colspan="2" | Turn off power to the motor by turning off its pin. 
+
| colspan="2" | Set the motor running by turning on its pin. 
 
|-
 
|-
 
|-
 
|-
Line 79: Line 81:
  
  
===Start===
+
===Stop===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Start'''
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Stop'''
 
|-
 
|-
| colspan="2" | Set the motor running by turning on its pin. 
+
| colspan="2" | Turn off power to the motor by turning off its pin. 
 
|-
 
|-
 
|-
 
|-

Revision as of 12:02, 3 February 2023

Author Matrix Ltd.
Version 1.1
Category


DC Motor (Half Bridge) component

DC Motor that can be driven in a single direction using digital output pin.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_temp/Motor_simple.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_temp/Motor_simple.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Simple example showing how to drive the motor components and how to create sub assemblies attached to the motor output shafts in the simulation panels. FC6 Icon.png Motors




Macro reference

Start

Fc9-comp-macro.png Start
Set the motor running by turning on its pin. 
Fc9-void-icon.png - VOID Return


Stop

Fc9-comp-macro.png Stop
Turn off power to the motor by turning off its pin. 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-5-icon.png Pin
 
Fc9-type-16-icon.png Active State
 
Fc9-conn-icon.png Motor Settings
Fc9-type-16-icon.png Direction
 
Fc9-type-15-icon.png Speed
Speed of the motor when turned on.  
Fc9-type-15-icon.png Acceleration
Speed change per second when the motor us powered. Set to zero for instantaneous speed changes.  
Fc9-type-15-icon.png Deceleration
Speed change per second when the motor is coasting with no power. Set to zero for instantaneous speed changes. 
Fc9-type-7-icon.png Show Actuator
When activated, an actuator will appear so that the animation can be seen more easily. 
Fc9-conn-icon.png Linkage
Fc9-type-17-icon.png Target Object
An object or group to link the motor to - the object will move along with the motor.