Scary Talking Skeleton With Arduino and DFPlayer Mini

by Jsmxbox in Circuits > Electronics

2341 Views, 13 Favorites, 0 Comments

Scary Talking Skeleton With Arduino and DFPlayer Mini

F7T5O9UKUFIVP4V.gif

Halloween is almost upon us as it is my favorite time of year I thought why not try making my own spooky prop and document it all for my very first Instructable!

So let me know what you think in the comments below and have a spooky time!


Now lets get started!!

Supplies

skeleton.jpg
arduini.jpg
dfplayer.jpg
led.jpg
sdcard.jpg
servo.jpg
speaker.jpg

For this build, I used the following!


Materials


Arduino Nano ( Few pounds on eBay)

An Arduino is a Programmable microcontroller that can do a whole range of different things depending on how you program it

DFPlayer Mini 

The DFPlayer is an MP3 player board that can be controlled by a serial connection from the Arduino.

SD Card

SD card is used to store out MP3 Sound files to be played.

Small Speaker 4Ohm (Cheap on eBay)

The speaker will be how our spooky skeleton speaks to us

Small Skeleton ( £5 in Poundland UK )

This is the bare BONES for this project!

Servo

I had one laying around already but they can be found cheaply online I believe most should work fine for this project!

3mm Red LEDs x2

I had these here already however they're also cheaply available online.

MISC Wire

I had this too but you can salvage wire from old tech or broken phone chargers if need be.

Paper Clip


Tools Required

Soldering iron and Solder

Screw drivers

Zip ties

Electrical tape

Superglue or Hot glue

Measuring and Cutting

244608994_585008736279857_6864508598114687122_n.jpg
244682123_470848457376175_1858027246989133891_n.jpg

To begin remove the skull from the skeleton,

Then measure the Servo width, With this measurement, We can cut a hole in the rear of the skull the same width but make the hole slightly longer so we can get the remainder of the electronics inside the skull, see photos

Spooky LED Eyes!

244645147_158704609796037_4924642969986788074_n.jpg
244624443_583692463048538_339279040670233779_n.jpg
244641199_932989754230291_5893971547530672685_n.jpg
244652855_637696987254576_8083183726379668787_n.jpg
244673341_315729843689456_442687914737988238_n.jpg
244586873_3840160579419365_1574052541017154276_n.jpg
244732396_397114925202437_6019983935218740820_n.jpg
244663287_191428246445425_7171938069134206865_n.jpg
244616087_1038107270279329_9093002826355648622_n.jpg

So now we have a hole lets make two small 3mm holes in the eyes!


Step 1)

I roughly found the center of the eyes and made a hole using a drill, You can do this however you like carefully with a knife, scissors, or using a drill like me.


Step 2)

Once you have the holes we need to install the LEDs

Take a look at the LEDs, There are two legs one of which is longer than the other this is telling us which leg is the anode ( + ) and which is the cathode ( - ), We need to bend one leg of each LED at a 90° angle, be sure to use the opposite leg on the other LED, We should now have 2 LEDs with one bent leg on each, a small bent leg on one and a longer bent leg on the other.


Step 3)

Now fit these inside the skull into the holes we made in the eyes and turn them so the bent legs are overlapping then carefully apply solder to these legs to secure them together, Remove the LEDs and apply more solder if required,


Step 4)

We need to solder wires to each of the remaining legs so grab two wires strip and tin the ends and solder a wire to each Remaining unbent leg then cover all the legs separately with some electrical tape so they do not touch and short out the circuit.

Step 5)

Put a few drops of super glue on each of the LEDs and refit them into the skull hold them for a few seconds until the glue sets.



Servo Time!

244622512_694626071930234_7360455587470744141_n.jpg
244554151_603468584011860_7869941541776990576_n.jpg
244624460_1480138439008294_652668635725188955_n.jpg

Now we have the LEDs installed let install the Servo!


Step 1)

slide the servo into the hole in the rear of the skull with the servo mounts on either side like in the photos and mark the holes on the skull with a pen.

Step 2)

