cube not working

The "Cube4" is a 4x4x4 RGB LED cube with an Arduino Leonardo compatible onboard controller. [Product page]
Post Reply
crutchy
Posts: 3
Joined: Fri Aug 14, 2015 10:05 am

cube not working

Post by crutchy » Fri Aug 14, 2015 10:28 am

hi,
I have just built the 4x4x4 cube it was working fine doing its pre-programed thing until I tried to upload doubleCube sketch from downloaded examples file it then stopped the green light under cube flashed my computer then froze till I removed usb, it will not do anything now. I have tried pressing reset under the cube but no luck

when I try to verify sketch from downloaded examples this is the message I get at bottom of the IDE program

Build options changed, rebuilding all

DoubleCube.ino:11:18: fatal error: Cube.h: No such file or directory
compilation terminated.
Error compiling.

and

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI



C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI C:\Users\AMBZN_~1.CRU\AppData\Local\Temp\build3654401561101992947.tmp\RainStorm.cpp -o C:\Users\AMBZN_~1.CRU\AppData\Local\Temp\build3654401561101992947.tmp\RainStorm.cpp.o

RainStorm.ino:9:18: fatal error: Cube.h: No such file or directory
compilation terminated.
Error compiling.





Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Leonardo"

Build options changed, rebuilding all

Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI



C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Leonardo" -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI C:\Users\AMBZN_~1.CRU\AppData\Local\Temp\build3654401561101992947.tmp\RainStorm.cpp -o C:\Users\AMBZN_~1.CRU\AppData\Local\Temp\build3654401561101992947.tmp\RainStorm.cpp.o

RainStorm.ino:9:18: fatal error: Cube.h: No such file or directory
compilation terminated.
Error compiling.



and when I go to serial monitor and send command "help;" it also freezes up until I remove USB instead of giving me the list of commands

any ideas what I am doing wrong?

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: cube not working

Post by andrew » Sat Aug 15, 2015 1:52 am

Looks the like the Cube library has not installed properly.
Let's try again.
Download:
https://github.com/freetronics/Cube4/archive/master.zip

Rename the .zip file to
cube.zip

In the Arduino IDE
Sketch>Include Library>Add .zip library...

and navigate to your cube.zip file.
After a short moment the IDE will have installed the library.
Ensure the board type is set to Arduino Leonardo and try again.

crutchy
Posts: 3
Joined: Fri Aug 14, 2015 10:05 am

Re: cube not working

Post by crutchy » Sat Aug 15, 2015 3:20 am

but when I press reset should it not go back to original program set on the cube?

crutchy
Posts: 3
Joined: Fri Aug 14, 2015 10:05 am

Re: cube not working

Post by crutchy » Sat Aug 15, 2015 3:33 am

That was the problem, I must have erased original program on cube somehow. thank you for the help

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: cube not working

Post by andrew » Sat Aug 15, 2015 10:03 am

No worries. If you have any more questions let us know.

yatto
Posts: 5
Joined: Wed Jan 06, 2016 3:58 pm

Re: cube not working

Post by yatto » Wed Jan 06, 2016 4:04 pm

I have a similar problem, the test pattern was working well then after trying to load a sketch now I have no activity on my cube. I tried the suggestion above but get the following error

Arduino: 1.6.7 (Windows 10), Board: "Arduino Leonardo"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Josh\AppData\Local\Arduino15\packages" -hardware "C:\Users\Josh\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Josh\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Josh\Documents\Arduino\libraries" -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10607 -build-path "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\Josh\AppData\Local\Arduino15\packages" -hardware "C:\Users\Josh\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\Josh\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\Josh\Documents\Arduino\libraries" -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10607 -build-path "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\Documents\Arduino\libraries\Cube4\Cube.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\Documents\Arduino\libraries\Cube4\engine.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\Documents\Arduino\libraries\Cube4\graphics.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\Documents\Arduino\libraries\Cube4\parser.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\Documents\Arduino\libraries\Cube4\serial.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "C:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI\SPI.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp" -o "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino5/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\variants\leonardo" "-IC:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI" "-IC:\Users\Josh\Documents\Arduino\libraries\Cube4" "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp" -o "C:\Users\Josh\AppData\Local\Temp\buildacaf94c9bfb0ca40d139b25e6da4b255.tmp\sketch\sketch_jan07b.ino.cpp.o"
In file included from C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino:6:0:

C:\Users\Josh\Documents\Arduino\libraries\Cube4/serial.h:14:19: error: redefinition of 'const byte NUL'

static const byte NUL = 0x00; // Null character

^

In file included from C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino:5:0:

C:\Users\Josh\Documents\Arduino\libraries\Cube4/parser.h:11:19: error: 'const byte NUL' previously defined here

static const byte NUL = 0x00; // Null character

^

In file included from C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino:6:0:

C:\Users\Josh\Documents\Arduino\libraries\Cube4/serial.h:20:19: error: redefinition of 'const byte SPACE'

static const byte SPACE = 0x20; // Space bar

^

In file included from C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino:5:0:

C:\Users\Josh\Documents\Arduino\libraries\Cube4/parser.h:12:19: error: 'const byte SPACE' previously defined here

static const byte SPACE = 0x20; // Space bar

^

In file included from C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino:6:0:

C:\Users\Josh\Documents\Arduino\libraries\Cube4/serial.h:22:19: error: redefinition of 'const byte RBRAC'

static const byte RBRAC = 0x29; // Right bracket ')'

^

In file included from C:\Users\Josh\Documents\Arduino\sketch_jan07b\sketch_jan07b.ino:5:0:

C:\Users\Josh\Documents\Arduino\libraries\Cube4/parser.h:13:19: error: 'const byte RBRAC' previously defined here

static const byte RBRAC = 0x29; // Right bracket ')'

^

Using library Cube4 in folder: C:\Users\Josh\Documents\Arduino\libraries\Cube4 (legacy)
Using library SPI at version 1.0 in folder: C:\Users\Josh\Documents\Arduino\hardware\arduino\avr\libraries\SPI
exit status 1
Error compiling.

yatto
Posts: 5
Joined: Wed Jan 06, 2016 3:58 pm

Re: cube not working

Post by yatto » Wed Jan 06, 2016 4:31 pm

Disregard my last, not sure how but I got it working

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: cube not working

Post by andrew » Wed Jan 06, 2016 9:35 pm

yatto wrote:Disregard my last, not sure how but I got it working
No worries :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest