Git Product home page Git Product logo

ledcube's Introduction

The software for the Arduino / Ledcube is Free Software, it may be
distributed under the GPL Licence, either version 2, or (at your
option) a later version of the GPL. See the file COPYING for details.

Elements:

ledcube.c - this is the controller software. It is written for the 16
MHz atmega328p Avr microcontroller. There is a Makefile for this - `make
upload` installs the program over USB. `make tty` prepares the serial port.


mk_animation.cc - this generates the animations. Compile with `g++
mk_animation.cc`. The output can be in different formats, --ledpro5 matches
the wiring for the 5x5x5 cube, --ledpro is the protocol for the 11x11x11 (may
still need adjustments for the final wiring). --ledpro can also be used to
pipe to the OpenGL visualisation tool
https://github.com/knielsen/ledcube-viewer. --loop repeats the animation
infinitely.


framerate-control.pl - this program reads the output from mk_animation.cc from
stdin (eg. from a pipe), and sends it to the microcontroller over the serial
port (remember `make tty` to set correct speed etc). It adjusts the framerate
to the nominal 50 frames per second (apart from that, writing the animation
directly to the serial port should also work - just the animation will play
around 50% faster).


Example:

    make upload
    make tty
    ./a.out --ledpro --loop| perl framerate-control.pl

    g++ -g mk_animation.cc && ./a.out --ledpro --loop  | ledcube-viewer --11

-----------------------------------------------------------------------

Ledcube Arduino pinout

SCLK   8
SIN    9
XLAT  10
BLANK 11

FET1    7
FET2    6
FET3    5
FET4    4
FET5    3
FET6   A0
FET7   A1
FET8   A2
FET9   A3
FET10  A4
FET11  A5


Print pinout:

###########
###########
| | | | | |
1 2 3 4 5 6

1: SIN
2: SCLK
3: BLANK
4: XLAT
5: GND
6: VCC


Print:

TLC 1-6 er alle funktionelle.

TLC 6 udgang 12 virker ikke, den virker på benet på chippen, men der
er fejl på lodningen eller noget. Det betyder ikke noget, vi skal ikke
bruge den udgang.

Der er pull-DOWN på BLANK. Det er egentlig forkert, for BLANK er aktiv
høj - det skulle være pull-UP. Men da vi har pull-up på MOSFET'erne så
gør det ikke noget, så slukker vi den vej hvis der ikke kører
kontrolsoftware på Arduinoen.

ledcube's People

Contributors

knielsen avatar

Stargazers

Tom Fleet avatar  avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  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.