I'm just trying first to familiarize myself with the tool (Audio System Design Tool), with the LINE_IN, I can use a frequency generator and see in the I2S_DOUT.Hard to say without more detail of your intended application. It's correct for processing a mono signal, though you're not doing any processing apart from anything the SGTL5000 is doing internally, and outputting your mono signal on two outputs. Your top diagram is incomplete - what you've done is this:
View attachment 35713
i2s2_2
is an AudioOutputI2S2
object ... it's all a bit confusing to start with AudioInputI2S
and AudioOutputI2S
, not the I2S2
ones. If you start from a blank Design Tool and place one of each, they'll be named i2s1
and i2s2
, which you might reasonably think means i2s2
is an AudioOutputI2S2
object, but if you select it and check the Info pane, you'll see the correct Type shown. My drawing of what I thought you'd done / intended corresponds to this:AudioInputI2S
object - it's out of the SGTL5000 and in to the Teensy audio system.#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s1; //xy=388,50
AudioOutputI2S i2s2; //xy=571,49
AudioConnection patchCord1(i2s1, 0, i2s2, 0);
AudioConnection patchCord2(i2s1, 0, i2s2, 1);
AudioControlSGTL5000 sgtl5000_1; //xy=570,107
// GUItool: end automatically generated code
I'm just trying first to familiarize myself with the tool (Audio System Design Tool), with the LINE_IN, I can use a frequency generator and see in the I2S_DOUT.
It's a bit strange that there is no connection of the module i2s1 ?
What Paul said ... trying to jump straight in with "your application" is a poor way of familiarising yourself with the Teensy audio system. The Design Tool is just one part of that.I'm just trying first to familiarize myself with the tool (Audio System Design Tool),
As you don't say what your application is, I can't express an opinion.I don't need LINE_IN -> LINEOUT. I think this configuration is fit for my application.
The ID is entirely irrelevant (it's just the Design Tool's way of tracking the objects you've placed). All you are doing is change the name by which the object will be known when you export it to a sketch. The Design Tool provides no way to change a placed object's Type, so you have to delete it and replace it with the Type you want, and the re-wire all the connections.I can modify this
But the ID is always the same (i2s2_1)
Of course you're right but I forgot to specify that I wired the pins : SDA, SCL, MCLK, SCLK, LRCLK, +3V, GND, DIN/TX, DOUT/RX between the Audio card and the TEENSY 4.0 card. In this case the digital data will be recovered by the TEENSY card. Of course, I watched the video and read the documentation but there is information that I do not use in my application (probably I have to watch it again).But like that red arrow, the digital audio data doesn't actually go anywhere or do anything.
In this case the digital data will be recovered by the TEENSY card.
AudioInputI2S i2s1; //xy=388,50