Component: Formula Flowcode (Robotics)
From Flowcode Help
(Redirected from Component: ID 9d5300ab 57ae 4483 8f18 04ec2007b406)
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 2.0 |
Category | Robotics |
Contents
Formula Flowcode component
A component to allow all the features of the Formula Flowcode robot to be investigated. Fully simulated component which can interact with simulated objects on the panel as well as control the real hardware.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
Importing from v5
The Formula Flowcode component in Flowcode v6 has a new Initialise macro which will need to be added to your program before any other calls to the component are made.
Line Following
Line following example using the Formula Flowcode, works with objects on the simulation panel and on the real hardware.
FF-Line
Maze Solving
Wall following example using the Formula Flowcode, works with a randomly generated maze on the simulation panel and on the real hardware.
FF-Maze
Downloadable macro reference
![]() |
PlayNote |
Outputs a single tone from the onboard speaker for the period specified | |
![]() |
Note |
![]() |
Delay_ms |
![]() |
Return |
![]() |
LEDOn |
Switches on a single LED on the front of the Formula Flowcode. | |
![]() |
LED |
![]() |
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. | |
![]() |
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. | |
![]() |
Left_Power |
Valid Range = -255 to 255 | |
![]() |
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. | |
![]() |
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 |