You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.3 KiB
47 lines
2.3 KiB
<script type="text/x-red" data-help-name="AudioOutputAnalogStereo">
|
|
<h3>Summary</h3>
|
|
<div class=tooltipinfo>
|
|
<p>Transmit 12 bit stereo audio using Teensy 3.5 or 3.6 built-in digital to analog converters.</p>
|
|
<!--<p align=center><img src="img/dac_speaker.jpg"><br>
|
|
<small><a href="http://www.pjrc.com/store/prop_shield.html" target="_blank_">Prop Shield with 4Ω Speaker</a></small></p>-->
|
|
</div>
|
|
<h3>Audio Connections</h3>
|
|
<table class=doc align=center cellpadding=3>
|
|
<tr class=top><th>Port</th><th>Purpose</th></tr>
|
|
<tr class=odd><td align=center>In 0</td><td>Audio Channel (Left)</td></tr>
|
|
<tr class=odd><td align=center>In 1</td><td>Audio Channel (Right)</td></tr>
|
|
</table>
|
|
<h3>Functions</h3>
|
|
<p class=func><span class=keyword>analogReference</span>(ref);</p>
|
|
<p class=desc>Configure output voltage range:<br>
|
|
<span class=literal>INTERNAL</span> selects 1.2 volt peak-to-peak output.<br>
|
|
<span class=literal>EXTERNAL</span> selects 3.3 volt peak-to-peak output.
|
|
</p>
|
|
<h3>Hardware</h3>
|
|
<p align=center><img src="img/dacpins.png"></p>
|
|
<p>Signal range default is 0 to 1.2V</p>
|
|
<p>The output voltage has DC level. Some applications require a DC-blocking capacitor. If unsure, a 10µF is usually a safe value to use. If an aluminum or tantalum capacitor is used, the positive terminal should connect to Teensy's DAC pin.</p>
|
|
<p>The DAC pin is used with the
|
|
<a href="http://www.pjrc.com/store/prop_shield.html" target="_blank_">Prop Shield</a>
|
|
to drive speakers.</p>
|
|
<h3>Examples</h3>
|
|
<!--<p class=exam>File > Examples > Audio > HardwareTesting > PassThroughMono
|
|
</p>
|
|
<p class=exam>File > Examples > SerialFlash > MP3Player
|
|
</p>-->
|
|
<h3>Notes</h3>
|
|
<p>The output rate is 44.1 kHz (no oversampling). Ultrasonic noise present if
|
|
not filtered. This may not
|
|
be an issue for many uses, but care should be used if amplified and driven
|
|
to high power tweeters.</p>
|
|
<p>When using 3.3V output, the power supply is used for the analog reference. Noise
|
|
present on the 3.3V power can couple to the DAC output signal.
|
|
</p>
|
|
</script>
|
|
<script type="text/x-red" data-template-name="AudioOutputAnalogStereo">
|
|
<div class="form-row">
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
</div>
|
|
</script>
|
|
|
|
|