Essential Guide to Configuring ESP8266 with Arduino

Follow us on WeChat “DLGG Maker DIY
Set as “Starred”, heavy content will be delivered to you first.

Friends often ask about the configuration methods for Arduino development with ESP8266. Today, based on previous articles, I am updating the offline installation package for everyone’s convenience in development.

The previous article by expert cr4fun on creating an NTP client with nodemcu to obtain and display internet time will not be deleted. You can check it out through the link below: 【DIY】Essential Guide: Practical Arduino Tutorial for Getting Internet Time with ESP8266, Creating NTP Client with nodemcu.

The traditional method for installing the ESP8266 board library in Arduino can be found below, or: check through the link: 【DIY】Essential Guide: Practical Arduino Tutorial for Getting Internet Time with ESP8266, Creating NTP Client with nodemcu.

Due to various reasons that you understand, downloading the board library through Arduino may not be successful. Today, I am sharing an offline installation package provided by netizen: Shoujiu Yige Meng.

Installation package version: package_2.7.1

Installation method: Double-click the exe to install automatically.

Notes: None

Below is the previous article by cr4fun on creating an NTP client with nodemcu to obtain and display internet time

Today, I am using ESP8266 (nodemcu) to make an internet time display, which accurately and efficiently retrieves time from the internet, simple and straightforward, without needing to synchronize. A detailed beginner tutorial!

According to international practice, let’s show the finished product first:

Essential Guide to Configuring ESP8266 with Arduino As shown in the picture, if you tie two ropes, it can also be called a watch.

Materials:

tm1637: 1 piece of 4-digit display

NodeMCU: 1 piece of esp8266 development board

microUSB: 1 power cable

Dupont wires: 4 pieces

That’s all, very cheap, estimated at 20 yuan with free shipping!

Development Environment and Configuration

Install arduino, and obtain esp8266 support in arduino, add the following to preferences:

https://arduino.esp8266.com/stable/package_esp8266com_index.json

Essential Guide to Configuring ESP8266 with Arduino

Open the board manager, search for esp8266, and install it.

Essential Guide to Configuring ESP8266 with Arduino

After installation, you can select NodeMCU1.0 (ESP-12E Module) in the board options.

Essential Guide to Configuring ESP8266 with Arduino

Then open the library manager, search for tm1637 (4-digit display driver), and click install as shown below.

Essential Guide to Configuring ESP8266 with Arduino

Next, continue to install wifimanager

Essential Guide to Configuring ESP8266 with Arduino

The role of wifimanager is to configure the network.

Hardware Connection

tm1637’s CLK corresponds to nodeMCU’s D0 (gpio 16)

tm1637’s DIO corresponds to nodeMCU’s D4 (gpio 2)

Essential Guide to Configuring ESP8266 with Arduino

Software

The source code is here: https://github.com/hello-esp8266/arduino-tm1637-clock (a bit long, not pasting it)

Usage Method

After burning, power on again, and you will find a hotspot named ClockAP. This hotspot has no password, just connect directly. After connecting, enter 192.168.4.1, and you will see the following interface:

Essential Guide to Configuring ESP8266 with Arduino

Click config wifi, enter your router’s hotspot and password for configuration.

Essential Guide to Configuring ESP8266 with Arduino

Then click the save button.

At this point, the following interface will appear.

Essential Guide to Configuring ESP8266 with Arduino

Because the esp8266 has connected to the hotspot you set (router), its own hotspot will no longer be open. At this point, your electronic clock should already be displaying the time (if your hardware is fine and all connections are correct).

Essential Guide to Configuring ESP8266 with Arduino

▼Download link for ESP8266 offline installation package ▼

Follow WeChat account 【DLGG Maker DIY】

Send “ESP8266 Offline” in the background to get the download address

Leave a Comment

×