• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

8266-12 to max98375

Q&A Forum › Category: ESP8266 › 8266-12 to max98375
0 Vote Up Vote Down
Larry Dalton asked 12 months ago

Has anyone had luck interfacing a max98375 to esp8266-12? I’ve tried a lot of pin configurations but no luck. Is there something that works besides an SD or mp3 player?

Question Tags: max98375
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 12 months ago

Hi.
Unfortuantely, I never experimented with that module.
What does your wiring look like?
Regards,
Sara

0 Vote Up Vote Down
Larry Dalton answered 12 months ago

Din = 3 or D1 GPIO5
LRC = 18 = D5 GPIO0
BLCK = 17 = D4 GPIO2

DIN = GPIIO5
LRC =- GPIO2
BLCK = GPIO15
/* Chat GPT */
#include <Arduino.h>
#include <AudioFileSourceSPIFFS.h>
#include <AudioGeneratorMP3.h>
#include <AudioOutputI2S.h>
AudioGeneratorMP3 *mp3;
AudioFileSourceSPIFFS *file;
AudioOutputI2S *out;
void setup() {
Serial.begin(115200);
SPIFFS.begin();
file = new AudioFileSourceSPIFFS(“/test.mp3”);
out = new AudioOutputI2S();
out->SetPinout(14, 15, 2); // BCLK, LRC, DIN
mp3 = new AudioGeneratorMP3();
mp3->begin(file, out);
}
void loop() {
if (mp3->isRunning()) {
if (!mp3->loop()) {
mp3->stop();
}
} else {
Serial.println(“MP3 done playing”);
delay(1000);
}
}

0 Vote Up Vote Down
Sara Santos Staff answered 12 months ago

Hi again.
 
I have no way to test it, but I would recommend trying to get some code that was tested or developed by someone and not relying so much on ChatGPT.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.