-MR. LOCKE'S WEBSITE-
  • Grade 6
    • Beepbox
    • Biteable
    • Code.org
    • CodeCombat
    • CodeHS
    • Digital Citizenship
    • FlipAnim
    • Ozaria
    • Photoshop
    • Piskel
    • Pivot/Stykz
    • Scratch
    • Sketchup
    • Studio
    • Typing
  • Grade 7
    • Beepbox
    • Biteable
    • Code.org
    • CodeCombat
    • CodeHS
    • Digital Citizenship
    • FlipAnim
    • Ozaria
    • Photoshop
    • Piskel
    • Pivot/Stykz
    • Scratch
    • Sketchup
    • Studio
    • Typing
  • Grade 8
    • Beepbox
    • Biteable
    • Code.org
    • CodeCombat
    • CodeHS
    • FlipAnim
    • Ozaria
    • Photoshop
    • Piskel
    • Pivot/Stykz
    • Scratch
    • Sketchup
    • STEM Careers
    • Studio
    • Typing

mBot

Picture


​STAGE 3
Lights


Your mBot also has LEDs (Light Emitting Diodes), and you can set them to different colours.

Program your mBot so that pushing the R key changes all of the lights to red, pushing the G key changes all of the lights to green, and pushing the B key changes all of the lights to blue. Also, make all the lights go off whenever the O key is pressed.

You will need to use the block below to accomplish this:
Picture
Extra Challenge (if you're up for it):
See if you can get your mBot to do an impression of a traffic light. When the 'T' key is pressed, the mBot's lights should turn green for 6 seconds, then amber for 3 seconds, and then red for 6 seconds. This pattern should then repeat over and over. You can use the values below to get the amber colour.
Picture

Picture
When you get your mBot's lights working as described above, you need to record a quick video on your video camera. At the beginning of the video, one of the group members will state what the mBot is supposed to do and then you will record it doing just that.

​Once you have successfully documented the wonderful and fantastic light show, you can move on to the next stage.
Next
Picture
Picture
email Mr. Locke
  • Grade 6
    • Beepbox
    • Biteable
    • Code.org
    • CodeCombat
    • CodeHS
    • Digital Citizenship
    • FlipAnim
    • Ozaria
    • Photoshop
    • Piskel
    • Pivot/Stykz
    • Scratch
    • Sketchup
    • Studio
    • Typing
  • Grade 7
    • Beepbox
    • Biteable
    • Code.org
    • CodeCombat
    • CodeHS
    • Digital Citizenship
    • FlipAnim
    • Ozaria
    • Photoshop
    • Piskel
    • Pivot/Stykz
    • Scratch
    • Sketchup
    • Studio
    • Typing
  • Grade 8
    • Beepbox
    • Biteable
    • Code.org
    • CodeCombat
    • CodeHS
    • FlipAnim
    • Ozaria
    • Photoshop
    • Piskel
    • Pivot/Stykz
    • Scratch
    • Sketchup
    • STEM Careers
    • Studio
    • Typing