Introduction: R2D2 Clock & Timer

TUTO VIDEO [English SUB] :

BUY ALL COMPONENTS HERE: https://jeje-linge.fr/en/products/r2d2-star-wars

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 !

Step 1: Components

  • 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

Step 2: 3D Printing

I printed every part with PLA, infill 20%, layer 0.2mm.

You need to use some support especially for the bottom of the body.

Step 3: Assembly

You can use super glue to assemble every part.

Check the video if you have some doubt.

Step 4: Painting

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.

Step 5: Solder Display's Pins

Solder the 4 pins provided with the blue display.

Step 6: Solder Pull Up Resistor

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

Step 7: Solder the Speaker

Solder two wires female-male on the speaker and bend them at 90°.

Step 8: Solder the Red and White LED

Solder a 220 ohms resistor on each cathode and solder the two cathodes together.

Step 9: Solder Blue LEDs

Solder the two blue leds in parallel.

Step 10: Glue Speaker

Put a drop on the edge of the speaker and put inside the model

Step 11: Put the Connector

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.

Step 12: Wago Terminals

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

Step 13: Put the Coder

Put the rotary coder in the hole behind the body.

You should glue it with the super glue.

Step 14: Put the Display

Put the display in the hole provided for the purpose.

Normally you don't need to glue it.

Step 15: Wiring Every Component

Follow the wiring diagram to connect every module/component

Step 16: Glue the Coder Button

Leave a little gap between the body and the button in order to have enough space to push the button.

Step 17: Glue Leds in the Head

Step 18: Upload the Code

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

Step 19: Load MP3 Files on SD Card

Important : You have to create a mp3 folder in the root of your SD card and put the mp3 files in it.

Step 20: Lock the Head

Be carefull when you put everything inside the model, because some wires can unplug.

Step 21: You Made It !