Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: External Jack Input Teensy Audio shield

  1. #1
    Junior Member
    Join Date
    Feb 2020
    Posts
    17

    External Jack Input Teensy Audio shield

    Click image for larger version. 

Name:	hello.jpg 
Views:	6 
Size:	106.9 KB 
ID:	19170
    Click image for larger version. 

Name:	jhghj.png 
Views:	11 
Size:	375.5 KB 
ID:	19171
    Click image for larger version. 

Name:	Untitled.jpg 
Views:	6 
Size:	87.2 KB 
ID:	19172
    Click image for larger version. 

Name:	scheme.png 
Views:	4 
Size:	12.6 KB 
ID:	19173

    Hello,

    I'm trying to make an effect unit for an input. For the input I followed the mic tutorial and tried wiring a mono jack input to the Line In R and G input of the audio shield, but I can't hear anything, any ideas why this is?

    Should I try soldering the wires to the Mic and G input next to the headphone output?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Annotation 2019-12-24 115839.jpg 
Views:	12 
Size:	26.1 KB 
ID:	19169  

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,919
    Forum Rule: Always post*complete source code*& details to reproduce any issue!

  3. #3
    Junior Member
    Join Date
    Feb 2020
    Posts
    17
    Quote Originally Posted by Frank B View Post
    Forum Rule: Always post*complete source code*& details to reproduce any issue!
    Sorry, my bad! Here it is:

    // Advanced Microcontroller-based Audio Workshop
    //
    // http://www.pjrc.com/store/audio_tutorial_kit.html
    // https://hackaday.io/project/8292-mic...-supercon-2015
    //
    // Part 2-4: Using The Microphone

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>

    // GUItool: begin automatically generated code
    AudioInputI2S i2s2; //xy=154.00000381469727,44.0000057220459
    AudioOutputI2S i2s1; //xy=436.0000114440918,48.0000057220459
    AudioConnection patchCord1(i2s2, 0, i2s1, 0);
    AudioConnection patchCord2(i2s2, 1, i2s1, 1);
    AudioControlSGTL5000 sgtl5000_1; //xy=221,295
    // GUItool: end automatically generated code



    void setup() {
    Serial.begin(9600);
    AudioMemory(8);
    sgtl5000_1.enable();
    sgtl5000_1.volume(0.5);
    sgtl5000_1.inputSelect(AUDIO_INPUT_MIC);
    sgtl5000_1.micGain(36);
    delay(1000);
    }

    void loop() {
    // do nothing
    }

  4. #4
    Senior Member
    Join Date
    Nov 2017
    Location
    Belgium
    Posts
    215
    change
    Code:
    sgtl5000_1.inputSelect(AUDIO_INPUT_MIC);
    to
    Code:
    sgtl5000_1.inputSelect(AUDIO_INPUT_LINEIN);

Posting Permissions

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