user68941: I am attempting to play a wav file from an SD card using a Teensy 3.5. I am using this buzzer and I have the following code currently:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioPlaySdWav           playSdWav1;     //xy=557,157
AudioOutputPWM           pwm1;           //xy=889,184
AudioConnection          patchCord1(playSdWav1, 0, pwm1, 0);
AudioConnection          patchCord2(playSdWav1, 1, pwm1, 0);
// GUItool: end automatically generated code

void setup() {
  // put your setup code here, to run once:
  Serial.begin(4800);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Play");
  playSdWav1.play("sound.wav");
  delay(100);
  while (playSdWav1.isPlaying()) {
    delay (100);
  }
}

I don't know which pin is supposed to be outputting the PWM signal. I tried searching "patchCord1" to see what the parameters for it are, but was unsuccessful. The code was generated by The Audio System Design Tool.
As for the hardware configuration, I am attempting to wire the I/O pin to various PWM pins (to check for output) with no success. I have GND to Analog Ground and VCC to 3.3V (250 mA max). This is according to this diagram.
Which PIN is the Teensy supposed to output the pulses to?
Edit:
I can get the buzzer to work by using manual PWM (analogWrite), so I know that it functions.

user50238: The documentation implies you have to combine pins 3 and 4.
Here is a circuit diagram:
https://www.pjrc.com/teensy/gui/img/pwmdualcircuit.jpg

Source:
https://www.pjrc.com/teensy/gui/?info=AudioOutputPWM

68941: <p>I am attempting to play a wav file from an SD card using a Teensy 3.5. I am using <a href="https://rads.stackoverflow.com/amzn/click/com/B085XQM69Z" rel="nofollow noreferrer" rel="nofollow noreferrer">this buzzer</a> and I have the following code currently:</p>
<pre><code>#include &lt;Audio.h&gt;
#include &lt;Wire.h&gt;
#include &lt;SPI.h&gt;
#include &lt;SD.h&gt;
#include &lt;SerialFlash.h&gt;

// GUItool: begin automatically generated code
AudioPlaySdWav           playSdWav1;     //xy=557,157
AudioOutputPWM           pwm1;           //xy=889,184
AudioConnection          patchCord1(playSdWav1, 0, pwm1, 0);
AudioConnection          patchCord2(playSdWav1, 1, pwm1, 0);
// GUItool: end automatically generated code

void setup() {
  // put your setup code here, to run once:
  Serial.begin(4800);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println(&quot;Play&quot;);
  playSdWav1.play(&quot;sound.wav&quot;);
  delay(100);
  while (playSdWav1.isPlaying()) {
    delay (100);
  }
}
</code></pre>
<p>I don't know which pin is supposed to be outputting the PWM signal. I tried searching &quot;patchCord1&quot; to see what the parameters for it are, but was unsuccessful. The code was generated by <a href="https://www.pjrc.com/teensy/gui/index.html" rel="nofollow noreferrer">The Audio System Design Tool.</a></p>
<p>As for the hardware configuration, I am attempting to wire the <code>I/O</code> pin to various PWM pins (to check for output) with no success. I have <code>GND</code> to Analog Ground and <code>VCC</code> to 3.3V (250 mA max). This is according to <a href="https://cdn-shop.adafruit.com/970x728/3267-04.jpg" rel="nofollow noreferrer">this diagram</a>.</p>
<p>Which PIN is the Teensy supposed to output the pulses to?</p>
<p>Edit:</p>
<p>I can get the buzzer to work by using manual PWM (analogWrite), so I know that it functions.</p>
 50238: <p>The documentation implies you have to combine pins 3 and 4.</p>
<p>Here is a circuit diagram:</p>
<p><a href="https://www.pjrc.com/teensy/gui/img/pwmdualcircuit.jpg" rel="nofollow noreferrer">https://www.pjrc.com/teensy/gui/img/pwmdualcircuit.jpg</a></p>
<p><a href="https://i.stack.imgur.com/41zMc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/41zMc.jpg" alt="enter image description here" /></a></p>
<p>Source:</p>
<p><a href="https://www.pjrc.com/teensy/gui/?info=AudioOutputPWM" rel="nofollow noreferrer">https://www.pjrc.com/teensy/gui/?info=AudioOutputPWM</a></p>
