• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

world date and time example in e-book using dev module

Q&A Forum › world date and time example in e-book using dev module
0 Vote Up Vote Down
Henry Patterson asked 5 months ago
22 Answers
0 Vote Up Vote Down
Henry Patterson answered 5 months ago

the display shows nothing it stays black.
The connecting never ends although the ssid and password are correct.
The library files are exactly the same as in the book including the same versions.
i had the problem of memory but changing the partition information to the exact same selection as in the e-book removed that problem. 
The program is a miserable failure.
Apart from selecting the suggested esp32 dev module, I have also tried with the ESP32.2432S028 CYD board selection with the same result, No display and not connecting, just continuous points.
The ssid and password are the same as on the computer that I run the ide Arduino 2.3.3
WTF.

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
Do you get any errors on the Serial Monitor?
When you get just dots, it means that it is not connecting to the internet.
Please note that uppercase and lowercase matter as well as spaces.
Sometimes when copying the SSID and password from somewhere, an extra space is added at the end. Make sure that extra space, that doesn’t belong there, is removed.
 
I hope this helps.
 
Regards,
Sara

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Do you get any errors on the Serial Monitor?

No only connecting for hours then finally a general error – Transport closed

When you get just dots, it means that it is not connecting to the internet.

I know that it is written in the program.

Please note that uppercase and lowercase matter as well as spaces.
Sometimes when copying the SSID and password from somewhere, an extra space is added at the end. Make sure that extra space, that doesn’t belong there, is removed.

I don’t copy and paste ssid or password and I always triple check for typing errors.

Iknow that my CYD does connect to my wifi so it is not faulty. I have checked that using the program MARAUDER. which later of course I removed.

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
I just checked and we don’t have any examples dedicated to displaying date and time in the eBook.
Are you referring to the project on page 374?
Or are you referring to this example on our blog: https://randomnerdtutorials.com/esp32-cyd-lvgl-digital-clock/?
 
Either way, both examples use the worldtimeapi website: https://worldtimeapi.org
 
I’m not sure why, but some of our readers had problems accessing their website using the domain name, but could access it using the IP.
 
So, just to make sure the problem is not related to that, change the following

worldtimeapi.org

with

213.188.196.246

For example, use this:

String url = String("http://213.188.196.246/api/timezone/") + timezone;

Instead of this:

String url = String("http://worldtimeapi.org/api/timezone/") + timezone;

 
However, I think that your problem is not related to this, but some issue connecting to Wi-Fi.
 
Regards,
Sara 
 

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

I made the mistake.
The program is not in the book, it is one of your previous tutorials.
It begins like this:

/* Rui Santos & Sara Santos – Random Nerd Tutorials – https://RandomNerdTutorials.com/esp32-cyd-lvgl-digital-clock/ | https://RandomNerdTutorials.com/esp32-tft-lvgl-digital-clock/
THIS EXAMPLE WAS TESTED WITH THE FOLLOWING HARDWARE:
1) ESP32-2432S028R 2.8 inch 240×320 also known as the Cheap Yellow Display (CYD): https://makeradvisor.com/tools/cyd-cheap-yellow-display-esp32-2432s028r/

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Have you tried my suggestions?
Regards,
Sara

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Yes I have replaced the api in the string with:

String url = String("http://213.188.196.246/api/timezone/") + timezone;

The result is exactly the same.Black screen connecting forever.
The RGB led on the back is on red.

 

0 Vote Up Vote Down
Rui Santos Staff answered 5 months ago

What exactly do you see in the Arduino IDE serial Monitor?
Do you see “an infinite” amount of dots constantly being printed very half second?

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Hello Rui,
Yes that’s all I get after the setup arriving to connecting then just ……….. Forever.
I have since reloaded the Marauder program and it strikes up perfectly in 2 minutes. I can see it registering all WiFi signals in my area. However I remove that after testing the CYD capability of connecting the WiFi.
 

0 Vote Up Vote Down
Rui Santos Staff answered 5 months ago

Unfortunately that issue means that your ESP32 is not establishing a Wi-Fi connection with your router… As Sara mentioned, it looks like your SSID/PASSWORD is incorrect… Or your router is not allowing the ESP32 to connect.

  • Does your router support 2.4GHz?
  • Have you been able to upload other ESP32 projects (web servers) where the CYD has an internet connection?
0 Vote Up Vote Down
Henry Patterson answered 5 months ago
My router supports both 2.4 GHZ and 5 GHZ
Yes I have been able to load MARAUDER on the CYD 2.8
then disconnected from my computer I have connected it to a power bank.
Then it makes web searches by WiFi connection and shows me all the WiFi points locally found.
That way I am sure my CYwith that of Marauder.
The Marauder program is available on github.D is not faulty.
I m unable to determine the reason why your program does not connect.
I don't have the knowledge to compare the ability of your linking prosess
0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi
Can you test the following code on the CYD board? 
https://gist.github.com/sarasantos/70c50936d7818ac30fcf251889bb30a9
Don’t forget to insert your network credentials in the code.
After uploading, open the Serial Monitor and press the board RST button.
Let me know if you get the board IP address on the serial monitor.
 
Regards,
Sara

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

This is a copy of the messages in the serial monitor. Nothing else.
Monitor Serie X
Mensaje (Intro para mandar el mensaje de ‘ESP32 Dev Module’ a ‘COM3’)
…………………….ets Jul 29 2019 12:21:46
rst: 0x1 (POWERON_RESET), boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP: 0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030, len:4832
 
 
Nothing else is output. The cyd stays black with red led on.
 

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Ignore my last message!
I forgot to scroll down to the end of the monitor message.
 
It prints: Connecting to WiFi …… 192.168.1.148

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Ignore my last message!
I forgot to scroll down to the end of the monitor message.
 
It prints: Connecting to WiFi …… 192.168.1.148

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Which timezone are you using in the code?
I’ll test it with your timezone to check it out.

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Madrid
Central European time.

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
Does your timezone variable look like this?

const char* timezone = "Europe/Madrid";

 
I just tested it and it is working as expected. At this point, I’m out of ideas of what might be wrong. 
The error you were getting is usually an issue related to connecting to Wi-Fi. But, as you mentioned, you were able to connect to Wi-Fi with your credentials… 
 
 
I tested the tutorial again, the board connects just fine to the WorldTimeAPI  website and that timezone is also working as expected.
 
I’m really sorry, but at this point, I don’t know how to help you further.
 
Regards,
Sara
 
 

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

I am going to test this program with another cyd. I will receive it soon.

I am thinking there must be something flakey with this one. I will let you know in a day or two. Thanks so much for your effort.

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Ok.
Then, let me know.
Regards,
Sara

0 Vote Up Vote Down
Henry Patterson answered 5 months ago

Hello Sara,
I got the new CYD and have tried the clock program….. It works fine.
It still doesn’t work on the first cyd.
It is evident that your program is good and that there is something strange about the first cyd.
Thanks a lot for your support.

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Great.
Thanks for letting me know.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.