Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Badbidaman

Search: Search took 0.00 seconds.

  1. This is what I'm seeing on the serial monitor: ...

    This is what I'm seeing on the serial monitor:
    https://youtu.be/aHusOgid8Dc

    Here's the code:


    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
  2. Sorry to bother again with this, I'm new to all...

    Sorry to bother again with this, I'm new to all the electronics stuff!

    This is what I have connected in terms of resistors/diodes (the exact analog pins have changed, but this schematic was just...
  3. Ill try changing resistors later today when I...

    Ill try changing resistors later today when I get back home! Thanks!!
  4. https://forum.pjrc.com/threads/48308-test-code-for...

    https://forum.pjrc.com/threads/48308-test-code-for-piezo

    I found the original forum convo I looked at to figure out the resistor/diode combination I used.

    From that link: Id like to...
  5. Wow, you were totally right, I added the...

    Wow, you were totally right, I added the Serial.print() lines and it does keep restarting the file. So I just have to figure out how to make it only play when the piezo gets hit? Sorry, I can...
  6. It does give me this message when the code...

    It does give me this message when the code complies, not sure if that's the issue:

    Beata_Teensy: In function 'void loop()':
    Beata_Teensy:85: warning: variable 'volume' set but not used
    float...
  7. Just tried it, still no sound.

    Just tried it, still no sound.
  8. Hi Paul, thanks for that quick reply! I have...

    Hi Paul, thanks for that quick reply!

    I have checked the files using the WavFilePlayer example, they do work there and I can hear them fine, and the WAV files are 16 bit. But when I use my code...
  9. Help to figure out why .WAV files aren't playing

    Hello! I'm loving the Teensy, I have the 4.1 with an audio shield. I've written a code for a drum machine with 2 piezo pickups (rightPiezo for bass sounds, leftPiezo for snare sounds). Basically I...
Results 1 to 9 of 9