Jump to content

Component: Gearbox (Mechatronics)

From Flowcode Help
Revision as of 21:05, 16 November 2021 by Wiki bot (talk | contribs)
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

Rotate
 
[[File:]] - Angle
 
- VOID Return


Stop
Stops both motors 
- VOID Return


LEDOff
Switches off a single LED on the front of the Formula Flowcode. 
- BYTE LED
 
- VOID Return


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


ReadSwitch
Reads the value of one of the switches from the front of the Formula Flowcode. 
- BYTE Switch
 
- BYTE Return


SpinLeft
Spins the formula flowcode on the spot in an anticlockwise direction as seen from above. 
- BYTE Power
 
- VOID Return


Forward
Drives both motors of the formula flowcode forwards with the power specified. 
- BYTE Power
 
- VOID Return


ReadLineSensor
Returns the digital value from the line sensor specified. 
- BYTE Sensor
 
- BYTE Return


SpinRight
Spins the formula flowcode on the spot in a clockwise direction as seen from above. 
- BYTE Power
 
- VOID Return


CheckIR
Checks to see if a IR sensor is within the master threshold distance. 
- BYTE Sensor
 
- BYTE Return


ReadIRSensor
Reads the analogue value from the specified IR distance sensor. 
- BYTE Sensor
 
- UINT Return


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 
- VOID Return


Reverse
Drives both motors of the formula flowcode backwards with the power specified. 
- BYTE Power
 
- VOID Return


WaitForSwitch
Waits for the specified switch to be pressed. 
- BYTE Switch
 
- VOID Return


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


WriteLEDs
Allows control of all 8-LEDs on the front of the Formula Flowcode. 
- BYTE LED_Byte
 
- VOID Return


Initialise
Starts up the formula flowcode PWM for motor control and performs the wait for button press 
- VOID Return



Property reference

Properties
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.  
Width
 
Height
 
Depth
 
Connections
Input
Input connection for example a motor or other active component or primitive. 
Output
Output connection for example a primitive or a component such as a linear slide or gearbox. 
Input Offset
Distance along the shaft from the center of the input object to the center of the coupling. 
Output Offset
Distance along the shaft from the center of the coupling to the center of the output object. 
Output Translation X
Distance along the X axis from the center of the coupling to the center of the output object. 
Output Translation Y
Distance along the X axis from the center of the coupling to the center of the output object. 
Simulations