MiniPOV3 used for MAKE 3x3x3 LED Cube

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
./^\.ace./^\.
 
Posts: 4
Joined: Sat Apr 19, 2008 7:26 pm

MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by ./^\.ace./^\. »

Is any one else using a MiniPOV3 for the fun make project?
If so I would like help with the code and like to see what kind of sequences are out there... :D

rabbidator
 
Posts: 18
Joined: Mon Dec 03, 2007 9:06 am

Post by rabbidator »

I have made one 3x3x3 on prototyping board by MiniPov schematic, but with main firmware i can't help, i'm green in this, only with sequences codes a little.

User avatar
./^\.ace./^\.
 
Posts: 4
Joined: Sat Apr 19, 2008 7:26 pm

Post by ./^\.ace./^\. »

I have made a few different sequences but I have a problem when I rename the .c file...
I used the Ledcubetest.c file and replaces the sequence and then renamed it Ledcubetest2.c and it will make the hex just fine but it won't write to the chip...
I am also looking for a way to loop the code...
ANy ideas?

rabbidator
 
Posts: 18
Joined: Mon Dec 03, 2007 9:06 am

Post by rabbidator »

I have no problem renaming *.c file.
May you post avr output with writting to the chip error.

User avatar
./^\.ace./^\.
 
Posts: 4
Joined: Sat Apr 19, 2008 7:26 pm

Post by ./^\.ace./^\. »

I have tried time and again, and all that happens is that AVRdude doesn't find the new .hex file...
It says file or directory not found...
Any idea why?

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Post by Franklin97355 »

Ace, what are you using to recompile the code?

User avatar
./^\.ace./^\.
 
Posts: 4
Joined: Sat Apr 19, 2008 7:26 pm

Post by ./^\.ace./^\. »

What do you mean?
The .c code? I'm using notepad for that...

david123
 
Posts: 5
Joined: Wed Oct 07, 2009 3:36 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by david123 »

Hi,

i made such a led-cube (with the instructions from the makezine-articel) too and i need help.

I have the Problem that i cant program the attiny2313 cause avrdude can not find the inputfile.
The following code shows what i made at the commandpanel:


C:\ledcube>make program-ledcube.c
avrdude -p attiny2313 -P com1 -c dasa -U flash:w:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.12s

avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file ""
avrdude: error opening : No such file or directory
avrdude: input file auto detected as invalid format
avrdude: can't open input file : No such file or directory
avrdude: write to file '' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.


What does it mean?

Greetings David from germany (sorry for my bad english)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by adafruit »

are you SURE that make program-ledcube.c is the right command?

david123
 
Posts: 5
Joined: Wed Oct 07, 2009 3:36 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by david123 »

Hi,

that is what written in the instructions from the makezine-pdf:

Download and unzip this file: http://cachefly.oreilly.com/make/LEDcube.zip

In this folder are 3 files. Makefile is the program that lets you program the
chip and ledcube.c and ledcubetest.c are both firmware to load onto the chip
with different animations. Ledcube.c is the animation that you can see in the
video and ledcubetest.c is a program that turns each LED on one at a time in
turn.

In windows, in the software’s command window you’ll type: make
ledcube.hex

Then you type in: make program-ledcube.c


[...]
i have typed make ledcube.hex before
I have put this 3 (unzipped) files in c:/windows/ledcube

I think i soldered my minipov well- it shouldnt be the problem.



----

i soldered a status-led at the free little holes for a sensor at the top of the minipov- could it be the problem?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by adafruit »

something is wrong with the files, not the kit, you didnt unzip them or you're not in the right location.

david123
 
Posts: 5
Joined: Wed Oct 07, 2009 3:36 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by david123 »

mmmh, dont know- i downloadet it again and unzipped it with sevenzip in the folder:

c:/ledcube/

but its the same result like before.

Other Infos:
I use
Win XP
WinAVR-20090313

here is every step i did:

unzipping ledcube.zip

in the folder c:/ledcube are before compiling the following files:
-DS_STORE-Datei
-ledcube.c
-ledcubetest.c
-makefile

BANNED:


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Dokumente und Einstellungen\anderswo>cd c:\

C:\>cd ledcube

C:\ledcube>make ledcube.hex

Compiling: ledcube.c
avr-gcc -c -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototype
s -DF_CPU=8000000 -Wa,-adhlns=ledcube.lst -mmcu=attiny2313 -std=gnu99 ledcube.c -o ledcube.o

Linking: ledcube.elf
avr-gcc -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototype
s -DF_CPU=8000000 -Wa,-adhlns=ledcube.o -mmcu=attiny2313 -std=gnu99 ledcube.o --output ledcube.elf -Wl,-Map=.map,--cref

Creating load file for Flash: ledcube.hex
avr-objcopy -O ihex -R .eeprom ledcube.elf ledcube.hex
rm ledcube.o ledcube.elf

C:\ledcube>make program-ledcube.c
avrdude -p attiny2313 -P com1 -c dasa -U flash:w:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file ""
avrdude: error opening : No such file or directory
avrdude: input file auto detected as invalid format
avrdude: can't open input file : No such file or directory
avrdude: write to file '' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.

make: *** [program-ledcube.c] Error 1

C:\ledcube>


in the folder c:/ledcube are after compiling the following files:
-DS_STORE-Datei
-ledcube.c
-ledcubetest.c
-makefile
-.map
-ledcube.hex
-ledcube.lst

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by adafruit »

avrdude -p attiny2313 -P com1 -c dasa -U flash:w:ledcube.hex

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by mtbf0 »

make program-ledcube

not

make program-ledcube.c

david123
 
Posts: 5
Joined: Wed Oct 07, 2009 3:36 pm

Re: MiniPOV3 used for MAKE 3x3x3 LED Cube

Post by david123 »

thaaaank ladyada and mtbf0, yes that was the problem- not make program-ledcube.c but make program-ledcube

wow great :-)
big thanks for ur help again.

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”