|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Play sound file with FRC Control system?
Hi, i know this sounds crazy but, is there any way you could program a sound file into teleop and have it playback through the FRC Control system? this might not be legal but our team is taking our bot around to elementary and middle schools and we want them to hear more than "WHIRRRRRRRR" come from our bot.
Thanks in advance Chris Nettles Team 3556, GET SMART |
|
#2
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
Probably not directly, but using an external device could work.
A quick search on SparkFun, and you can find several serial controlable MP3 player/decoder boards for <$50. http://www.sparkfun.com/search/resul...&what=products |
|
#3
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
and would these have a way of pulling information from the cRIO or would a different communications/control confuguration have to take place alongside our robot radio?
|
|
#4
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
It should be possible, but could be a major PITA. Last May, I made a programmable milling play the song from portal, using labview to write gcode to drive one of the motors at varying speeds. If one of your motors seems to have a different pitch at different speeds, you might be able to use that to get the desired result. pm me if you want to see the code.
|
|
#5
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
Quote:
From the MP3 Trigger v2 page: Description: Created in collaboration with Jamie Robertson, the MP3 Trigger is quite possibly the most versatile, low-cost, low power embedded MP3 Player. The board has 18 external trigger pins that will directly trigger pre-selected MP3 tracks, and a full-duplex serial control port that provides full transport control, remote triggering for up to 256 tracks, and fast real-time volume control. The board plays the MP3 files directly from a FAT16 microSD flash card and supports 192Kbps stereo playback. There is also an on-board navigation switch for local access and playback of all MP3 tracks on the flash card. Datasheet NOTE: I have not used this or any similar devices, but it looks like it should work. |
|
#6
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
Quote:
![]() |
|
#7
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
Quote:
This is documented on page 3 of the datasheet I linked to above. If you require more control you can also control it via serial, also documented in the datasheet. |
|
#8
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
Quote:
1) can you control digital ouputs from the drivers station? 2)Which DIO wires would run to the trigger? |
|
#9
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
Quote:
Code:
DigitalOutput file0 = new DigitalOutput(1);
Joystick stick = new Joystick(1);
//...
public void teleopPeriodic() {
//...
if (stick.getRawButtons(1)){
file0.set(false);
}
else{
file0.set(true);
}
//...
}
}
|
|
#10
|
||||
|
||||
|
Re: Play sound file with FRC Control system?
well, i can dissect what i would need to do in labview from the java code you posted, Thanks!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|