SlideShare a Scribd company logo
1 of 12
Download to read offline
www.makerfabs.com
1
DIY ESP-Smartwatch
This ESPWatch starter Kit is for the beginners to learn how to create an ESP watch with detailed
guide, it is for the starters to dive into the electronic world, with 1~2 hours’ learning, a none-
electronic starter can create this ESP watch, to enjoy the joy of creating something by oneself.
The ESPWatch is based on ESP12 WIFI module, it gets the real
time from Internet server, and can also remote control the local
instruments, such as Relay/LED/Fan. With this learning, you will
learn the basic skill of components soldering/Arduino
Programming/ WIFI usage/Basic http protocol, the first& easy
step to get into the electronic/programming world.
There we also prepared simple case/watchband, so that you can get it works on your wrist
within few minutes. Are you ready to show this cool watch produced by yourself?
Spec:
1. Kits with detailed guide for learners;
2. Video for learning;
3. Based on Arduino IDE/ESP;
4. Real time watch + Remote control;
5. Open hardware+ Open software;
6. For ages 12+;
Pack list:
0.96inch IIC OLED X1 ESP-12S x1
Button x3 3.7V Lipo Battery x1
Micro USB x1 Switch x1
watchbandx1 Acrylic shell x1
Some resistors and capacitors Some of Copper column and screw
www.makerfabs.com
2
DIY ESP-Smartwatch Guide
1. Set up Arduino IDE
Follow the guide to setup Arduino IDE for ESP8266
https://arduino-esp8266.readthedocs.io/en/latest/installing.html
2. Hardware connection
2.1 Connect a battery
2.2 Connect GND, RX and TX to a USB-to-Serial adapter
Watch USB to Serial
GND  GND
TX  RX
RX  TX
3. Download the code to smart watch and relay
This example will get time from a NTP server, display date and time on OLED, and control the
relay through MQTT message bus.
3.1 Dependencies
 arduino-mqtt
 ThingPulse ESP8266 OLED SSD1306
 TimeLib
www.makerfabs.com
3
We can search "ntpclient","lwmqtt", "esp ssd1306" and "timekeeping" to find
these libraries in Library Manager. Then install them.
www.makerfabs.com
4
3.2 Use CloudMQTT as the broker here.
3.2.1 Signup CloudMQTT and create the instance
www.makerfabs.com
5
www.makerfabs.com
6
3.3 Download the sketches watch/watch.ino to the watch
3.3.1 Open the watch.ino sketches, change SSID and passowrd of the Wi-Fi, and
modify hostname, port, user and user_password for MQTT
www.makerfabs.com
7
3.3.2 Select the right board and com port
3.3.4 Hold the FLASH button; Power on the ESP8266 by the SW1 to put
ESP8226 into bootloader mode
www.makerfabs.com
8
3.3.5 Click the upload button, upload the code
www.makerfabs.com
9
3.4 Download the sketches relay/relay.ino to the relay module
3.4.1 Open the sketches, change SSID and passowrd of the Wi-Fi, and
modify hostname, port, user and user_password for MQTT
Noted: port must same as the watch.
3.4.2 ESP-01S: Use the ESP8266 debugger, auto reset when upload the code.
Same as the NodeMCU.
3.4.3 Plug the ESP-01 the ESP8266 debugger.
3.4.4 Open the sketches relay.ino
www.makerfabs.com
10
3.4.5 Select the right board
www.makerfabs.com
11
3.4.6 Click upload button upload the code.
www.makerfabs.com
12
4. Now you can use you smart watch to control
the relay.
4.1 Smart watch time display:
4.2 Use the buttons "S1" and "S2" to control the
Light and Fan.
1) Press the S1 select the Light control UI, press the S2
turn ON or turn OFF the light.
2) Press the S1 select the Fan control UI, press the S2
turn ON or turn OFF the Fan.

More Related Content

Similar to DIY ESPwatch Kit - DIY Smartwatch Usage

ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guidehandson28
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfWiseNaeem
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfWiseNaeem
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection systemAashiq Ahamed N
 
IoT Hands-On-Lab, KINGS, 2019
IoT Hands-On-Lab, KINGS, 2019IoT Hands-On-Lab, KINGS, 2019
IoT Hands-On-Lab, KINGS, 2019Jong-Hyun Kim
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduinoJosé Faria
 
