Component: Gearbox (Mechatronics)

From Flowcode Help
Revision as of 21:05, 16 November 2021 by Wiki bot (talk | contribs)
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Mechatronics


Gearbox component

A simple component to couple together two rotating shafts via a gearbox. The gearbox can be used to scale the input rotational speed and optionally reverse the output direction.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

Fc9-comp-macro.png Rotate
 
[[File:]] - Angle
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Stop
Stops both motors 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png LEDOff
Switches off a single LED on the front of the Formula Flowcode. 
Fc9-u8-icon.png - BYTE LED
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ReadMic
Reads the current audio signal level from the on-board microphone. 
[[File:]] - Return


Fc9-comp-macro.png ReadSwitch
Reads the value of one of the switches from the front of the Formula Flowcode. 
Fc9-u8-icon.png - BYTE Switch
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png SpinLeft
Spins the formula flowcode on the spot in an anticlockwise direction as seen from above. 
Fc9-u8-icon.png - BYTE Power
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Forward
Drives both motors of the formula flowcode forwards with the power specified. 
Fc9-u8-icon.png - BYTE Power
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ReadLineSensor
Returns the digital value from the line sensor specified. 
Fc9-u8-icon.png - BYTE Sensor
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png SpinRight
Spins the formula flowcode on the spot in a clockwise direction as seen from above. 
Fc9-u8-icon.png - BYTE Power
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png CheckIR
Checks to see if a IR sensor is within the master threshold distance. 
Fc9-u8-icon.png - BYTE Sensor
 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ReadIRSensor
Reads the analogue value from the specified IR distance sensor. 
Fc9-u8-icon.png - BYTE Sensor
 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png SetMotors
Sets the speed and direction of the Formula Flowcode motors. 
[[File:]] - Left_Power
Valid Range = -255 to 255 
[[File:]] - Right_Power
Valid Range = -255 to 255 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Reverse
Drives both motors of the formula flowcode backwards with the power specified. 
Fc9-u8-icon.png - BYTE Power
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png WaitForSwitch
Waits for the specified switch to be pressed. 
Fc9-u8-icon.png - BYTE Switch
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png ReadLDR
Reads the current audio signal level from the on-board light sensor. 
[[File:]] - Return


Fc9-comp-macro.png WriteLEDs
Allows control of all 8-LEDs on the front of the Formula Flowcode. 
Fc9-u8-icon.png - BYTE LED_Byte
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png Initialise
Starts up the formula flowcode PWM for motor control and performs the wait for button press 
Fc9-void-icon.png - VOID Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-15-icon.png Gear Ratio
Sets the input to output gear ratio. For example a ratio of 2:1 would be 0.5, a ratio of 1:5 would be 5.0. Negative ratio values allow the input direction to be reversed.  
Fc9-type-15-icon.png Width
 
Fc9-type-15-icon.png Height
 
Fc9-type-15-icon.png Depth
 
Fc9-conn-icon.png Connections
Fc9-type-17-icon.png Input
Input connection for example a motor or other active component or primitive. 
Fc9-type-17-icon.png Output
Output connection for example a primitive or a component such as a linear slide or gearbox. 
Fc9-type-15-icon.png Input Offset
Distance along the shaft from the center of the input object to the center of the coupling. 
Fc9-type-15-icon.png Output Offset
Distance along the shaft from the center of the coupling to the center of the output object. 
Fc9-type-15-icon.png Output Translation X
Distance along the X axis from the center of the coupling to the center of the output object. 
Fc9-type-15-icon.png Output Translation Y
Distance along the X axis from the center of the coupling to the center of the output object. 
Fc9-conn-icon.png Simulations