Giter Site home page Giter Site logo

haiqiangxu / arduino-led-cube Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 372 KB

Software for Arduino Nano to control 3x3x3 and 4x4x4 LED cube

License: GNU General Public License v3.0

C++ 100.00%
visual-studio-code platformio-ide arduino led-controlling leds simon-game

arduino-led-cube's Introduction

Arduino LED Cube project

Software project for Arduino Nano to control 3D LED cubes.

Features

  • Configurable cube size. Right now works for LED cubes 3x3x3 and 4x4x4 configurations
  • Configurable between pattern/effect leds and interactive game
  • Interactive Simon game through joystick

Hardware components used for Led Cube

  • Arduino Nano or compatible
  • Blue 5 mm LED diodes. 64 leds for 4x4x4 cubes and 27 leds for 3x3x3 cubes
  • Resistors 330 ohms. 16 resistors for 4x4x4 cubes and 9 resistors for 3x3x3 cubes
  • Battery or powerbank [ 5V, +2200 mAh ]
  • Optional joystick analog 2-Axis with button for interactive game
  • Optional dip switch to turn on/off the cube
  • Cube structure, up to your imagination. I followed instructions from here

Software structure

The software is splitted into Abstraction Layers so the responsability of each layer are very limited and will make easier the growth and maintenance of the project in a Architectural point of view. Using a objected-oriented language such as C++ accepted by Arduino, makes the implementation closer to this approach.

Dependencies: Needs to have access to Generic-Libraries/lib from this same repository

Arduino-LED-Cube
|--lib
|  |--LC_Game
|  |  |- CLedGame.cpp
|  |  |- CLedGame.h
|  |--LC_Marquee
|  |  |- CLedMarquee.cpp
|  |  |- CLedMarquee.h
|  |--LCLib_Leds
|  |  |- CLeds.cpp
|  |  |- CLeds.h
|--src
|  |- main.cpp
|  |- main.h
|- platformio.ini
Generic-Libraries
|--lib
|  |--Joystick_Lib
|  |--Common_Lib
|--external-libs
|  |--LowerPower

TODO: electrical schematics

Led cube 3x3x3 with joystick for Simon game Led cube 4x4x4
cube_3x3x3 cube_4x4x4

arduino-led-cube's People

Contributors

haiqiangxu avatar

Watchers

 avatar

arduino-led-cube's Issues

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.