All about ir arduino - cool
All about ir   arduino - coolAll about ir   arduino - cool
All about ir arduino - coolVlada Stoja
 
IoT: Internet of Things with Python
IoT: Internet of Things with PythonIoT: Internet of Things with Python
IoT: Internet of Things with PythonLelio Campanile
 
Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0Rawntech Mak
 
Cassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshopCassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshoptomtobback
 
comenzando con MATLAB y Simulink para Arduino
comenzando con MATLAB y Simulink para Arduinocomenzando con MATLAB y Simulink para Arduino
comenzando con MATLAB y Simulink para ArduinoSANTIAGO PABLO ALBERTO
 
Smart homes using android
Smart homes using androidSmart homes using android
Smart homes using androidDroidcon Berlin
 
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...AkshetPatel
 
Programando o ESP8266 com Python
Programando o ESP8266 com PythonProgramando o ESP8266 com Python
Programando o ESP8266 com PythonRelsi Maron
 
Advanced view arduino projects list use arduino for projects {2}
Advanced view arduino projects list   use arduino for projects  {2}Advanced view arduino projects list   use arduino for projects  {2}
Advanced view arduino projects list use arduino for projects {2}WiseNaeem
 
OWASP Cambridge Chapter Meeting 13/12/2016
OWASP Cambridge Chapter Meeting 13/12/2016OWASP Cambridge Chapter Meeting 13/12/2016
OWASP Cambridge Chapter Meeting 13/12/2016joebursell
 

Similar to DIY ESPwatch Kit - DIY Smartwatch Usage (20)

ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
 
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection system
 
IoT Hands-On-Lab, KINGS, 2019
IoT Hands-On-Lab, KINGS, 2019IoT Hands-On-Lab, KINGS, 2019
IoT Hands-On-Lab, KINGS, 2019
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
 
All about ir arduino - cool
All about ir   arduino - coolAll about ir   arduino - cool
All about ir arduino - cool
 
IoT: Internet of Things with Python
IoT: Internet of Things with PythonIoT: Internet of Things with Python
IoT: Internet of Things with Python
 
Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0Smart pos stepbystep-v2-0
Smart pos stepbystep-v2-0
 
Cassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshopCassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshop
 
comenzando con MATLAB y Simulink para Arduino
comenzando con MATLAB y Simulink para Arduinocomenzando con MATLAB y Simulink para Arduino
comenzando con MATLAB y Simulink para Arduino
 
Remote tanklevelmonitor
Remote tanklevelmonitorRemote tanklevelmonitor
Remote tanklevelmonitor
 
Esp8266 Workshop
Esp8266 WorkshopEsp8266 Workshop
Esp8266 Workshop
 
ppt2 (1).pptx
ppt2 (1).pptxppt2 (1).pptx
ppt2 (1).pptx
 
Smart homes using android
Smart homes using androidSmart homes using android
Smart homes using android
 
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
 
503
503503
503
 
Programando o ESP8266 com Python
Programando o ESP8266 com PythonProgramando o ESP8266 com Python
Programando o ESP8266 com Python
 
Advanced view arduino projects list use arduino for projects {2}
Advanced view arduino projects list   use arduino for projects  {2}Advanced view arduino projects list   use arduino for projects  {2}
Advanced view arduino projects list use arduino for projects {2}
 
OWASP Cambridge Chapter Meeting 13/12/2016
OWASP Cambridge Chapter Meeting 13/12/2016OWASP Cambridge Chapter Meeting 13/12/2016
OWASP Cambridge Chapter Meeting 13/12/2016
 

More from fanghe22

Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32fanghe22
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32fanghe22
 
Makerfabs Maduino Products
Makerfabs Maduino ProductsMakerfabs Maduino Products
Makerfabs Maduino Productsfanghe22
 
Makerfabs product showcase
Makerfabs product showcaseMakerfabs product showcase
Makerfabs product showcasefanghe22
 
Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.fanghe22
 
Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.fanghe22
 

More from fanghe22 (6)

Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
 
Makerfabs Maduino Products
Makerfabs Maduino ProductsMakerfabs Maduino Products
Makerfabs Maduino Products
 
