Internet clock with live moon phase with moon photo. Basically there are 30 pre processed moon images of different moon phases and the ESP32 fetches moon data from NASA API and shows corresponding moon photo on screen. This project is inspired by nishad2m8's moon phase clock.
I'm using a 1.28" 240x240 pixels round display with GC9A01 driver.
1. D1 mini ESP32 (Type-C USB CP2104 version)
2. 1.28" GC9A01 display (7 Pin Version)
AliExpress➡️ Buy option 1 Buy option 2
Circuit Diagram:
Code:
This project's source code is free and available on my github
Setup guideline:
I've made a pdf guideline in the drive link below
If you face any problems with the project, feel free to send me e-mail with a subject "moon phase" to abid.business01@gmail.com




Unfortunately my router or my ISP will not let me connect to https://svs.gsfc.nasa.gov/
ReplyDeleteTried different DNS
My phones 4G connection can see it but not my LAN.
Arre the move phases set for northern or southern hemisphere
ReplyDeleteNorthern
DeleteThey’re the same . North and South have the same moon phase
DeleteI'm getting a compile error where it can't find lvgl_conf.h Did I miss something already explained ?
ReplyDeletethanks
update: i copied the lv_conf.h to the lvgl src under pio. Don't think that's a permanent fix, but it compiles now.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteDoes it work though? I emailed the author but not had a reply. I'd really like to get this working, such a neat project.
DeleteI asked Co-pilot to check it for me and fix it. It did in a few minutes. Now uploaded and just wiring the display. Remarkable....
DeleteGareth, can you share the fix ?
DeleteI would, but ATM its not working. Tried a different display, still nowt....
ReplyDeleteI got it working ! Pretty sure the main issue was the memory confi in lv_conf.h. I will confirm and report back.
ReplyDelete#define LV_MEM_CUSTOM 0 in lv_conf.h, was set to CUSTOM which uses PSRAM
DeleteMy esp32 doesn't have PSRAM (WROOM)
getting -1 with this line of code
ReplyDelete" int httpCode = http.GET(); " Do you have an idea why?
Won't get the moon data
It seems something wrong with accessing the dial-a-moon data, trying to figure out why.
DeleteAccepts Https for other sites, but not Nasa url.