Moon Phase Clock

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)
AliExpress➡️ Buy Option 1  Buy Option 2

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

Comments

  1. Unfortunately my router or my ISP will not let me connect to https://svs.gsfc.nasa.gov/
    Tried different DNS
    My phones 4G connection can see it but not my LAN.

    ReplyDelete
  2. Arre the move phases set for northern or southern hemisphere

    ReplyDelete
  3. I'm getting a compile error where it can't find lvgl_conf.h Did I miss something already explained ?
    thanks

    ReplyDelete
  4. 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.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Does it work though? I emailed the author but not had a reply. I'd really like to get this working, such a neat project.

      Delete
    2. I 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....

      Delete
    3. Gareth, can you share the fix ?

      Delete
  6. I would, but ATM its not working. Tried a different display, still nowt....

    ReplyDelete
  7. I got it working ! Pretty sure the main issue was the memory confi in lv_conf.h. I will confirm and report back.

    ReplyDelete
    Replies
    1. #define LV_MEM_CUSTOM 0 in lv_conf.h, was set to CUSTOM which uses PSRAM
      My esp32 doesn't have PSRAM (WROOM)

      Delete
  8. getting -1 with this line of code
    " int httpCode = http.GET(); " Do you have an idea why?
    Won't get the moon data

    ReplyDelete
    Replies
    1. It seems something wrong with accessing the dial-a-moon data, trying to figure out why.
      Accepts Https for other sites, but not Nasa url.

      Delete

Post a Comment