Code Monkey home page Code Monkey logo

dotmatrixjava's Introduction

8x8x8 Led Cube control program

PC control program for generic 8x8x8 3D LED Cube found on eBay (e.g. 3D LightSquared 8x8x8 LED Cube DIY kit, ideasoft, etc.)

Program view

  • Written in Java (requires Java RE, download here: http://java.com)
  • Supports direct animation playback through Serial/UART interface (rxtx library)
  • Various GUI usability enhancements
Firmware

This program can control any packet format compatible LED cube (see below). Example firmware of a compatible LED cube with an STC12C5A60S2 MCU can be found here: Source Code

Using the program
  • Run run_x32.bat for 32-bit Windows
  • Run run_x64.bat for 64-bit Windows

Check this YouTube video for example: https://youtu.be/UplJi7pdV_Y Using program

LED Cube control packet format

8x8x8 LED Cubes that support below packet format can be controlled with the program via Serial console or other MCU such as an Atmega/Arduino. Example UART/Serial packet (in hex):

F2
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
00 00 00 00 00 00 00 FF
  • F2 - denotes packet header (aka. batch update)
  • next 64 bytes - (8x8x8 bits) of LED light states
    • one byte - controls a LED row (8 LEDs)
    • can be any value in range: 00-FF (i.e. 00 - all 8 LEDs in row are off, FF - all 8 LEDs are on)
    • a single line (e.g. 00 00 00 00 00 00 00 FF) denotes a 64 LED layer

Implementation note: to save energy/current consumption only a single layer (64 LEDs) in a LED cube is ON at one time. This is done for all layers and so fast (using a hardware timer), that the human eye does not recognize this. This hack allows to view the cube (all layers) as fully lit.

dotmatrixjava's People

Contributors

aguegu avatar tomazas avatar

Watchers

Terry Tan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.