Program watch using ESP8266 D1 Mini and SH1106

I would like to create an IR Beam-break personal agility timer application using a wearable wristwatch. Several of the watches mentioned they used an ESP8266 D1 mini for a WiFi controller
and an SH1106 OLED display.

I hacked a D1 mini and SH1106 together and have completed the programming using Arduino and it works in its expanded size. BUT... I tried using two different reprogrammable watches and none of them will display on the SH1106 (the rest of the functionality is working as printed out through the serial port.

I saw the adafruit Bangle js, but I don't know javascript so I would like another solution

if you've had any success programming a wristwatch and displaying to an OLED display, please respond to me.

I'm attaching the code I use to display on the components to see if I did anything wrong and can reprogram a watch.

/*

 */
#include <Wire.h> // Enable this line if using Arduino Uno, Mega, etc.#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SH110X.h>

#define i2c_Address 0x3c //initialize with the I2C addr 0x3C Typically eBay OLED's

#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1   //   QT-PY / XIAO
Adafruit_SH1106G display = Adafruit_SH1106G(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

void setup() {
  Serial.begin(9600);

  display.begin(i2c_Address, true); // Address 0x3C default

  display.clearDisplay();
  display.display();

  display.setCursor(48, 32);
  display.setTextSize(6);
  display.setTextColor(SH110X_WHITE);
  display.print("H");
  display.display();


  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, LOW);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  display.setTextColor(SH110X_BLACK);
    display.setCursor(48, 32);
    display.setTextSize(6);
  display.print("H");
  display.display();
  delay(1000);                      // wait for a second
  digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
  display.setTextColor(SH110X_WHITE);
    display.setCursor(48,32);
    display.setTextSize(6);
  display.print("H");
  display.display();
  delay(1000);
}

Maybe try a different display library?

GitHub - rene-mt/esp8266-oled-sh1106: Driver for the SH1106 based 128x64 pixel OLED display running on the Arduino/ESP8266 platform

Another lean one:
GitHub - costonisp/ESP8266-I2C-OLED: A I2C screen to show messages received from a client-browser.

I've had success with D1 mini and SH1106, but not as a wristwatch. So I guess you don't want my help?

Thanks so much for your response. Yes, I already have a D1 and an SH1106 working. I’m not certain why the wristwatch version doesn’t work. That was my question. However, any suggestions are welcome

What is that, exactly? Please post links or photos.

In response to the person who said it would be helpful to add pictures and links... Above is the schematic of the D1 mini board I've had manufactured showing the pinouts from the D1 mini and the pinouts from the header I used to connect to the SH1106 :

What I can't make work is : https://www.makerfocus.com/products/wifi-test-tool-esp8266-wifi-deauther-watch-v2-dstike-nodemcu?variant=32691317768269
I also tried without success is : https://www.makerfocus.com/products/esp8266-development-board-dstike-wifi-deauther-mini-with-1-3inch-oled-display?variant=31426260467789

What is working is my own ESP8266 D1 mini is https://www.makerfocus.com/products/2pcs-d1-mini-nodemcu-4m-bytes-lua-wifi-development-board?_pos=1&_sid=167c522aa&_ss=r
With a corresponding: http://hiletgo.com/ProductDetail/2157359.html

And, finally, if you are interested, here's a youtube link to my youtube channel showing a working prototype and what I'm trying to accomplish with the wristwatch: https://youtu.be/aL-4MRxkSlY

Any help would be appreciated



|
MakerFocus 2pcs D1 Mini NodeMcu 4M Bytes Lua WiFi Development Board Base on ESP8266 ESP-12F
MakerFocus 2pcs D1 Mini NodeMcu 4M Bytes Lua WiFi Development Board Base on ESP8266 ESP-12F
www.makerfocus.com
|

  • | - |



|
MakerFocus ESP8266 Development Board DSTIKE WiFi Deauther Mini with 1.3inch OLED Display
MakerFocus ESP8266 Development Board DSTIKE WiFi Deauther Mini with 1.3inch OLED Display
www.makerfocus.com
|

  • | - |



|
WiFi Test Tool ESP8266 WiFi Deauther Watch V2 DSTIKE NodeMCU Programmable Development Board
Description:MakerFocus WiFi Test Tool ESP8266 WiFi Deauther Watch V2 DSTIKE NodeMCU ESP8266 Programmable Development Board Built in 800mAh Battery with OLED Dispaly, Wristband and 3D Printing CaseDSTIKE Deauther Watch V2What is it?Deauther Watch is an ESP8266 development board, but you can wear it like a smartwatch.Thi
www.makerfocus.com
|

  • | - |

Screen Shot 2023-03-11 at 12.01.34 PM.png

Screen Shot 2023-03-11 at 12.02.24 PM.png

Your original post makes much more sense now, you definitely should have included this information there!

Have you tried running i²c scanner sketch on the watch to verify the address of the oled?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.