Rpi Zero StarWars Clock

JavaFX Based StarWars Clock on SPI Display.

Similar projects worth following
Easy Clock.. The clock scrolls to mid of Screen, stays 50 Seconds and scrolls out of Screen every Minute. For a useful feature I installed MPD as Internet Radio , operated by a Android phone .

If you deal without WLAN and any Higher Timesync, you can use different Ways to give your Zero a Time Sync Option. In most ways you can use ESP8266 2$ Serial PCB, DS3231 i2C or any RTC to Sync Your Time. Many Solutions are available Online to get it Work without any USB Devices.

So that you have only connected RTC and Display to 6 GPIO Pins.

In Future: Alarms, Arduino/AVR based Power consumption Tricks and Control. ESP8266 used for Timesync and webfrontend.

  • 1 × Raspberry Zero
  • 1 × DIY Single Sided PCB, HY28B or any compatible TFT Adapter
  • 1 × Any FBTFT compatible LCD

  • 1
    Step 1

    Based on Rapbian Wheezy without any DesktopManager, uninstalled LightDM, Java8FX Engine writes JavaFX direct to Framebuffer.

    Good instructions, but many tricky

    EDIT /boot/config.txt like:

    # uncomment to force a specific HDMI mode (this will force VGA)
    hdmi_cvt=320 240 60 1 0 0 0
    # uncomment to force a HDMI mode rather than DVI. This can make audio work in
    # DMT (computer monitor) modes
    # uncomment to increase signal to HDMI, if you have interference, blanking, or
    # no display
    # uncomment for composite PAL
    # Uncomment some or all of these to enable the optional hardware interfaces

  • 2
    Step 2

    Install fbcp to copy Main Framebuffer to LCD-Framebuffer.

         sudo apt-get install cmake git
         git clone
         cd rpi-fbcp/
         mkdir build
         cd build
         cmake ..
         install fbcp /usr/local/bin/fbcp

  • 3
    Step 3

    Create as Code example.

    #On Staging kernel not needed
    #sudo modprobe fbtft dma
    #Example for hy28B
    sudo modprobe fbtft_device name=hy28b fbtft_device.speed=3000000 rotate=90 fbtft_device.fps=20
    sleep 10
    JAVAFX_DEBUG=1 java -Dcom.sun.javafx.experimental.embedded.3d=true -Dprism.glDepthSize=16 -jar /home/pi/StarWars.jar

View all 7 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates