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
  • Upgrade Your cyber:bot with Feedback 360° Servos

Upgrade Your cyber:bot with Feedback 360° Servos

Script & Tests

Let’s start with a simple app, like forward_three_seconds from Forward and Backward in the Navigation with the cyber:bot chapter.  After following the four steps, the updated script might look like forward_three_seconds_for_fb360 (below).

  • Make sure there are five AA batteries in your cyber:bot robot’s battery pack and that it’s plugged into your cyber:bot board.
  • Connect the micro:bit in the cyber:bot to your computer with a USB cable.
  • Set the PWR switch to 0.

Example Script: forward_three_seconds_for_fb360

  • If you have not done so already, right-click the feedback_360_template.hex link below and choose Save As, then Open it with the micro:bit Python Editor editor.

feedback_360_template.hex

  • Enter the forward_three_seconds_for_fb360 script shown below.
  • Click Save, then click Send to micro:bit.
# forward_three_seconds_for_fb360

from cyberbot import *
from feedback360 import *           # <-- add

drive.connect()                     # <-- add

# bot(18).servo_speed(75)           # <-- comment Half speed forward
# bot(19).servo_speed(-75)          # <-- comment
drive.speed(37, 37)                 # <-- add

sleep(3000)                         # Wait three seconds
 
# bot(18).servo_speed(None)         # <-- comment Stop
# bot(19).servo_speed(None)         # <-- comment
drive.speed(0, 0)                   # <-- add

 

Tests

  • Disconnect the cyber:bot’s micro:bit from the USB cable.
  • Set it on the floor
  • Set the PWR switch to 2.
  • Verify that the cyber:bot travels forward for 3 seconds and then stops.  

 


Printer-friendly version
How to Update Scripts for Feedback 360° Servos
Prev
Try This: Understanding Options
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress