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
  • IR Remote Control with the S3

IR Remote Control with the S3

Advanced Remote Driving

In the last tutorial, you tested out a simple S3 driving program. In this tutorial, we will expand our remote control possibilities. By utilizing more buttons for more possible maneuvers you can fine-tune your robot’s motion.

Remember that if you haven’t recorded the IR Remote button code for a particular button, take a quick run through the main program in the Test the Receiver and Remote tutorial and write down your results.

 

Advanced Driving

  • Start a new program in BlocklyProp and snap together the Advanced Driving Code shown below:

The code you’ve written should drive the S3 (or control the LEDs and speaker) using buttons 1 – 9, and 0. The S3 will move (or activate a device) only while a particular button is pressed and should stop when it is released.

  • Save, compile, and load the program to EEPROM on your S3 and give this more advanced program a try. 

The list below reflects which button on your remote controls each motion or device. Note that these button maps are assigned assuming you’re using a Parallax Brightstar remote.

  • 1 – Turn Forward Left
  • 2 – Forward Straight
  • 3 – Turn Forward Right
  • 4 – Rotate CCW
  • 5 – Blink 3 LEDs
  • 6 – Rotate CW
  • 7 – Turn Backward Left
  • 8 – Backward Straight
  • 9 – Turn Backward Right
  • 0 – Play Ta Da! Sound

Does it work the way you thought it would and does it function properly? If not, do a little “debugging” of your code.

 

Your Turn

  • Modify the code so that the S3 continues to drive even when the button is not pressed, and make button 5 a stop driving function instead of flashing the LEDs.
  • Save, compile, and load the program to EEPROM.

Make sure it works the way you thought it would and functions correctly.  Did everything work as you expected? If not, find the errors and correct them.


Printer-friendly version
Simple Remote Driving
Prev
Multi-Directional Remote Driving Hack
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress