NEW! VEX Speaker module and ROBOTC Support

No comments

Got a new VEX Speaker?

VEX Robotics just announced (and released) their new Speaker accessory for the VEX Cortex Microcontroller. This cool new speaker will allow you to play tones, sounds and wave (.wav) sound files from your VEX Cortex. The new speaker plugs into the “SP” port on the Cortex – check near the bottom of the sensor bank of ports. The speaker even has a built in volume control:

Check out our cool unboxing photos below, exclusive from the VEX World Championships!

[scrollGallery id=5]

The awesome thing with this new speaker accessory is that ROBOTC already has support for this new speaker built into version 3.08! For more information on how to use the speaker, check the ROBOTC help documentation built into ROBOTC, or look at our new (under construction) ROBOTC code wiki!

Wiki Link:

To help you get started, here are two sample programs to try out your new VEX speaker attachment.

Sound Test:

task main()
//Basic "Play Sound" commands

//Intelligent "Play Sound" command
//Delay until sound is done playing

//Play a tone:
//First Parameter: Frequence in Hz
//Second Parameter: Length to play in 1/100th of a seconds (50 = .5 seconds)
PlayTone(440, 50);

//Play a Sound File (need to use the File Management to Upload First)

In addition, we also have some sample sound files that you can try out. Lastly, we also have a set of PowerPoint slides that go in-depth on how to use the new sound functions as well.

Sample Program Downloads:

Powerpoint explaining the VEX Speaker:

Sound Files:

Written by Vu Nguyen

April 20th, 2012 at 11:55 pm

Posted in Cortex,General News,VEX