Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Tilt-Controlled Gripper with the cyber:bot Robot

Tilt-Controlled Gripper with the cyber:bot Robot

Put the Object Back

Try This: Put it Back

It is often a good idea to put things back where you got them when you are done with them! Let’s add a Button A feature to make the cyber:bot take the object and place it back where it started before you pressed Button B.

  • Set the cyber:bot board’s PWR switch to 0.
  • Set the project name to cyber_bot_gripper_forward_backward_object.
  • Make the one change and add all the lines as shown below.  
  • Make the same speed adjustments you did in the Tests section to straighten the cyber:bot’s forward and backward travel.
  • Click Save, and then click Send to micro:bit.
  • Unplug USB, set the cyber:bot on the floor, and set cyber:bot board’s PWR switch to 2.
  • Verify that Button B will make the cyber:bot bring an object forward and Button A will bring it back to the starting point.

 

Your Turn

Your Gripper-equipped cyber:bot is not limited to forward and backward motion!   With some modifications to the script, you can add any of the turns introduced in the Navigation with the cyber:bot chapter’s Left and Right Turns activity.

  • Try writing a script where the cyber:bot rolls forward, picks up an object, turns in place by 180°, then rolls forward again to set the object down near where it started.  

 

 


Printer-friendly version
How The Test Script Works
Prev
Tilt Controlled cyber:bot with Gripper Control
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress