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

Thread: The way to enable SPH0645LM4H with Teensy 3.2

  1. #1
    Junior Member
    Join Date
    Mar 2018

    The way to enable SPH0645LM4H with Teensy 3.2

    I have brought SPH0645LM4H from TAOBAO with 48Yuan(~$7). And I have tried to enable it with Teensy 3.2. Below is the way to test and enable it.
    Hardware part:
    1. You should know the hole is on the back of the component and module. When you test your hardware, please shout to the back.

    Click image for larger version. 

Name:	1.png 
Views:	14 
Size:	322.8 KB 
ID:	15338
    This picture comes from the datasheet.

    Click image for larger version. 

Name:	2.jpg 
Views:	14 
Size:	218.7 KB 
ID:	15339
    This picture comes from this link

    2. Hardware connection
    Teensy 3.2 SPH0645LM4H
    D23 LRCL
    D13 DOUT
    D9 BCLK
    3.3V 3V

    3. You can test with Try File > Examples > Audio > Recorder. After download it to your Teensy. You should see the waveform of LRCL/BCLK which is output from Teensy. And waveform in DOUT which is send by mems. This is a suggestion from PaulStoffregen. And I have confirm this with my oscilloscope. You can find this suggestion from this link.

    After hardware checking, you can be sure the module you buy is OK. And below code can send you voice from MEMS to your PC.

    Software Part:

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <SerialFlash.h>
    // GUItool: begin automatically generated code
    AudioInputI2S            i2s1;           //xy=223,84
    AudioOutputUSB           usb1;           //xy=435,172
    AudioConnection          patchCord1(i2s1, 0, usb1, 0);
    // GUItool: end automatically generated code
    void setup() {
      // put your setup code here, to run once:
    void loop() {
    After plug Teensy to you PC via USB, you can hear the sound from mic.

    Click image for larger version. 

Name:	3.jpg 
Views:	15 
Size:	284.5 KB 
ID:	15340

  2. #2
    Senior Member
    Join Date
    Feb 2017
    You might find this thread interesting:

Posting Permissions

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