Make a WIFI World Clock

by lspoplove in Circuits > Arduino

5208 Views, 66 Favorites, 0 Comments

Make a WIFI World Clock

SAM_2453.jpg
SAM_2455.jpg
SAM_2451.jpg
SAM_2450.jpg

Almost all the OLED look like the same.

I always want to make it look more compact.

So I made this tiny 1.3 OLED. I call it "X-OLED".

Then I develop a project called "X-project".

All the shields or control boards' shape should be limited as X-OLED's shape.

Now my project has two things: X-8266 and X-OLED.

X-8266 is a tiny NodeMCU.

Its circuits is almost the same like NodeMCU.

X-OLED's power pins and data pins are on the two side of the board.

It is easy to use something to cover the pins.

Prepare

SAM_2410.jpg
SAM_2448.jpg
SAM_2391.jpg
SAM_2449.jpg

X-8266 x1

X-OLED x1

18650 battery shield V2 x1

Simple 3D printed case X1

Coding

x8266.jpg
SAM_2457.jpg
SAM_2458.jpg
SAM_2462.jpg

You can have a look at the pin map.

SDA is connected to D1.

SCL is connected to D2.

This two pins work as the IIC pins.

The other pins can be connected to other sensors.

The X-8266 can really do a lot of IOT works.

Here I will thank squix. He really do a great work for ESP8266 controlling OLED.

Here is my code:

https://github.com/lspoplove/D-duino/blob/master/A...

Remember change the library.

#include "SH1106.h"

SH1106 display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);