项目作者: HaiqiangXu

项目描述 :
Software for Arduino Nano to control 3x3x3 and 4x4x4 LED cube
高级语言: C++
项目地址: git://github.com/HaiqiangXu/Arduino-LED-Cube.git
创建时间: 2018-06-05T07:18:36Z
项目社区:https://github.com/HaiqiangXu/Arduino-LED-Cube

开源协议:GNU General Public License v3.0

下载


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

  1. Arduino-LED-Cube
  2. |--lib
  3. | |--LC_Game
  4. | | |- CLedGame.cpp
  5. | | |- CLedGame.h
  6. | |--LC_Marquee
  7. | | |- CLedMarquee.cpp
  8. | | |- CLedMarquee.h
  9. | |--LCLib_Leds
  10. | | |- CLeds.cpp
  11. | | |- CLeds.h
  12. |--src
  13. | |- main.cpp
  14. | |- main.h
  15. |- platformio.ini
  16. Generic-Libraries
  17. |--lib
  18. | |--Joystick_Lib
  19. | |--Common_Lib
  20. |--external-libs
  21. | |--LowerPower

TODO: electrical schematics

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