Component: Gearbox (Mechatronics)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Mechatronics |
Contents
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 |
![]() |
Return |
![]() |
Stop |
Stops both motors | |
![]() |
Return |
![]() |
LEDOff |
Switches off a single LED on the front of the Formula Flowcode. | |
![]() |
LED |
![]() |
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. | |
![]() |
Switch |
![]() |
Return |
![]() |
SpinLeft |
Spins the formula flowcode on the spot in an anticlockwise direction as seen from above. | |
![]() |
Power |
![]() |
Return |
![]() |
Forward |
Drives both motors of the formula flowcode forwards with the power specified. | |
![]() |
Power |
![]() |
Return |
![]() |
ReadLineSensor |
Returns the digital value from the line sensor specified. | |
![]() |
Sensor |
![]() |
Return |
![]() |
SpinRight |
Spins the formula flowcode on the spot in a clockwise direction as seen from above. | |
![]() |
Power |
![]() |
Return |
![]() |
CheckIR |
Checks to see if a IR sensor is within the master threshold distance. | |
![]() |
Sensor |
![]() |
Return |
![]() |
ReadIRSensor |
Reads the analogue value from the specified IR distance sensor. | |
![]() |
Sensor |
![]() |
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 | |
![]() |
Return |
![]() |
Reverse |
Drives both motors of the formula flowcode backwards with the power specified. | |
![]() |
Power |
![]() |
Return |
![]() |
WaitForSwitch |
Waits for the specified switch to be pressed. | |
![]() |
Switch |
![]() |
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. | |
![]() |
LED_Byte |
![]() |
Return |
![]() |
Initialise |
Starts up the formula flowcode PWM for motor control and performs the wait for button press | |
![]() |
Return |