Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 28 of 28

Thread: Teensy 3.1 DAC audio output

  1. #26
    Senior Member adrian's Avatar
    Join Date
    Oct 2015
    Location
    Wellington, NZ
    Posts
    504
    I take the output of talkie straight from the teensy to my mixing desk and then out to my rack ... no reason why you couldn't feed it back into the teensy audio board as a line in signal ...of course if you don't have a mixing desk, you will have to match inputs and outputs.

    A 10uf electrolytic cap on the hot line is a good idea, to remove dc offset.
    Here is a picture of the teensy and cap goinginto my 'mobile' interface
    Last edited by adrian; 04-29-2016 at 09:22 AM.

  2. #27
    Junior Member
    Join Date
    Jan 2021
    Posts
    1
    I'm not having luck with this, hopefully if I post my code and circuit someone can tell me where I've gone wrong. Thanks!

    using teensy 3.2
    minimum code to reproduce:

    Code:
    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    
    AudioSynthWaveform   sine1;          //xy=355,324
    AudioOutputAnalog        dac1;           //xy=626,314
    AudioConnection          patchCord1(sine1, 0, dac1, 0);
    
    void setup() {
    dac1.analogReference(EXTERNAL);
    sine1.begin(WAVEFORM_SINE);
    sine1.amplitude(1);
    sine1.offset(0);
    sine1.frequency(440);
    sine1.phase(0);
    }
    
    void loop() {    
    
    }
    circuit:
    (I measured 0.4v-ish from my phone playing a test tone, but couldn't get an ac measurement from the teensy DAC)
    - pin A14 is the circuit input, the output is connected to "line in" on a powered speaker

    Click image for larger version. 

Name:	teensy3dac-schematic.jpg 
Views:	9 
Size:	65.1 KB 
ID:	23205

  3. #28
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    7,936
    You have no AudioMemory().

Tags for this Thread

Posting Permissions

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