Homemade Smart Watch

by akashv44 in Circuits > Wearables

19232 Views, 196 Favorites, 0 Comments

Homemade Smart Watch

Untitled design (1).png

Since they offer so many features in such a small form, smartwatches are incredibly exciting. But what actually distinguishes a cool smartwatch? It is unquestionably its appearance and qualities. Designing and building your own Smartwatch is the best approach to have customised features on it.

Using an ESP8266 chip, the ESP-12E, I will demonstrate how to build a DIY smartwatch in this project. I've written down every step.

The time, weather, and most significantly the ability to control other appliances using the watch's buttons are its key features. The watch must be linked to the internet in order to work because it receives all of its data online.


This is how it works:

1.Time: To obtain the time and date, the watch makes a connection to the closest NTP server.

2. Weather: The Yahoo Weather API is used to retrieve the temperature information.

3. Remotely operating other appliances: By connecting to the Blynk server, the watch can use its bridge feature to directly operate another ESP8266 Relay module.

Supplies

vlcsnap-2023-08-30-17h38m08s210.png
vlcsnap-2023-08-30-17h33m22s000.png
vlcsnap-2023-08-30-17h34m31s091.png
vlcsnap-2023-08-30-17h34m37s709.png

For Making Smart watch we need following Materials.

1) 1 x ESP-12e

2) 1 x OLED display

3) 3 x SMD buttons

4) 1 x 3.3V Voltage Regulator: You can get from an arduino uno or pro mini

5) 1 x TP4056

6) 2 x Small SMD buttons

7) 2 x 0603 LED

8) 2 x 0603 Resistor

9) 1 x SMD Slide Switch

10) 8 x 0805 10K Resistors

11) 2 x 0805 10uF Capacitor

12) 1 x 0603 112 Resistor

13) Hot Air Solder

14) 3.3 Volt Lipo Battery

Get PCB

vlcsnap-2023-08-30-17h33m22s000.png
vlcsnap-2023-08-30-17h33m25s131.png
vlcsnap-2023-08-30-17h34m24s824.png

I didn't want the watch to be bulky or heavy, so I decided that making a PCB would be the best approach to use less cables. I used EasyEDA to create the schematic and printed circuit board, then I ordered the PCBs from JLCPCB.

The PCB gerber file is provided here: https://github.com/theTechnowright/DIY-Smartwatch...

You can order a 2-layer PCB from JLCPCB.com by following the ninth step

Soldering

vlcsnap-2023-08-30-17h34m31s091.png
vlcsnap-2023-08-30-17h34m46s156.png
vlcsnap-2023-08-30-17h34m53s939.png
vlcsnap-2023-08-30-17h35m03s574.png
vlcsnap-2023-08-30-17h35m06s857.png
vlcsnap-2023-08-30-17h35m29s661.png
vlcsnap-2023-08-30-17h35m35s631.png
vlcsnap-2023-08-30-17h35m49s042.png
vlcsnap-2023-08-30-17h35m53s167.png
vlcsnap-2023-08-30-17h35m57s059.png
vlcsnap-2023-08-30-17h36m00s376.png
vlcsnap-2023-08-30-17h36m18s356.png

After that, solder each component to the PCB. For the SMD components and a hot air soldering gun for the THT components, respectively, I used soldering. I had no trouble soldering all the SMD components using the hot air soldering iron. But doing so is not insurmountably difficult.



Soldering ESP12E and OLED Display

vlcsnap-2023-08-30-17h34m37s709.png
vlcsnap-2023-08-30-17h36m34s246.png
vlcsnap-2023-08-30-17h36m41s878.png
vlcsnap-2023-08-30-17h37m02s293.png

Then take ESP12E and carefully place on PCB and using hot air soldering machine solder. Then turn PCB to front side and place OLED display and solder using soldering iron.

Power

vlcsnap-2023-08-30-17h37m11s730.png
vlcsnap-2023-08-30-17h37m16s014.png
vlcsnap-2023-08-30-17h37m22s181.png

Then take 3.3 volt Li-Po Battery and solder to + and - terminal of PCB.

Cut

vlcsnap-2023-08-30-17h37m35s946.png
vlcsnap-2023-08-30-17h37m42s513.png
vlcsnap-2023-08-30-17h37m50s261.png

