Welcome Guest Search | Active Topics | Log In | Register

Sound effects module Options
darbyvet
#1 Posted : 07 October 2019 19:19:11

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
Have you ever wanted to add sound effects to your model? If so here is a quick tutorial on making your own sound effects module.This is a very simple project that will play a sound file (.mp3 file) in a continuous loop until you power it off. The mp3 player used in this tutorial can be controlled by an arduino and/or you can add extra buttons to have more options, but for simplicity I am showing just how to set it up to play a sound clip on a loop.I made this module for my Moebius 2001 EVA pod so my module plays selected sound bites from the Movie 2001 A space Odyssey (open the pod bay doors HAl).

The sound is generated by a DFplayer mini.This is a very cheap mp3 player board, but it can actually do quite a lot and it can play quite high quality stereo sound files.


So in best Blue Peter fashion break out your sticky tape, cereal boxes and glue and lets make a sound effects module.
roymattblack
#2 Posted : 07 October 2019 19:34:24

Rank: Super-Elite

Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsOutstanding Build: An award for an outstanding buildBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Official Builds, Administrators, Moderator, Global Forum Support, Registered

Joined: 04/06/2011
Posts: 4,508
Points: 13,684
Location: ipswich
This sounds like it could be fun...Laugh
darbyvet
#3 Posted : 07 October 2019 19:38:54

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
Here are the components you will need.they can all be bought from Amazon and ebay and if you shop around you should be able to build the whole module for less than $20.


1.DFplayer mini.
this is the board that makes the sound.it has an onboard microSD card reader and pins for input and output.If you want to know what each pin does there are manuals describing each pin and wiring diagrams to help you.There are also a ton of youtube videos showing how to connect the dfplayer to an arduino or add buttons.

Here is the datasheet;
http://www.picaxe.com/docs/spe033.pdf

2.MicroSD card.
This is used to store your sound clip. A 16G card will give you hours of storage space.

3. JST 2 pin connectors
these connectors are used to connect the dfplayer to the battery pack and speaker.
you could skip these and solder the wires from the battery holder and the speaker directly to the dfplayer.

4.Speaker
I set up my module to play mono clips so I just needed one speaker.This speaker produces really nice loud sound.you can use another speaker if you wish, but it should by 3watt 8 ohm speaker. I got mine form Amazon

https://www.amazon.com/g...title?ie=UTF8&psc=1


5.Battery holder.
I used a 3 AAA battery holder with a switch.The dfplayer needs 4.5-5V dc power.Anything over 5 v will damage the board.
If you need to put the sound module in a place where it cant be accessed you can put a switch between the battery holder and dflplayer and mount the switch somewhere accessible.

6.Box.
I made a box to put the dfplayer in.thee is a lot of room inside the EVA pod that I made this for so I 3d printed a box to keep the dfplayer from getting dusty.


darbyvet attached the following image(s):
sm1.jpg
darbyvet
#4 Posted : 07 October 2019 19:45:04

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
The dfplayermini

Here is a close up of the mp3 player.
The player has 16 pins.We will need to solder 4 wires to one side and then a jumper wire between 2 pins on the other side.


Turn the dfplayer to the opening for the microSD card to facing to the right.

On this side the power input (+5v) is the pin all the way to the left.The negative or ground is connected to the pin second from the right.

The 2 wires from the speaker are connected to the last pin on the right and the third pin from the right.



Now turn the dfplayer so the opening for the SD card is facing to the left.

You need to connect the second and fourth pin from the left. the pins on this side of the player are used to control what the player does. if you connect pins 2 and 4 it tells the dfplayer to keep playing the first sound clip on the SD card continuously.
darbyvet attached the following image(s):
sm2.jpg
sm3.jpg
sm4.jpg
darbyvet
#5 Posted : 07 October 2019 19:55:53

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
For my player I used a box for the mp3 player.So the first step was to glue the 3 jst connectors to the box. I labelled the side of the box with one side for the power input and one side for the speakers.Make sure you label the wires coming out of your box .If you plug the power supply into the speaker wires you will burn out the dfplayer.


darbyvet attached the following image(s):
sm5.jpg
sm6.jpg
sm7.jpg
darbyvet
#6 Posted : 07 October 2019 19:58:03

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
For the next step I wired up the jst connector labeller 5v in to the power pins on the dfplay.those are pins 1 and 7 with the SD card slot facing to the right.

darbyvet attached the following image(s):
sm8.jpg
darbyvet
#7 Posted : 07 October 2019 20:00:50

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
next I connected the wires from the wires labelled speaker to the last pin in the right and the third pin from the right.

darbyvet attached the following image(s):
sm9.jpg
darbyvet
#8 Posted : 08 October 2019 15:50:53

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
The final step is to connect the pins on the opposite side of the dfplayer.these pins control the dfplayer.if you place a jumper wire between the second and fourth pins from the left the dfplayer will play the first track on the SD card on a loop until you power off the player.

So turn the dfplayer so the slot for the SC card is facing to the left and then use a jumper wire to connect the second and fourth pin from the left.you can solder the wire, but the jumper wire allows you to change how the dfplayer plays files by moving it to different pins.

darbyvet attached the following image(s):
sm95.jpg
darbyvet
#9 Posted : 08 October 2019 15:54:45

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
Now you can put your recording on to the microSD . There are tons of free sound editing programs you can use to record your sounds.I used Audacity.

The file needs to be stored as a mono .mp3 file. If you use a 16GB microSD that will store hours of sounds.

Once you have your sound file store in on the MicroSD card.It doesnt matter what filename you use as long as it is the only file on the card the dfplayer will play it.


Once the SD card is installed you can close the box and voila it is done.

darbyvet attached the following image(s):
sm10.jpg
darbyvet
#10 Posted : 08 October 2019 15:59:16

Rank: Super-Elite
Publisher Medal: Featured Build of the MonthActive Service Medal: 500 post active service MedalPurple Medal: Super active service medal for 1000 postsBuild-Diary Medal: Build-Diary Medal of HonourRed Medal: Red Medal
Groups: Registered

Joined: 17/12/2013
Posts: 3,982
Points: 11,974
Location: NY, USA
Here is a link to a youtube video I made with the sound module installed in the cockpit of the Moebius 2001 EVA pod. I replaced the screens with tiny LCD screens so they play real video clips instead of backlit decals.I will be doing a build diary of the EVA pod later on.

https://www.youtube.com/watch?v=sQv_b1HPTag



So as you can hear the sound module is nice and loud and the sound quality is very good. You cant adjust the volume with this set up.However you can adjust the volume when you make the sound file to make it the right volume for your model.


Carl

Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.207 seconds.
DeAgostini