mrdiyca
Published © GPL3+

Gas Fireplace Retrofit: the Warm Sound of Crackle and Pop

I added the warm sound of crackle and Pop to my silent gas fireplace using an Arduino nano, mp3 decoder and an amplifier.

BeginnerFull instructions provided889
Gas Fireplace Retrofit: the Warm Sound of Crackle and Pop

Things used in this project

Hardware components

Arduino Nano
×1
MP3 player
×1
Amplifier
×1
Arduino Nano R3
Arduino Nano R3
×1

Story

Read more

Schematics

Schematic

Code

Code

C/C++
repo: https://gitlab.com/MrDIYca/code-samples/-/blob/master/fireplace_audio.ino
#include "Arduino.h"
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

SoftwareSerial mySoftwareSerial(10, 11); // RX, TX
DFRobotDFPlayerMini myDFPlayer;

void setup()
{
  mySoftwareSerial.begin(9600);
  Serial.begin(115200);

  Serial.println();
  Serial.println(F("Initializing ..."));

  if (!myDFPlayer.begin(mySoftwareSerial)) { 
    Serial.println(F("Unable to begin: recheck the connection or insert an SD card "));
    while(true);
  }
  Serial.println(F("DFPlayer Mini online."));

  delay(30 * 1000);

  myDFPlayer.volume(30);  
  myDFPlayer.enableLoopAll();
}

void loop() {}

Credits

mrdiyca
3 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.