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

Simple Remote Driving

Now that you have the basics of remote control down it’s time to learn how to use the remote to drive your S3. For this simple version, you will use the Channel -, Channel+, Volume -, Volume +, and the Mute buttons.

First, recall or retest to find the code sent for each of the Sony IR Remote buttons. Review the Test the Receiver and Remote tutorial if needed.

 

The Program

  • Begin a new project in BlocklyProp.

We’re going to use Channel+ to move forward, Channel- to move backward, the Volume- to rotate counterclockwise (CCW), the Volume+ to rotate clockwise (CW), and the Mute button to stop driving.  

  • Snap together blocks to create the code below.

  • Save, compile, and then load the program to EEPROM on your S3.

Now take your S3 for a little drive around. Does everything work as you expected? If not, find the mistakes in your code (a process called debugging) and correct them. Remember that you should have a direct line between the Sony IR Remote and the S3’s IR receiver, so you need to always be positioned more or less in front of the S3. That may mean running around a bit (or a lot), depending on the lighting of your room or how many of these remote S3’s are running at once.

Why would lighting and other robots make a difference? Some fluorescent lights (and even bright sunlight) can cause signal interference, sometimes preventing your receiver from responding correctly to your remote. In the case of other robots, any Sony-programmed remote can send a signal to your robot, meaning another student can control your robot by accident (or maybe on purpose) if their remote is pointed at your receiver.


Did You Know?

The terms “bug,” “debug,” and “debugging” are popularly attributed to Admiral Grace Hopper in the 1940s. Hopper was a pioneer of computer programming, inventing the first compiler for any computer programming language. She popularized the idea of machine-independent programming languages, which is what Blockly and BlocklyProp are.  While she was working on a Mark II Computer  at Harvard University, her associates discovered a moth stuck in a relay and thereby impeding operation, whereupon she remarked that they were “debugging” the system. Debugging is the process of finding and resolving of defects that prevent correct operation of computer software or a system.

Sources (Wikipedia): Debugging, and Admiral Grace Hopper


 

Your Turn

  • Add LED feedback, sound, or some other simple feature to the program above.

Be creative! Remember that you, as the programmer, are in charge.


Printer-friendly version
Testing the Receiver and Remote
Prev
Advanced Remote Driving
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress