Giter VIP home page Giter VIP logo

ledcube8x8x8's People

Contributors

luhujp avatar michaelkn avatar thaumicmekanism avatar tomazas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ledcube8x8x8's Issues

Checking target MCU ... stuck

image
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:
image

Do you know what I'm doing wrong?

Firmware LED mapping issues

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,
image
Cube Off

I kept experimenting with the packets, and found that they all light up on the same column:

image
IMG_20210727_125810

Attempt 3:

image
IMG_20210727_125901

Attempt 4:

image
IMG_20210727_125810

Attempt 5:

image
IMG_20210727_130002

Attempt 6:

image
IMG_20210727_130125

Attempt 7:

image
IMG_20210727_130155

Turning them all "Off":

image
Cube Lit

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:
image

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.
image

Monochrome Cube not working properly

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:

  • TXD and TXD
  • RXD and RXD
  • GND and GND
  • 5V and 5V
    I know on the project page it says I should connect TXD to RXD and RXD to TXD but that didnt work and the other program which I tried (which is also based on your project: https://github.com/Sliicy/8x8x8-LED) did it the same way I have it now...

I am facing the following problems:

  • Colors are 'inverted'?: When I set the cube to turn Black then all LEDs turn on, opposite with white
  • when im trying to draw a plane in black (--> should result in white) the whole cube turns 50% on
  • I am facing no errors when executing my program
    --> any things i draw are displayed wrong...

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.

Getting "invalid Intel HEX file (Invalid line start character (60))" when trying to flash

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!

Still have issues :/

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

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.