Then remove extra part of PCB using cutting tool.

Belt

vlcsnap-2023-08-30-17h38m08s210.png
vlcsnap-2023-08-30-17h37m58s121.png
vlcsnap-2023-08-30-17h38m17s601.png
vlcsnap-2023-08-30-17h38m22s658.png
vlcsnap-2023-08-30-17h38m30s596.png
vlcsnap-2023-08-30-17h38m37s440.png

Then take one belt you liked and attach to this smart watch.

Software Installation

vlcsnap-2023-08-30-17h38m44s396.png
vlcsnap-2023-08-30-17h38m52s204.png
vlcsnap-2023-08-30-17h39m00s179.png
vlcsnap-2023-08-30-17h39m22s490.png
vlcsnap-2023-08-30-17h39m10s624.png
vlcsnap-2023-08-30-17h39m29s640.png

We must first obtain the Weather API from Yahoo Weather API before uploading the code. Visit the website, click on the green text beneath the YQL query, and scroll all the way to the bottom until you see the text "nome, ak." The name of your city and the country code should go here. As an illustration, I wrote "Bengaluru, IN," where "Bengaluru" refers to a city and "IN" to India.

Once you've done that, click the "Test" button below and copy the link provided under "Endpoint" from "/v1" all the way to the end.

Then go to this link to obtain the Arduino code: https://github.com/theTechnowright/DIY-Smartwatch-using-ESP8266/blob/master/ESP8266__SmartWatch.ino

Insert the Blynk Authentication code that you will get through email after creating a new Blynk Project first in the code. Input the WiFi SSID and password next.

'const String url = ""' should be replaced with the copied Yahoo API link. Insert the authentication code of the other ESP8266 that manages the relays under BLYNK_CONNECTED after that. In the final section, scroll down until you find "TimeChangeRule". Here, adjust the UTC time according to your time zone.


Then install all these arduino libraries :

Time.h & TimeLib.h: https://github.com/PaulStoffregen/Time

Timezone.h: https://github.com/JChristensen/Timezone

SSD1306.h & SSD1306Wire.h: https://github.com/JChristensen/Timezone

NTPClient.h: https://github.com/JChristensen/Timezone

ESP8266WiFi.h & WifiUDP.h: https://github.com/JChristensen/Timezone

Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases...

Now wire the 4 pin serial communicator to the USB-TTL convertor accordingly;

ESP-12eUSB-TTL Convertor

GND - GND

RST - RTS

RX - TXD

TX - RXD

On the arduino IDE, select your device as NodeMCU 1.0 and choose the correct COM port and upload the code. While uploading the code make sure to press and hold the flash button on the watch.

Working

ezgif.com-video-to-gif (1).gif
vlcsnap-2023-08-30-17h32m55s774.png
vlcsnap-2023-08-30-17h32m59s284.png
vlcsnap-2023-08-30-17h33m03s964.png
vlcsnap-2023-08-30-17h33m07s891.png

Now slide the switch to turn ON your watch. Then a notice stating "Connected to WiFi" ought to appear. If it does, you've made a successful smartwatch! Congratulation!

When the middle button is pressed, the watch shows the temperature, time, and date. The WiFi Relay module's two relays are controlled by the other two buttons. Any electrical item that is connected to the relay can be operated by the watch. Connecting it to an extended power outlet is the best course of action. Additionally, make sure the relay switch is connected to the live wire and not the neutral.

Order PCB

vlcsnap-2023-08-30-17h33m38s722.png
vlcsnap-2023-08-30-17h33m53s378.png
vlcsnap-2023-08-30-17h33m57s182.png
vlcsnap-2023-08-30-17h34m03s815.png
vlcsnap-2023-08-30-17h34m14s459.png
vlcsnap-2023-08-30-17h34m19s249.png

Visit www.jlcpcb.com and submit your gerber file to place an order for a PCB.

The PCB gerber file is provided here: https://github.com/theTechnowright/DIY-Smartwatch...

After two weeks, the PCBs showed up; for under $2, they were of decent quality.

Circuit schematic, PCB gerber file, and Arduino code are all available on Github:

https://github.com/theTechnowright/DIY-Smartwatch-...