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

Infrared Light Navigation for the cyber:bot

Curriculum

  • 1 Section
  • 11 Lessons
  • Lifetime
Expand all sectionsCollapse all sections
  • Infrared Light Navigation for the cyber:bot
    11
    • 1.0
      Infrared Light Signals
    • 1.1
      Build the IR Circuits
    • 1.2
      Test the IR Object Detectors
    • 1.3
      Check for IR Interference
    • 1.4
      Adjust the Detection Range
    • 1.5
      Series Resistance and Range
    • 1.6
      Navigate and Avoid Obstacles
    • 1.7
      Faster IR Navigation
    • 1.8
      Drop-off Detector
    • 1.9
      Simulate a Drop-off with Poster Board
    • 1.10
      Avoid Drop-offs

Faster IR Navigation

The style of pre-programmed maneuvers from the last activity were fine for whiskers, but are unnecessarily slow when using the IR detectors. With whiskers, the cyber:bot had to make contact and then back up to navigate around obstacles. With infrared, your cyber:bot will detect most obstacles before it runs into them, and can just find a clear path around the obstacle.

Increase the Sampling Rate to Avoid Collisions

As your cyber:bot navigates, it will execute a series of small turns to avoid an obstacle before it ever runs into it. With that approach, the cyber:bot never turns further than it has to, and it can neatly find its way around obstacles and successfully navigate more complex courses. After experimenting with this next project, you’ll likely agree that it’s a much better way for your cyber:bot to roam.

  • Enter and flash the project fast_IR_roaming, then test it with the same obstacles you used with the project roaming_with_IR. Is your cyber:bot roaming more efficiently?

How fast_IR_roaming works better

Though this project has a similar structure to roaming_with_IR, there are three key changes that improved performance:

  1. The pause block arguments have been drastically reduced from 250 ms to just 20 ms. This lets the cyber:bot roam much faster.
  2. The project removes the backwards function when only one IR LED detects something. Since the cyber:bot is no longer physically touching objects to detect them, it does not need to back up before turning.
  3. The project also performs a one-servo-forward pivot turn instead of rotating left and right using both servos.

Printer-friendly version
Navigate and Avoid Obstacles
Prev
Drop-off Detector
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2026 Parallax Learn • Built with GeneratePress