Coding and Robotics

Pro-Bots

What is the Pro-Bot?

Pro-Bot are the grown up version of the Bee-Bot and the latest in Logo technology. This race car designed bot allows students to enter commands via a set of arrow and number keys mounted on the back. Plan a route for the Pro-Bot and press the corresponding keypad controls then press GO. The Pro-Bot also allows repeat loops and has bumper and light sensors to take programming to the next level.

Image: State Library of Queensland (2016)

Challenge – Draw a Butterfly

Using the Pro-Bot with a pen inserted, program the Pro-Bot to draw the image of a butterfly like below

  • Each wing is 9 cms high and 3 cms wide
  • The body is 5 cms high and 4 cms wide
  • The neck is 1 cm long
  • Each side of the head is 2 cms
/

The LCD display lists the steps the Pro-Bot will take in order from top to bottom.

Forward and Back buttons will move the Pro-Bot in that direction. You can also enter a number for the amount of centimetres to move. Leaving this blank will move the Pro-Bot 20 centimetres.

Left and Right buttons will turn the Pro-Bot in that direction. As with Forward and Back, you can enter a number for the amount of degrees. A blank number will default to 90 degrees.

The Repeat function tells the Pro-Bot to repeat the following the number of times you enter. Don’t forget to press the ] button afterwards to tell the Pro-Bot what to stop repeating!

Solution

There are multiple ways this can be achieved with the Pro-Bot and the code below is only one way.

Starting at the top left corner of the left wing and facing right, the following code can be used:

// Left Wing
Fd 3
Rt
Fd 9
Rt
Fd 3
Rt
Fd 9
// Move to bottom of body
Rt
Fd 3
Rt
Fd 7
Lt
// Bottom of body
Fd 4
Rt
// Right Wing
Fd 2
Lt
Fd 3
Lt
Fd 9
Lt / // Right Wing Cont.
Fd 3
Lt
Fd 7
// Move to top of body
Bk 5
Rt
// Top of body
Fd 4
Bk 2
Rt
// Neck
Fd 1
// Head
Rt
Bk 1
Fd 2
Lt
Fd 2
Lt
Fd 2
Lt
Fd 2
Need further information?
(07) 4042 5200| plconnect.slq.qld.gov.au / / This guide is licensed under a Creative Commons Attribution 4.0 Australia licence. You are free to copy, communicate and adapt this work, so long as you attribute State Library of Queensland. For more information see
© SLQ 2016. Last updated Sept 2016 /