Makerfabs product showcase
Makerfabs product showcaseMakerfabs product showcase
Makerfabs product showcase
 
Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.
 
Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.Makerfabs, Turnkey PCB Assembly Solution Provider.
Makerfabs, Turnkey PCB Assembly Solution Provider.
 

Recently uploaded

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 

Recently uploaded (20)

Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 

DIY ESPwatch Kit - DIY Smartwatch Usage

  • 1. www.makerfabs.com 1 DIY ESP-Smartwatch This ESPWatch starter Kit is for the beginners to learn how to create an ESP watch with detailed guide, it is for the starters to dive into the electronic world, with 1~2 hours’ learning, a none- electronic starter can create this ESP watch, to enjoy the joy of creating something by oneself. The ESPWatch is based on ESP12 WIFI module, it gets the real time from Internet server, and can also remote control the local instruments, such as Relay/LED/Fan. With this learning, you will learn the basic skill of components soldering/Arduino Programming/ WIFI usage/Basic http protocol, the first& easy step to get into the electronic/programming world. There we also prepared simple case/watchband, so that you can get it works on your wrist within few minutes. Are you ready to show this cool watch produced by yourself? Spec: 1. Kits with detailed guide for learners; 2. Video for learning; 3. Based on Arduino IDE/ESP; 4. Real time watch + Remote control; 5. Open hardware+ Open software; 6. For ages 12+; Pack list: 0.96inch IIC OLED X1 ESP-12S x1 Button x3 3.7V Lipo Battery x1 Micro USB x1 Switch x1 watchbandx1 Acrylic shell x1 Some resistors and capacitors Some of Copper column and screw
  • 2. www.makerfabs.com 2 DIY ESP-Smartwatch Guide 1. Set up Arduino IDE Follow the guide to setup Arduino IDE for ESP8266 https://arduino-esp8266.readthedocs.io/en/latest/installing.html 2. Hardware connection 2.1 Connect a battery 2.2 Connect GND, RX and TX to a USB-to-Serial adapter Watch USB to Serial GND  GND TX  RX RX  TX 3. Download the code to smart watch and relay This example will get time from a NTP server, display date and time on OLED, and control the relay through MQTT message bus. 3.1 Dependencies  arduino-mqtt  ThingPulse ESP8266 OLED SSD1306  TimeLib
  • 3. www.makerfabs.com 3 We can search "ntpclient","lwmqtt", "esp ssd1306" and "timekeeping" to find these libraries in Library Manager. Then install them.
  • 4. www.makerfabs.com 4 3.2 Use CloudMQTT as the broker here. 3.2.1 Signup CloudMQTT and create the instance
  • 6. www.makerfabs.com 6 3.3 Download the sketches watch/watch.ino to the watch 3.3.1 Open the watch.ino sketches, change SSID and passowrd of the Wi-Fi, and modify hostname, port, user and user_password for MQTT
  • 7. www.makerfabs.com 7 3.3.2 Select the right board and com port 3.3.4 Hold the FLASH button; Power on the ESP8266 by the SW1 to put ESP8226 into bootloader mode
  • 8. www.makerfabs.com 8 3.3.5 Click the upload button, upload the code
  • 9. www.makerfabs.com 9 3.4 Download the sketches relay/relay.ino to the relay module 3.4.1 Open the sketches, change SSID and passowrd of the Wi-Fi, and modify hostname, port, user and user_password for MQTT Noted: port must same as the watch. 3.4.2 ESP-01S: Use the ESP8266 debugger, auto reset when upload the code. Same as the NodeMCU. 3.4.3 Plug the ESP-01 the ESP8266 debugger. 3.4.4 Open the sketches relay.ino
  • 11. www.makerfabs.com 11 3.4.6 Click upload button upload the code.
  • 12. www.makerfabs.com 12 4. Now you can use you smart watch to control the relay. 4.1 Smart watch time display: 4.2 Use the buttons "S1" and "S2" to control the Light and Fan. 1) Press the S1 select the Light control UI, press the S2 turn ON or turn OFF the light. 2) Press the S1 select the Fan control UI, press the S2 turn ON or turn OFF the Fan.