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.
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
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.
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
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/
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.
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?
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.
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?
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
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
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.
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
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
Which timezone are you using in the code?
I’ll test it with your timezone to check it out.
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
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.
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.