Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 11 of 11

Thread: teensy 3.2 raw audio file upload

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    5

    teensy 3.2 raw audio file upload

    (please explain everything detailed cuz this is my first project) Hello, I'm making a teensy lightsaber. I'm strugling to put the audio files into teensy. heres the code that I found from the web: https://raw.githubusercontent.com/il...htsaber_v1.ino. Do I have to load some ceratain files??? do you have any ideas?

  2. #2
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,535
    Basically, it is much simpler to load the audio files onto a SD card and to insert the latter into the slot on the audio add-on board.

  3. #3
    Junior Member
    Join Date
    Feb 2018
    Posts
    5
    Can I do it without the audio board? is there any way?

  4. #4
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,155
    That code requires that at least 5 raw audio sounds have been loaded into the prop shield's onboard ram chip.
    Code:
    saberswing1.raw
    saberon.raw
    saberoff.raw
    HUM2.RAW
    saberswingX.raw
    I have done a brief search for them and can't find them. You will have to dig around until you find them or can replace them yourself.

    Pete

  5. #5
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,269
    Quote Originally Posted by el_supremo View Post
    That code requires that at least 5 raw audio sounds have been loaded into the prop shield's onboard ram chip.
    Code:
    saberswing1.raw
    saberon.raw
    saberoff.raw
    HUM2.RAW
    saberswingX.raw
    I have done a brief search for them and can't find them. You will have to dig around until you find them or can replace them yourself.

    Pete
    Note, you need to convert these names to 8.3 MSDOS filenames to use them with the prop shield.

    You would generally need to use TeensyTransfer to upload these files:


    Here is another project for making a Teensy light saber:

  6. #6
    Junior Member
    Join Date
    Feb 2018
    Posts
    5
    what are MSDOS filenames and how teensytransfer works. If I find similar sounds, can I do the code with them?

  7. #7
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,269
    Quote Originally Posted by Steelforce View Post
    what are MSDOS filenames and how teensytransfer works. If I find similar sounds, can I do the code with them?
    MSDOS names have 8 uppercase/numeric letters, a period, and 3 uppercase/numeric letter suffix. https://en.wikipedia.org/wiki/8.3_filename

    Here are some links:

  8. #8
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,155
    If the code you linked works as claimed, and you have the right hardware and you wired it up correctly and you find suitable sound files and load them into flash, yes it'll work.

    Pete

  9. #9
    Junior Member
    Join Date
    Feb 2018
    Posts
    5
    I found some good replacements for the sounds, so how do I put them into the flash?

  10. #10
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,535
    Using the TeensyTransfer tool which MichaelMeissner linked above.

  11. #11
    Junior Member
    Join Date
    Feb 2018
    Posts
    5
    I have it but explain how I do it (You see i'ts my first project ever.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •