Force Interactive Yoda Speaking Frame
by Kotheson in Circuits > Arduino
810 Views, 4 Favorites, 0 Comments
Force Interactive Yoda Speaking Frame






I'm a huge Star Wars fan, and my nephew is even bigger. For his birthday, I decided to give him a special gift, and I came up with this idea.
It's a frame that speaks with Yoda voice when you pass your hand over it Jedi style.
Besides the aesthetic appeal, he can learn interesting things, and who better to teach than Yoda?!
Supplies
Switch (10MM * 15MM). ALIEXPRESS
Battery holder. ALIEXPRESS
18650 Battery. XHDATA
Speaker (4Ohm3W Dupont). ALIEXPRESS
DFPlayer mini mp3. AMAZON
Arduino Nano. ALIEXPRESS
KY-032 IR Distance Sensor. ALIEXPRESS
MT3608 Step Up. ALIEXPRESS
Micro SD Card. Maximum support 32G.
M3 12mm Screws x6.
M3 Nuts X6.
3mm 15x20 cm Black aluminum composite panel. AMAZON
3mm MDF board.
1K ohm resistor.
Wires.
Overview




The design consists of the frame itself and a rear box that acts as a support for the frame and container for the electronic components.(Photo 1, video)
*I have made the renders with "natural" MDF color for visual purposes only. The pieces have been cut in black MDF but the Middle frame, since it is not visible we can save a little by using natural MDF.
Maybe you want to do your frame in white or another MDF color.
The Frame is composed of 3 layers:
-Front Frame. 3mm mdf. The infrared transmitter and receiver are inserted in the top of the front frame.
-Middle Frame. 3mm mdf. In the middle frame is located the aluminum panel with the engraved design.
-Back Frame.3mm mdf. In the Back frame there is a conduit to pass the IR sensor wires and 4 holes to anchor it to the back box.
(Photo 2)
The Back Box is composed of five 3mm mdf pieces. It is made as a simple box.
(Photo 3)
In the .dxf file there is an elongated rectangular piece that serves to hide the wires that pass through the Back Frame
Downloads
Design for Engraving

I have made this design, but you can use another one that you like more, as long as it fits on the 15x20 cm panel.
Engrave the design on the aluminum panel.
This panel has a glossy surface and a matte surface. I engraved the matte side.
Downloads
Electronic Schematic







I suggest first doing the electronic assembly on a breadboard and using dupont cables. And check that everything is working correctly.(Photo 6)
KY-032 IR Sensor calibration.
Connect the KY-032 to ground and 5V. A red LED will light up. Is the Power Led indicator.
Adjust the potentiometers while holding your hand in front of the sensor.
Another red LED will light up when it detects your hand. Set it,by rotating the potentiometers, to activate at a distance of about 7 cm.(Photo 2)
KY-032 Prolongation.
Unsolder the infrared emitter and receiver.
Measure the distance from where they are inserted into the Front Frame to the Back box and cut the wires to that measurement, add a few more centimeters for greater comfort.
(Photo 3)
KY-032 ARDUINO CONNECTION (Photo 4)
DFPlayer Mini Mp3 ARDUINO CONNECTION (Photo 5)
You can check all the information about DFPlayer on its website.
To use the DFPlayer in Arduino you will need to install its library. You can download the latest library here: DFRobotDFPlayerMini (DROPBOX). Keep the file in .zip file. And add it to Arduino from "add zip library".
The MT3608 is a Step Up module. Charge the 18650 battery and connect the positive and negative poles to the MT3608 module inputs. Tune the potentiometer of the module to get an output voltage of 5 volts. You must use a tester.
Electronics in the Back Box.(Photo 7)
IMPORTANT NOTE.
First of all, before connecting anything, upload the Arduino sketch to the Arduino Nano board.
Once done, connect all the components according to the electronic schematic.
The reason for this is that the power coming from the computer is not enough to operate the circuit and it usually causes errors in audio playback.
Attached is the Arduino sketch.
Downloads
18650 Battery

Due to the battery holder the battery must be the model: Protruding at one end.
TIP
I suggest 3000mAh / 3500mAh batteries. Anything higher than that is usually a scam.
Mounting



FRAME. Glue the Middle Frame with the aluminum panel to the Back Frame. Glue the Front Frame to the Middle Frame.(photo 1)
BACK-BOX. Glue the 5 parts of the back-box as shown in the photo 2
Once the electronic circuit is made and placed, glue and insert the Frame to the Back-box. (photo 3)
Yoda Quotes
I took the quotes from this website : WIZDOM
And I have attached 35 mp3 files ready to go.
1.“Do or do not. There is no try.”
2.“Fear is the path to the dark side. Fear leads to anger, anger leads to hate,
hate leads to suffering.”
3.“Wars not make one great.”
4.“You must unlearn what you have learned.”
5.“The greatest teacher, failure is.”
6.“Luminous beings are we, not this crude matter.”
7.“Difficult to see. Always in motion is the future.”
8.“Train yourself to let go of everything you fear to lose.”
9.“Size matters not. Look at me. Judge me by my size, do you?”
10.“Adventure. Excitement. A Jedi craves not these things.”
11.“Much to learn, you still have.”
12.“Control, control, you must learn control!”
13.“Named must your fear be before banish it you can.”
14.“In a dark place we find ourselves, and a little more knowledge lights our way.”
15.“Truly wonderful, the mind of a child is.”
16.“Powerful you have become, the dark side I sense in you.”
17.“You will find only what you bring in.”
18.“Patience you must have, my young Padawan.”
19.“Clear your mind must be, if you are to find the villains behind this plot.”
20.“To be Jedi is to face the truth and choose. Give off light, or darkness, Padawan. Be a candle or the night.”
21.“To answer power with power, the Jedi way this is not. In this war, a danger there is, of losing who we are.”
22.“In the end, cowards are those who follow the dark side.”
23.“Not if anything to say about it I have.”
24.“Always two there are, no more, no less. A master and an apprentice.”
25.“Decide you must, how to serve them best. If you leave now, help them you could, but you would destroy all for which they have fought and suffered.”
26.“Through the Force, things you will see. Other places. The future, the past, old friends long gone.”
27.“Good relations with the Wookiees, I have.”
28.“Mediocre, my mind is not.”
29.“Blind we are, if creation of this clone army we could not see.”
30.“The shroud of the dark side has fallen. Begun the Clone War has.”
31.“When you look at the dark side, careful you must be. For the dark side looks back.”
32.“If no mistake have you made, yet losing you are… a different game you should play.”
33.“In this war, a danger there is of losing who we are.”
34.“Much to learn you still have, my old padawan. This is just the beginning!”
35.“May the force be with you”
Downloads
Text to Speech

For the Text to Speech convertion I visited this website: FakeYou.
Simply enter the text, click the speak button and download the file.
The downloaded file is in WAV format.
I used AUDACITY, a free software, to convert the files to MP3 format.
Once you have the mp3 files, copy them to a micro SD card.
NOTE: The order you copy the mp3 files into micro SD card will affect the order mp3 played , which means it will start playing the first mp3 copied into micro SD card and so on.
TIP
You can personalize the audios by adding the name of a family member or friend, and you can even create your own phrases with Yoda's voice. You can create funny situations.