View unanswered posts | View active topics It is currently Fri Dec 26, 2014 3:52 am






Reply to topic  [ 7 posts ] 
Sound for VEX Cortex? 
Author Message
Rookie

Joined: Wed Oct 19, 2011 11:29 am
Posts: 4
Post Sound for VEX Cortex?
Does anyone know how to produce sound on a VEX/Cortex system. I have found some examples, but they didn't work for me. Do you just plug a speaker into motor port 1? I can't find the directory where the.wav files are stored. Any ideas?

Thanks


Mon Nov 28, 2011 1:28 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: Sound for VEX Cortex?
Yes, you would need to plug a speaker into motor port 1.
EDIT: Sorry, I didn't read the cortex part. Even though it was part of the title.

_________________
sudo rm -rf /


Last edited by magicode on Tue Nov 29, 2011 2:05 pm, edited 1 time in total.



Mon Nov 28, 2011 4:27 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Sound for VEX Cortex?
Motor Port 1 is used on the VEX PIC, but the Cortex actually has a dedicated "SP" port at the end of the Digital bank.

VEX is releasing their own speaker relatively soon, but you can hook up a piezoelectric speaker to make use of the functionality.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Tue Nov 29, 2011 1:48 pm
Profile
Rookie

Joined: Wed Oct 19, 2011 11:29 am
Posts: 4
Post Re: Sound for VEX Cortex?
Thanks for telling me about the speaker output port. Where are the sound files stored? How can I add my own sound files? Where do you find information on this stuff? I have been searching with no luck. Thanks again.


Wed Nov 30, 2011 1:13 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Sound for VEX Cortex?
We'll be releasing documentation when VEX releases their official speaker. Currently there is no directory of sound files.

In ROBOTC, if you switch your Window > Menu Level to "Expert" you'll see a Sound category with the possible commands. The "PlaySound()" command allows you to play sounds predefined in the Cortex firmware - "soundBeepBeep, soundBlip, soundDownwardTones, soundException, soundFastUpwardTones, soundLowBuzz, soundLowBuzzShort, soundShortBlip, soundUpwardTones" are their names. The "PlayTone()" command allows you to specify a frequency and duration to play.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Wed Nov 30, 2011 5:15 pm
Profile
Rookie

Joined: Thu Feb 11, 2010 1:59 pm
Posts: 11
Post Re: Sound for VEX Cortex?
Can you tell me what pins to use for a simple two wire speaker?

Thanks, Bill


Fri Jan 06, 2012 12:01 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Sound for VEX Cortex?
I haven't tried any 2-wire speakers to know how well/if they'd work. Here's a link to the Cortex schematic that would let you use the appropriate ports, though: http://www.education.rec.ri.cmu.edu/pro ... ematic.pdf

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Jan 12, 2012 11:40 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.