您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

41 行
1.9KB

  1. <h3>Summary</h3>
  2. <p>Transmit audio using Teensy 3.1's PWM pins. Two pins are
  3. used for coarse and fine pulses, to be combined by scaled
  4. resistors.</p>
  5. <h3>Audio Connections</h3>
  6. <table class=doc align=center cellpadding=3>
  7. <tr class=top><th>Port</th><th>Purpose</th></tr>
  8. <tr class=odd><td align=center>In 0</td><td>Audio Channel</td></tr>
  9. </table>
  10. <h3>Functions</h3>
  11. <p>This object has no functions to call from the Arduino sketch. It
  12. simply streams data from the its input port to the PWM pins.</p>
  13. <h3>Hardware</h3>
  14. <p>The following circuit is recommended.</p>
  15. <p align=center><img src="img/pwmdualcircuit.jpg"></p>
  16. <p>Signal range is approx 1.55 Vp-p.</p>
  17. <p>These resistor values assume approx 20 ohms output impedance
  18. on the digital pins. The 127K resistor may be adjusted or
  19. trimmed for variation in output drive and tolerance on the
  20. 475 ohm resistor.</p>
  21. <p>A plastic film (Polypropylene, Polyethylene, Polyester, etc) or
  22. C0G/NPO ceramic capacitor should be used for filtering. Low
  23. quality ceramic (X7R, Y5V, Z5U, etc) can cause signal distortion.</p>
  24. <h3>Examples</h3>
  25. <p class=exam>File &gt; Examples &gt; Audio &gt; HardwareTesting &gt; PassThroughMono
  26. </p>
  27. <h3>Notes</h3>
  28. <p>This object only works properly when Tools > CPU_Speed is set to
  29. 48 or 96 MHz. Other speeds aren't supported and will likely fail
  30. in strange ways.</p>
  31. <p>The PWM carrier frequency is 88.2 kHz. The suggested circuit
  32. will only slightly filter the carrier. Extra filtering will be
  33. required for a clean signal without the ultrasonic PWM carrier.
  34. </p>
  35. <p>Analog signals created by filtering PWM waveforms use the digital
  36. power supply as their reference voltage. Any noise on the digital
  37. power line can directly couple to the output signal. The built-in DAC or
  38. <a href="http://www.pjrc.com/store/teensy3_audio.html" target="_blank">audio shield</a>
  39. should be used when higher quality signals are needed.</p>