Remove the servo and now make 2 small holes where we marked

Step 3)

put a small zip tie through the servo mounting hole into the skull hole we made then back out of the other hole and through the other hole in the servo then zip the tie! repeat the same for the other side of the servo.

Arduino & DFPlayer Mini Wiring

244596250_873465173353165_3282303913456191011_n.jpg
244614309_265614228798344_1335472137743910319_n.jpg
244622855_838113823541346_4180041641701644358_n.jpg
244656102_1163371747520397_1120242573382425685_n.jpg
244582755_584886072650138_9018849955279690193_n.jpg
244641030_560900091796377_4735150136740528513_n.jpg
244623150_1470602783309261_3257275403071881855_n.jpg
244649062_152368540445095_2961583418797390823_n.jpg
244623378_2872147213096267_7314223812597597741_n.jpg
244648856_664116694470305_7471257895103443459_n.jpg
244774977_374035824444091_3945775891144849775_n.jpg
244559277_280588563912566_5976196511453334046_n.jpg
244630689_844623202917161_6486462909469022942_n.jpg
fritzing.jpg

Let's get connected!


The DFPlayer Mini comes with pins Presoldered we don't need these in this project so I snip them all off.


On the Arduino, We have multiple pins that are controlled by the software there are digital and analog pins.

For this project, We are going to be using 4 Digital pins 2 for software Serial connection for communication from the Arduino to the DFPlayer Mini, one for the LED eyes, and the other for the Servo!

we also need to run power and ground from the Arduino to the Servo and DFPlayer Mini 

to do this following the wiring diagram in the photos or following the connection list below,

Arduino connections

Software serial connections are

RX = Pin 10 connects to DFPlayer Mini  TX

TX = Pin 11 connects to DFPlayer Mini  RX

LED eyes = pin 3 connects to LED anode leg

Servo = pin 2 connects to Servo PWM


DFPlayer Mini connections

***Do these With the SD card slot opening facing you and the small notch at the top!***


The first top left pin DOWN is VCC we connect this to the Arduino 5V Pin

The second pin DOWN on the top left is the RX pin

The third DOWN pin on the top left is the TX pin

The Second pin UP on the left side is GND we connect this to the Arduino GND pin.

The First pin UP on the Left side is Speaker +

The third pin UP on the Left side is Speaker -


Speaker connections

Wire the speaker + to the DFPlayer Mini Speaker +

Wire the speaker - to the DFPlayer mini Speaker -


Servo Connections

To make it easier to connect our servo I cut off the supplied connector and just soldered the wires to the Arduino.

Most Servos have 3 wires Power, GND, and PWM on mine this was as follows,

Red = 5V

Black = GND

White = PWM


Once all connections have been made I like to wrap everything with tape as you can see in the photos.


Coding!

The code attached was written by myself it may not be the best but it works for this project it may need some modifications to work for you!


Open the Arduino IDE

select the correct board in my case that was an Arduino Nano

Select the correct Port

and upload the code

Downloads

Attaching the Jaw!

244693170_190051883265849_4424133569952649650_n.jpg
244222965_688646972528345_669394437435270358_n.jpg
244596821_1014818452648250_4464649608662559155_n.jpg
244641811_557083808858229_5428434874495226840_n.jpg

We leave this until last to make sure the servo is in the closed mouth position before attaching anything.

I was going to use a paper clip for this however I couldn't find one at the time so ended up using a small alan key, You can use anything you find for this it just needs to be strong enough to move the jaw without bending or deforming,


I simply put the Allen key into one of the slots on the servo and temporarily taped the other end to the jaw as we may need to tweak this so power the Arduino and run the code and tweak the connection as needed once you have this perfect replace the tape with hot glue this to make it strong and more permanent.


Sound Files!

I found some creepy voice sounds online

You can make your own using https://voicechanger.io/

Once you have your files load them onto your SD Card Formatted as FAT or FAT32

Currently, This code only uses 3 sound files and you will need to adjust the servo timings and delays to sync better with your MP3

If you require help with this leave a comment and I will try my best to help!