Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
NTP Clock on ESP8266
Greetings all...
The ESP8266 is another WiFi capable board that's available and affordable. They're a bit slower and have less memory and fewer pins than the ESP32 but are fine for many WiFi applications, like a clock.? Since I have a couple ESP8266 NodeMCU boards left over from another project, I thought I'd see if I could port Bruce's NTP clock code to run on one. It was pretty easy to get it going (an additional board definition, one line of code, and a few wiring changes) so if anyone's interested, let me know & I'll post the details. Thanks to Bruce for sharing his clock projects. One can never have too many clocks.? :) 73...???? Mark??? AA7TA |
On Amazon.com, 3 pieces of the ESP8266 cost $13.99 and one ESP32 costs
toggle quoted message
Show quoted text
$10.99, so yeah! Perfect for making clocks. Please post the details. Regards, Ken, KM4NFQ "Not Fully Qualified" /g/w8bhMorseTutor On Mon, Jan 18, 2021 at 3:30 PM Mark M <junquemaile@...> wrote:
|
OK...here it is...
Follow the steps in Bruce's write-up (http://w8bh.net/NTP_DualClock.pdf) with these changes: - In the IDE, add this URL to the Additional Boards Manager URLS list in Preferences: https://arduino.esp8266.com/stable/package_esp8266com_index.json - In the Boards Manager install the esp8266 board - Modify the User_Setup.h file in your TFT_eSPI library directory. I saved the existing file and created a new one with only these lines: //TFT Defs for ESP8266 #define ILI9341_DRIVER #define TFT_MOSI PIN_D7 #define TFT_MISO PIN_D6 #define TFT_SCLK PIN_D5 #define TOUCH_CS -1 #define TFT_CS?? PIN_D8 #define TFT_DC?? PIN_D3 #define TFT_RST? -1 #define LOAD_GLCD? ? #define LOAD_FONT2 ? #define LOAD_FONT4 ? #define LOAD_FONT6 ? #define LOAD_FONT7 ? #define LOAD_FONT8 ? #define LOAD_GFXFF #define SPI_FREQUENCY? 40000000 #define SPI_READ_FREQUENCY? 20000000 #define SPI_TOUCH_FREQUENCY? 2500000 - Change the wiring from the display to the board: ? Display pin 3 to D8 on the 8266 ????????? ? ? ? ? ?? 5 to D3 ???????? ? ? ? ? ??? 6 to D7 ???????? ? ? ? ? ??? 7 to D5 ???????? ? ? ? ? ??? 9 to D6 ? The other display pin connections are the same as in Bruce's write-up. - In the source code, change the line ?#include <WiFi.h> ? to ?#include <ESP8266WiFi.h> - From the Tools menu, select 'ESP8266 Boards' and then select the board you're using, 'Generic ESP8266 Module' worked for me - Compile and Upload I hope this makes sense. If you have any questions, let me know & I'll try to help. The three boards for $14 are the ones I used. 73...???? Mark????? AA7TA |
Hello Mark AA7TA,
toggle quoted message
Show quoted text
Thank you for your reply with all the details for using an ESP8266 module for an NTP clock. The instructions you posted look very straight forward. Regards, Ken, KM4NFQ "Not Fully Qualified" /g/w8bhMorseTutor On Tue, Jan 19, 2021 at 9:49 PM Mark M <junquemaile@...> wrote:
|
to navigate to use esc to dismiss