Flower Power

You can use the Flower Power software to program your Flower robot via a simple, graphic, scripting language. No coding required! Flower Power is very similar in function to Express-O-Matic but includes a visualization of the Flower robot and a different set of pre-defined conditions.
To run Flower Power, click on "Launch Software" below. Note that you may get a security warning. Accept the digital signature in order to run the application.
Launch Software »
To download the TeRK source code, which includes the Flower Power program, click on the "Download Source Code" link below.
Related Recipes: |
Related Curricula: |
Related Software: |
Terminology
Expression
An expression is like a snap shot of the robot. It contains state information for the various outputs supported by the Qwerk board. It can contain state information for servos (e.g. a particular position), motors (e.g. a particular speed), digital outputs (e.g. on or off), LEDs (e.g. on, off, or blinking), and the speaker (e.g. a particular wav file to play). Use the Robot Universal Remote (RUR) to create new expressions.
Condition
A condition works as a trigger based on stimuli such as a sensor reading or time of day. When used in a sequence, a condition blocks the flow of the sequence until the particular condition is met. Then the sequence continues on to the next expression.
The two pre-defined conditions in Flower Power are "After 6PM" and "Flower Touched". "After 6PM" causes the sequence to wait until the time is later than 6PM. "Flower Touched" causes the sequence to wait until the IR sensors detect an object close to the center of the flower. Currently the only way to create new conditions is by modifing the Java source code. In the future we hope to create a graphical user interface to allow people to easily create new conditions.
Sequence
A sequence is made up of expressions and conditions put together one after the other. Sequences are a form of simple program for your robot. The Flower Power program allows you to create, play, and save sequences of expressions for your Flower robot.
Connecting to your robot
- Click Launch Software.
- Click the "Connect" button on the Sequence toolbar.
- Click the appropriate radio button to connect directly to your robot or to connect to your robot using the relay. (To learn more about these methods of connecting to your robot, click here: Establishing a Connection.
Creating a new sequence
- Under the File menu, click New Sequence.
- In the Expressions box, click and drag the first expression in the sequence to the Sequence box. Remember that you must first create new expressions using the RUR program.
- Click and drag the next expression in the sequence to the Sequence box.
- Repeat Step 3 until all expressions you want to use are in the Sequence box.
- To add a condition to the sequence, click on the condition and drag it on top of an expression already in the sequence.
Moving or deleting an expression in the sequence
You can change the order of the expressions in the sequence by clicking on an expression and dragging it to a new location. You can delete an expression from the sequence by clicking on the expression and clicking the "Delete Step" button.
Modifying properties of a sequence
Changing the speed of an expression
Changing the speed of an expression will change how fast the servos and motors in that expression move. The speed setting does not affect the saved expression, only the expression at a single step in the sequence.
- In the Sequence box, click the expression you want to modify.
- Click the drop-down box to change the speed to Fast, Medium, Slow, or Custom. Choosing Custom allows you to pick a point between 1 (very slow) and 1000 (fast) on the slider bar.
Setting the delay between expressions
You can also change how fast the sequence executes by changing the delay between individual expressions.
- Select an expression in the sequence.
- In the Wait Until box, type the number of seconds you want to lapse before the next expression begins.
Looping back to the beginning of the sequence
If you want the sequence to loop back to the beginning after the last expression, click the "Loop back to the beginning" box. When you play the sequence, it will continue playing in a loop until you stop it.
Playing and stopping the sequence
- To play the sequence, click Play in the Sequence box. (The Play button will be disabled until you have connected to a robot.)
- To stop the sequence, click Stop in the Sequence box.
Saving the sequence
Under the File menu, click Save Sequence or Save Sequence As.
Opening a saved sequence
Under the File menu, click Open Sequence.








Want to add a comment? Login or become a TeRK member now!