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
  • Cybersecurity: Navigation Control from a Keyboard

Cybersecurity: Navigation Control from a Keyboard

Tethered Terminal Control project

This is a simple tethered application where you type in left and right wheel speeds, and run time in milliseconds, into a terminal. When you press Enter, your text gets parsed and executed by the micro:bit, which then makes the cyber:bot execute the maneuver.

Example Project: terminal_controlled_bot_tethered_intro

  • Make sure the cyber:bot’s batteries are connected, and its 3-position switch is set to 2.
  • Open a browser with makecode.microbit.org and add the cyber:bot extension to your project.
  • Enter this project as terminal_controlled_bot_tethered_intro. 
  • Flash the project into the micro:bit.

Example Project: terminal_controlled_bot_tethered_intro

Since your cyber:bot is currently tethered, it’s best to use low speeds and short run times. Otherwise, your cyber:bot might try to roll beyond the tether length. In other words, it’ll try to unplug itself from the USB cable, or maybe roll off the table.

  • Open a new browser and navigate to Google Chrome Labs Serial Terminal to open the terminal, press connect, and choose your micro:bit. 
  • Make sure you have the local echo option checked. Click in the terminal and type 25 in response to the Enter right speed: prompt, then press Enter.
  • Type 25 in response to the Enter left speed: prompt, then press Enter.
  • Type 750 in response to the Enter ms to run: prompt, and press Enter.
  • Verify that your cyber:bot rolled forward for about ¾ of a second.
  • Next, try -25, -25, and 750. Did it roll backwards?
  • Now, try 25, -25, 750. Did it pivot to the right?
  • Try 25, 10, 750 for a curving motion.
  • Can you make it turn in place left and right?
  • Try causing an exception by typing non-digits in response to one of the prompts. 

For example, what happens if you type abc and press enter? You will have to press/release the reset button to restart the app. 


Printer-friendly version
Terminal Control — Start Tethered
Prev
How Tethered Terminal Control Works
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress