View unanswered posts | View active topics It is currently Wed Jul 30, 2014 9:20 am






Reply to topic  [ 3 posts ] 
Sound out procedure for VEX Cortex 
Author Message
Rookie

Joined: Fri Jul 08, 2011 11:38 am
Posts: 4
Post Sound out procedure for VEX Cortex
I am not able to find the songs.c example program in the Cortex RobotC package, nor am I able to find documentation for the correct #pragma statement to set Motor1 port for sound output. Also the GUI pragma generator in v 2.32 (8.31) Apr 6, 11 of ROBOTC does not seem to have a pull down value for setting the pragma value for sound out.

Can someone post a simple example for sound output, for example a simple PlayTone( , );

Thx!


Fri Jul 08, 2011 11:48 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 403
Post Re: Sound out procedure for VEX Cortex
Speakers get plugged into the "SP" Port on the Cortex, after the Digital ports. There's no configuration or pragma statements necessary - any sound commands in your program refer to the SP port.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Fri Jul 08, 2011 1:27 pm
Profile
Rookie

Joined: Fri Jul 08, 2011 11:38 am
Posts: 4
Post Re: Sound out procedure for VEX Cortex
Hi Jesse,

Thank you very much for the direction to the SP port, I see the audio coming out now. Is that documented anywhere, I know it is kind of obvious, except I went to this forum and the info I found seemed all to point me to using the motor 1 port?

Anyone have any recommendations for a simple amp circuit that will work with the SP port output? Maybe something using a LM386 might be a direction?

Thanks !

-- Dave


Fri Jul 08, 2011 9:45 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: denrya and 1 guest


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.