R2D2 Clock & Timer
![Miniature_instructable2.jpg](/proxy/?url=https://content.instructables.com/FMO/4KDH/LKV63AJC/FMO4KDHLKV63AJC.jpg&filename=Miniature_instructable2.jpg)
TUTO VIDEO [English SUB] :
BUY ALL COMPONENTS HERE : https://jeje-linge.fr/pages/r2d2-bundle
I wanted to make a R2D2 clock & timer cause I didn't have a timer in my kitchen (for my pasta) and I wanted an original timer, so I said to myself : R2D2 !!
It displays the time wich is connected to wifi.
Behind you'll find a rotary button to set the timer.
Push the button to set the timer, hold it 3 seconds to interrupt a countdown.
SIMPLE AND EFFICIENT !
Components
![Components.PNG](/proxy/?url=https://content.instructables.com/F3W/6T6E/KQV85HPH/F3W6T6EKQV85HPH.png&filename=Components.PNG)
- 1x ESP32 board
- 1x 5v 2A power supply
- 2x Wago terminals
- 1x DC2.5 connector
- 1x MP3 module + micro SD card
- 1x 40mm speaker
- 1x blue 7 segment display
- 1x rotary coder
- 220 ohms resistors
- Led 3mm and 5mm (blue, red and white)
- Super glue 3
- Wires : female-female, male-male, male-female
Every components available here : https://jeje-linge.fr/pages/r2d2-bundle
Paint :
- Stormhost Silver by Citadel
- metal grey spray paint
- Tamiya X13
- Typhus Corrosion by Citadel
- Agrax Earthshade by Citadel
3D Printing
![3D print.PNG](/proxy/?url=https://content.instructables.com/FNF/GAYA/KQV85HRR/FNFGAYAKQV85HRR.png&filename=3D print.PNG)
I printed every part with PLA, infill 20%, layer 0.2mm.
You need to use some support especially for the bottom of the body.
Assembly
![Glue.PNG](/proxy/?url=https://content.instructables.com/F5A/TWOP/KQWCLRYT/F5ATWOPKQWCLRYT.png&filename=Glue.PNG)
![glue 2.PNG](/proxy/?url=https://content.instructables.com/FUX/OPAB/KQWCLS1G/FUXOPABKQWCLS1G.png&filename=glue 2.PNG)
![Glue 3.PNG](/proxy/?url=https://content.instructables.com/FV5/16EV/KQWCLS1H/FV516EVKQWCLS1H.png&filename=Glue 3.PNG)
![glue 4.PNG](/proxy/?url=https://content.instructables.com/FG0/E2GB/KQWCLRYS/FG0E2GBKQWCLRYS.png&filename=glue 4.PNG)
You can use super glue to assemble every part.
Check the video if you have some doubt.
Painting
![head paint.PNG](/proxy/?url=https://content.instructables.com/FAC/YMKG/KQWCLU3X/FACYMKGKQWCLU3X.png&filename=head paint.PNG)
![paint 2.PNG](/proxy/?url=https://content.instructables.com/F3X/SZDC/KQWCLU43/F3XSZDCKQWCLU43.png&filename=paint 2.PNG)
![paint 1.PNG](/proxy/?url=https://content.instructables.com/FJQ/J4UJ/KQWCLU42/FJQJ4UJKQWCLU42.png&filename=paint 1.PNG)
![paint 3.PNG](/proxy/?url=https://content.instructables.com/F05/R6X9/KQWCLU17/F05R6X9KQWCLU17.png&filename=paint 3.PNG)
For the head you can use a "metal grey spray paint" that you can find in every DIY shop.
For the rest check in the components list above.
Solder Display's Pins
![display pin 1.PNG](/proxy/?url=https://content.instructables.com/F2K/ENHC/KQWCLWHR/F2KENHCKQWCLWHR.png&filename=display pin 1.PNG)
![display pin 2.PNG](/proxy/?url=https://content.instructables.com/FWT/3I57/KQWCLWF3/FWT3I57KQWCLWF3.png&filename=display pin 2.PNG)
![display pin.PNG](/proxy/?url=https://content.instructables.com/FX0/0BQZ/KQWCLWF4/FX00BQZKQWCLWF4.png&filename=display pin.PNG)
Solder the 4 pins provided with the blue display.
Solder Pull Up Resistor
![Pull up.PNG](/proxy/?url=https://content.instructables.com/FO9/OQ6U/KQWCLYUZ/FO9OQ6UKQWCLYUZ.png&filename=Pull up.PNG)
![pull up 1.JPG](/proxy/?url=https://content.instructables.com/F2S/BZP6/KQWCLYUX/F2SBZP6KQWCLYUX.jpg&filename=pull up 1.JPG)
![pull up 2.JPG](/proxy/?url=https://content.instructables.com/FMH/DIWT/KQWCLYUY/FMHDIWTKQWCLYUY.jpg&filename=pull up 2.JPG)
The rotary coder needs a pull up resistor in order to detect when you push the embedded button.
The resistor should be solder between the 3.3v and the N°27 input
Solder the Speaker
![speaker.JPG](/proxy/?url=https://content.instructables.com/F2R/1FIR/KQWCLZA5/F2R1FIRKQWCLZA5.jpg&filename=speaker.JPG)
![speaker 1.JPG](/proxy/?url=https://content.instructables.com/FNS/4IQ4/KQWCLZOM/FNS4IQ4KQWCLZOM.jpg&filename=speaker 1.JPG)
Solder two wires female-male on the speaker and bend them at 90°.
Solder the Red and White LED
![led white and red.JPG](/proxy/?url=https://content.instructables.com/FOY/MP14/KQWCM0Y6/FOYMP14KQWCM0Y6.jpg&filename=led white and red.JPG)
![led white and red 1.JPG](/proxy/?url=https://content.instructables.com/FWR/NAMT/KQWCM0Y7/FWRNAMTKQWCM0Y7.jpg&filename=led white and red 1.JPG)
Solder a 220 ohms resistor on each cathode and solder the two cathodes together.
Solder Blue LEDs
![led bleu 1.JPG](/proxy/?url=https://content.instructables.com/FSL/XYLD/KQWCM224/FSLXYLDKQWCM224.jpg&filename=led bleu 1.JPG)
![led bleu.JPG](/proxy/?url=https://content.instructables.com/FWY/UYP7/KQWCM223/FWYUYP7KQWCM223.jpg&filename=led bleu.JPG)
Solder the two blue leds in parallel.
Glue Speaker
![glue speaker.JPG](/proxy/?url=https://content.instructables.com/FIC/ZXAI/KQWCM36L/FICZXAIKQWCM36L.jpg&filename=glue speaker.JPG)
![glue speaker 2.JPG](/proxy/?url=https://content.instructables.com/FI3/FFG4/KQWCM36M/FI3FFG4KQWCM36M.jpg&filename=glue speaker 2.JPG)
![glue speaker 3.JPG](/proxy/?url=https://content.instructables.com/FHF/T71F/KQWCM36N/FHFT71FKQWCM36N.jpg&filename=glue speaker 3.JPG)
Put a drop on the edge of the speaker and put inside the model
Put the Connector
![Connector.JPG](/proxy/?url=https://content.instructables.com/FX7/7XE4/KQWCM48P/FX77XE4KQWCM48P.jpg&filename=Connector.JPG)
![connector 2.JPG](/proxy/?url=https://content.instructables.com/FON/OGZV/KQWCM48Q/FONOGZVKQWCM48Q.jpg&filename=connector 2.JPG)
Connect two wires (male-male) to the connector et put it inside the model.
Normally you don't need to glue it, try just to push it.
Wago Terminals
![terminal.JPG](/proxy/?url=https://content.instructables.com/F2P/S1TW/KQWCM5F8/F2PS1TWKQWCM5F8.jpg&filename=terminal.JPG)
Connect the Wago terminals to the connector, one for the +5v (red) and one for de ground (black).
Connect 4 red wires (male-female) and 4 black wires (male-female), these will be used to supply every module/component
Put the Coder
![coder 2.JPG](/proxy/?url=https://content.instructables.com/FVN/YD2H/KQWCM5WD/FVNYD2HKQWCM5WD.jpg&filename=coder 2.JPG)
![coder.JPG](/proxy/?url=https://content.instructables.com/FFC/Z0N4/KQWCM5WC/FFCZ0N4KQWCM5WC.jpg&filename=coder.JPG)
Put the rotary coder in the hole behind the body.
You should glue it with the super glue.
Put the Display
![put display.JPG](/proxy/?url=https://content.instructables.com/F51/WEDY/KQWCM68W/F51WEDYKQWCM68W.jpg&filename=put display.JPG)
![put display 1.JPG](/proxy/?url=https://content.instructables.com/F5W/IHIM/KQWCM68Y/F5WIHIMKQWCM68Y.jpg&filename=put display 1.JPG)
Put the display in the hole provided for the purpose.
Normally you don't need to glue it.
Wiring Every Component
![R2D2 Wiring.jpg](/proxy/?url=https://content.instructables.com/FKM/WK8I/LMW1JR8Q/FKMWK8ILMW1JR8Q.jpg&filename=R2D2 Wiring.jpg)
Follow the wiring diagram to connect every module/component
Glue the Coder Button
![glue button 1.JPG](/proxy/?url=https://content.instructables.com/FDY/K6NA/KQWCMM0H/FDYK6NAKQWCMM0H.jpg&filename=glue button 1.JPG)
![glue button.JPG](/proxy/?url=https://content.instructables.com/FH5/WRJZ/KQWCMLPR/FH5WRJZKQWCMLPR.jpg&filename=glue button.JPG)
Leave a little gap between the body and the button in order to have enough space to push the button.
Glue Leds in the Head
![glue led.JPG](/proxy/?url=https://content.instructables.com/F45/WA7P/KQWCM6IV/F45WA7PKQWCM6IV.jpg&filename=glue led.JPG)
![glue led 1.JPG](/proxy/?url=https://content.instructables.com/FA2/VMES/KQWCM6IU/FA2VMESKQWCM6IU.jpg&filename=glue led 1.JPG)
![glue led 2.JPG](/proxy/?url=https://content.instructables.com/FR5/73TP/KQWCM6IW/FR573TPKQWCM6IW.jpg&filename=glue led 2.JPG)
Upload the Code
![Upload code.JPG](/proxy/?url=https://content.instructables.com/FKI/MRET/KQWCMKIH/FKIMRETKQWCMKIH.jpg&filename=Upload code.JPG)
![Upload code 2.JPG](/proxy/?url=https://content.instructables.com/FA3/9A1S/KQWCMKMK/FA39A1SKQWCMKMK.jpg&filename=Upload code 2.JPG)
![Upload code 3.JPG](/proxy/?url=https://content.instructables.com/F9G/8DO3/KQWCMKMJ/F9G8DO3KQWCMKMJ.jpg&filename=Upload code 3.JPG)
![Upload code 1.JPG](/proxy/?url=https://content.instructables.com/FN7/MCH0/KQWCMKMI/FN7MCH0KQWCMKMI.jpg&filename=Upload code 1.JPG)
![Upload code 4.JPG](/proxy/?url=https://content.instructables.com/FGQ/XGZJ/KQWCML0U/FGQXGZJKQWCML0U.jpg&filename=Upload code 4.JPG)
Code : https://github.com/jejelinge/R2D2_CLOCK_AND_TIMER
Libraries :
- TM1637 by Avishay orpaz
- Wifimanager by Tablatronix or Tzapu
- Ntpclient By Fabrice Weinberg
- DFRobotDFPlayerMini by DFRobot
- ai esp32 rotary encoder by Igor Antolic
Load MP3 Files on SD Card
![MP3 card.JPG](/proxy/?url=https://content.instructables.com/F6F/9B1A/KQWCMNC1/F6F9B1AKQWCMNC1.jpg&filename=MP3 card.JPG)
Important : You have to create a mp3 folder in the root of your SD card and put the mp3 files in it.
Lock the Head
![put everything inside.JPG](/proxy/?url=https://content.instructables.com/FBY/SELO/KQWCMM9P/FBYSELOKQWCMM9P.jpg&filename=put everything inside.JPG)
![code.JPG](/proxy/?url=https://content.instructables.com/FBO/AUFZ/KQWCMM9Q/FBOAUFZKQWCMM9Q.jpg&filename=code.JPG)
Be carefull when you put everything inside the model, because some wires can unplug.
You Made It !
![Miniature_Instructable.jpg](/proxy/?url=https://content.instructables.com/F9J/4CA2/LFV4LQHP/F9J4CA2LFV4LQHP.jpg&filename=Miniature_Instructable.jpg)