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
  • BlocklyProp for your SumoBot WX

BlocklyProp for your SumoBot WX

Add Sound to your Program

There is a round piezospeaker built into the SumoBot WX board, right in front of the Propeller FLiP socket. It is connected to Propeller I/O pin P20.  You can make the speaker beep by using the Audio category’s frequency out block. Let’s update the program to beep the piezospeaker, and print two messages.

If there is a sticker on the speaker, you can remove it now!

  • Watch the animation below to modify your program, with these steps.
    • Right-click the Terminal print text block, and choose Duplicate.
    • Update the message in the top block to “Speaker test…”
    • Update the message in the bottom block to “Did you hear a beep?”
    • Click the Audio category and place a Frequency out block in the canvas, between the Terminal print text blocks.
    • In the Frequency out block, set the PIN to 20, set duration (ms) to 1000 and set frequency (Hz) to 3000.
    • Click and drag the blocks until they snap together.
    • Click on the project title and re-name it SumoBot Speaker Test.
    • Save the modified program.

This time, you will save your program in the Propeller FLiP EEPROM (Electrically Erasable Read Only Memory). 

  • Click Load and run (save code to EEPROM). You should hear a beep, and see both messages in the Terminal.

 

  • Now, unplug the USB cable from the FLiP module, and press the RST button on the SumoBot WX board to reset the Propeller chip.

Did you hear the beep again?  The code is now stored in the FLiP module and it will run every time you press the reset button.

 

 

 


Printer-friendly version
Connect, Power & Run
Prev
More to Explore
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress