NXT Tips

ElijahLofgren

I follow Jesus Christ, enjoy helping people, and like making websites. Who is Jesus?

Jesus gives me overflowing hope, peace, and joy in this short life of mine. You can have it too! :)

My life mission: "Whatever you do, do it all for the glory of God." - 1 Corinthians 10:31

You are here: Home » NXT Tips

NXT Tips

Contents

How To Play a WAV File

Modified: 2007-04-12 13:09:26

Increase the Volume on your NXT

  1. Turn your NXT on
  2. Press the right arrow until "Settings" appears
  3. Hit the Orange Square button.
  4. Press the right arrow until "Volume" appears
  5. Hit the Orange Square button.
  6. Press the right arrow until "4" appears at the top of the screen
  7. Hit the Orange Square button.

Note: Even then, the sound really isn't too loud, but at least you can hear it.

Convert the WAV File to RSO
  1. Download Wav2Rso (direct download of Wav2Rso)
  2. Extract the wav2rso.zip file
  3. Run the wav2rso.exe program
  4. Click the "Select Files..." button
  5. Choose your WAV file
  6. Click the "Convert" button.
  7. The new RSO file will now appear in the same directory as the wav2rso.exe program:

    wav2rso
  1. Download Bricx Command Center (a href="http://bricxcc.sourceforge.net/test_release.zip>direct download link of latest BricxCC)
  2. Extract the text_release.zip file
  3. Run the BricxCC.exe program
  4. Under Port choose "USB0::0X0694::0X0002::0016530279AF::RAW" (this will probably be different for your PC) then choose "NXT" under "Brick Type":

    BricxCC
  5. From the Tools Menu choose NXT Explorer: NXT Explorer
  6. Now just drag and drop your RSO file from your PC files on the right onto the NXT files in the left pane:

    NXT Explorer
Play the RSO File using your Robolab Program
  1. Create a new VI
  2. Drop the NXT Play Sound File block into your program and wire it up.
  3. Right click on the "Sound File Name" input on the block and choose "Create -> Constant"
  4. Type the name of your RSO file in the blank:

    play rso sound file

Note: It seems that some sound files just don't work. this hello.wav worked. But Please Standby.wav does not work Hope this helps some people.

Comments

Comments? Questions? What do you think?

Add A Comment

Type in the letters/numbers in the picture below (spam prevention measure):

4 + 2 =
Your Name(*):
Comment(*):

Current Comments

  • On April 22, 2007, 9:54 pm Elijah Lofgren said...

    Hi Stephen,

    Thanks for the tips! I'd really wondered why certain ones just wouldn't work.

    - Elijah

  • On April 22, 2007, 8:15 pm Stephen Camp said...

    You can download a standalone version of the NeXT Explorer at http://bricxcc.sourceforge.net/utilities.html

    Also, for sound files to work: Mine only worked when I had wav2rso set to do no resampling (from the options on the left) and when my files were 8-bit mono. That meant I had to know what the sampling rate of my wav file was and set the option box accordingly. I found I got decent quality and small file size at 11.025 KHz (one of the conversion options in the Windows Sound Recorder), and thus a sampling rate setting in the box of 11025.

Last Modified: July 1, 2008 09:50 PM

Back to Top

Previous page: TestPrep

Next page: Java Tips