tomazas / ledcube8x8x8 Goto Github PK
View Code? Open in Web Editor NEW8x8x8 3D LED Cube source code
License: MIT License
8x8x8 3D LED Cube source code
License: MIT License
PS: what are the other 2 files in the firmware v2 directory?
Hello @tomazas!
I assembled an iCubeSmart 8x8x8 cube from Amazon. It has the same chip type as in the tutorial (STC12C5A60S2).
Everything worked after assembly, so I then wanted to be able to control it from USB terminal.
I tried following the tutorial, but when I try to Download or Re-Program, it gets stuck on "Checking target MCU ...", and the CH340 USB Serial just flickers trying to flash.
I also tried both RX to TX and RX to RX, but it won't recognize the cube.
I also have the correct drivers installed:
Do you know what I'm doing wrong?
I'm having issues with the mapping of the cube LEDs.
Reproduction steps:
I successfully flash firmware/v2/ledcube8.hex.
After flashing, all the LEDs are on.
I run DotMatrix Java at 19200 Baud and successfully connect to the Cube.
I send the following packet, which turns all the LEDs OFF (this packet is supposed to turn them ON):
0xf2,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
If it helps, I have both the schematic design and original firmware .hex file that the cube came with.
4-Schematic Diagram.pdf
GitHub won't allow attaching the .hex file as a comment, so I might just perform a pull request if needed.
The SHA1sum of the .hex file is 8c4ec84be90ccda53cdd21a5898db66ac214aa05.
The Letoo 3D8 software program saves the files as a .gpro8 type:
All these files were supplied via a link from the seller:
https://drive.google.com/file/d/1a62NuU_QtyUHD0oo4XSAAWj_dZoWQHCB
I also tried uploading the firmware/8X8X8X.hex file, which does show some animations, but ultimately, I think the firmware might need to be modified to support this motherboard.
How to connect the led cube after flashing the firmware or hex file to an arduino and control it without the help of pc
Hello,
I am trying to use your Project to control my 8x8x8 singel colored (blue) cube.
The Cube im using: https://www.amazon.de/gp/aw/d/B084LLW3MP/ref=sspa_mw_detail_2?ie=UTF8&psc=1&sp_csd=d2lkZ2V0TmFtZT1zcF9waG9uZV9kZXRhaWwp13NParams
The cube is working fine when downloading animations with the given program.
When clicking on check MCU in the downloader program also says that the MCU type is STC12C5A60S2.
I have installed the firmware (ledcube8.hex) which worked fine.
Pins Connected:
I am facing the following problems:
First I tried it through this program: https://github.com/Sliicy/8x8x8-LED which is also based on your code...
It results pretty much in the same problems. Animations in general make no sense/are displayed wrong.
I have set the serialPort like this:
serialPort.BaudRate = 19200;
serialPort.DataBits = 8;
serialPort.StopBits = StopBits.One;
serialPort.Parity = Parity.None;
And the cube:
Cube cube = new Cube(8, 8, 8);
cube.type = CubeType.Monochrome;
Cube off (results in cube turning all leds off...):
cube.Clear(CubeColor.White);
SerialHelper.Send(serialPort, cube);
Thanks a lot for your work on the project! I was hoping to find something like this earlier or later.
Hi helpful people,
I was trying to flash my cube with your firmware under ledcube8x8x8/firmware/v2/ledcube8.hex using stcgal on my linux machine.
I ran:
stcgal -P stc12 <path_to>/ledcube8.hex
The output I got:
Waiting for MCU, please cycle power: done
Protocol detected: stc12
Target model:
Name: STC12C5A60S2
Magic: D17E
Code flash: 60.0 KB
EEPROM flash: 2.0 KB
Target frequency: 23.962 MHz
Target BSL version: 7.1I
Target options:
reset_pin_enabled=True
low_voltage_reset=False
oscillator_stable_delay=32768
por_reset_delay=long
clock_gain=high
clock_source=external
watchdog_por_enabled=False
watchdog_stop_idle=True
watchdog_prescale=256
eeprom_erase_enabled=False
bsl_pindetect_enabled=False
Loading flash: I/O error: invalid Intel HEX file (Invalid line start character (60))
Disconnected!
Any idea what could be causing this? Thank you!
Can you please explain about the uart and arduino code for this cube
Hello,
i bought a cube, did the soldering, did quick test one row, 3 led permanently on, no blinking. I thought i mess with the soldering, i bought a second cube, still same problem.
I find out it is a common issue for non programmed chip, i ends up on this page.
I've managed to follow your guide and reprogrammed the chip, all looks exactly how you show, i did the 1st part with stc-isp-15xx-v6.86R software.
Although the one row quick test now blinks only 1st and 8th led, nothing else, on both kits, i've tried reprogramming with 2 different laptop, same result.
Please do you have any clue about what could be the cause?
Thanks and regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.