Close
0%
0%

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 http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/RaspberryPiFX/raspberryfx.html

    EDIT /boot/config.txt like:

    # uncomment to force a specific HDMI mode (this will force VGA)
    hdmi_group=2
    hdmi_mode=87
    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
    #hdmi_drive=2
    
    # uncomment to increase signal to HDMI, if you have interference, blanking, or
    # no display
    #config_hdmi_boost=4
    
    # uncomment for composite PAL
    #sdtv_mode=2
    
    
    # Uncomment some or all of these to enable the optional hardware interfaces
    #dtparam=i2c_arm=on
    #dtparam=i2s=on
    dtparam=spi=on
    

  • 2
    Step 2

    Install fbcp to copy Main Framebuffer to LCD-Framebuffer.

         sudo apt-get install cmake git
         git clone https://www.github.com/tasanakorn/rpi-fbcp
         cd rpi-fbcp/
         mkdir build
         cd build
         cmake ..
         make
         install fbcp /usr/local/bin/fbcp
    

  • 3
    Step 3

    Create start.sh as Code example.

    #!/bin/sh
    #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
    fbcp&
    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?

Share

Discussions

Similar Projects

Does this project spark your interest?

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