the_inverter
Member
Hi,
I'm trying to get a Teensy 4.0 with a SPH0645 I2S microphone to work.
Unfortunately, I'm not able to receive any data from the mic.
My wiring (according to this scheme):
Teensy -> SPH0645
3.3V -> 3V
GND -> GND
21 -> BCLK
20 -> LRCL
8 -> DOUT
GND -> SEL
I'm using this code to test it:
I already tried to route both I2S channels to the rms node. When using channel 0, I constantly get a value of "0.04".
On channel 1 I get "0.00".
I'm using Arduino version 1.8.12 and Teensyduino 1.52-beta2.
I'm trying to get a Teensy 4.0 with a SPH0645 I2S microphone to work.
Unfortunately, I'm not able to receive any data from the mic.
My wiring (according to this scheme):
Teensy -> SPH0645
3.3V -> 3V
GND -> GND
21 -> BCLK
20 -> LRCL
8 -> DOUT
GND -> SEL
I'm using this code to test it:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputI2S i2s2; //xy=373,144
AudioAnalyzeRMS rms1; //xy=789,282
AudioConnection patchCord1(i2s2, 0, rms1, 0);
// GUItool: end automatically generated code
void setup() {
Serial.begin(38400);
// Audio connections require memory to work. For more
// detailed information, see the MemoryAndCpuUsage example
AudioMemory(20);
}
void loop() {
Serial.println(rms1.read());
delay(100);
}
I already tried to route both I2S channels to the rms node. When using channel 0, I constantly get a value of "0.04".
On channel 1 I get "0.00".
I'm using Arduino version 1.8.12 and Teensyduino 1.52-beta2.