Home Creators Posts Import Register Favorites Logout

Content

This post contains additional resources and documentation to accompany the "Audio Sequence" puzzle at https://www.patreon.com/posts/audio-sequence-25435987

Components Used (Total cost = ~$25):

 Arduino Uno or Nano ~£2, from e.g. https://www.ebay.co.uk/itm/16M-5V-Mini-USB-Nano-V3-0-ATmega328-Micro-controller-CH340-For-Arduino-Cable/152860514642

DFPlayer Mini, ~£1.20 from, e.g. https://www.aliexpress.com/item/TF-Card-U-Disk-Mini-MP3-Player-Audio-Voice-Module-For-Arduino-DFPlay-Min-Board/32659645208.html (Tech sheet)

15x Capacitive Touch Sensor, ~£0.20 each from, e.g. https://www.banggood.com/10Pcs-2_5-5_5V-TTP223-Capacitive-Touch-Switch-Button-Self-Lock-Module-For-Arduino-p-1132674.html

Nobsound Stereo Amp $20, from e.g. https://www.aliexpress.com/item/2016-Lastest-Nobsound-NS-10G-Bluetooth-4-0-Mini-Digital-Amplifier-Stereo-HiFi-Power-Amp-50W/32719095410.html

1x 1N4001 diode

1x 1kΩ resistor,  1x 2kΩ resistor

1x 220uF capacitor

1x 3.5mm audio jack breakout ~$0.50, from e.g. https://www.aliexpress.com/item/1pcs-TRRS-3-5mm-Jack-Breakout-Headphone-Video-MP3-Jack-Professional-module/32693340142.html

3.5mm stereo cable

Other Resources Used

I forgot to mention while recording that the software I used to record and snip the audio was the excellent Audacity - https://www.audacityteam.org/ 

The audio files were saved as MP3 files (192kbps) in the /mp3 directory of the SD card inserted into the DFPlayer, and were named with a prefix starting from 0001, to denote the position in the sequence that they corresponded to. I then put a suffix on the end of the filename just to remind me what the actual syllable said was. So the directory structure on the SD card should look like this:

Wiring Diagram

You can download an image of the wiring diagram from https://drive.google.com/open?id=1FKhBmf-tNtFgOxSYGS_AnoTaA32ry-Hk 

You can also download the entire Fritzing project from https://drive.google.com/open?id=1yzAGuAc7mOQ-WiWYBuWHq1iZWhlNGqTr 

Arduino Code

You can download a project folder containing the sketch that is running on the Arduino, together with all referenced libraries, from https://drive.google.com/open?id=1UZYYkfV5HxGJ7N2r-r0guGLThc6otkkF 

As ever, please let me know if you have any questions, or want to share any photos of builds that you make using any of these ideas - I love receiving them!

Files

Comments

mark dennis (edited)

Comment edits

2026-09-07 18:00 Hi Alastair, I first want to say that I enjoyed your Live Tech Tutorial, thanks for having it, and thanks for having it on a day that I could join in. =) I do need some guidance... I worked on your Call Me, and now on your Audio Sequence Puzzle, and on both of them, I could not get the soft serial to interface with the SD player. I used the same code & the same players, but it would never connect. I can play them without a serial connection, but now with one. Do you have any ideas or has anyone else had the same problem?
2019-06-09 18:31

mark dennis

I am not using the mux, I just used 4 I/O pins & 4 touch sensors. I commented out the mux stuff and replaced it with "int arrayOne[4] = {12, 11, 10, 13};" then I used this, "for(int k; k<4;k++){ pinMode(arrayOne[k], INPUT);" to have it look through the inputs. In the serial monitor it fails the connection and then it says correct input for step 1 thru 4 & puzzle solved, but nothing plays. Then I put an LED at the solved portion to light for 1 second, but it never lights either. Probably because the puzzle really isn't being solved. And yes, I ground the IO1 & IO2 pins to make it play the WAV files.

mark dennis

I got that wrong, I used that one portion to set all of the pinModes to be INPUTS.

mark dennis

Maybe I could just use the IO1 pin to play the WAV files, but how do I do that? Am I annoying??? sorry just trying to get things to work...

mark dennis

It must be hard keeping up with everyone's requests. I for one applaud your performance. We twist and stretch the boundaries of your first thought and then we expect you to help us figure out why it doesn't work. Actually, it's laughable... =) thanks Alastair!... You're a good man!

Alastair Aitchison

Thanks for you kind comments - I want to try to teach people to understand why and how the projects work, to be able to make their own customisations, so if yours doesn't work then I've failed! But yes it can be a bit tricky keeping track of various adaptations :) Now I'm curious that you said when you "put an LED in the solved section, that doesn't light either" - that suggests a code problem rather than a hardware problem. Can you send me a copy of the code you're now using, and a photo of how it's wired?

mark dennis

I got a multiplexer now so I will wire that into the circuit to see if that will help me communicate with the DFPlayer. This puzzle just isn't any fun without sound or being able to solve something... Wish me luck!

Black And White Comic

im trying to replicate this with tactile switches and an SD card module but can only get a buzzing sound to play when the buttons are pressed

Black And White Comic

Mono channel 8 bit wav, but I've been using an SD card module with mosi, miso etc as apposed to a df mini