Halp.....

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Halp.....

Post by youeatwaffles »

Hello, I'm new to programing and using BANNED prompt and such.I bought the mini pov3 kit from adafruit to learn more about progrming and i'm going to make an led cube out of it. I have already written a schaweet code for it, now all I have to do is put it on the chip. I have not the slightest idea of how to do this I have done a little googleing with no sucess.I was also wondering what a makefile is or how to get one?I have downloaded avrdude. I would appreciate any help,thanks. :D

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

Re: Halp.....

Post by adafruit »


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

Re: Halp.....

Post by mtbf0 »

download the minipov firmware. there is a makefile included. if your source file is called foo.c, you can add a line

Code: Select all

program-foo: foo.hex
amongst the similar looking lines in the makefile and you will then be able to compile, link and load your program by entering

Code: Select all

make program-foo
at the command line. you will want your source file to be in the same directory as the makefile and you will need to be in that directory when you enter the make command.

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

That's the first place I looked, but thanks.

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

mtbf0 wrote:download the minipov firmware. there is a makefile included. if your source file is called foo.c, you can add a line

Code: Select all

program-foo: foo.hex
amongst the similar looking lines in the makefile and you will then be able to compile, link and load your program by entering

Code: Select all

make program-foo
at the command line. you will want your source file to be in the same directory as the makefile and you will need to be in that directory when you enter the make command.
it wouldnt let me post the screenshots but they are here

http://i910.photobucket.com/albums/ac30 ... mdfail.jpg

http://i910.photobucket.com/albums/ac30 ... povbin.jpg

Thank you for helping me (i'm a true rookie at this) :D
Do I have to tell it to look in the port?How would I do that?(I read how to find the port on this site, I did find it but I didn't know what to do with it. :lol:

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

Re: Halp.....

Post by adafruit »

you have to be editing the makefile
you should have edited the makefile ANYWAYS just to get it to work
did you go through the minipov3 instructions & customization tutorial?

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

adafruit wrote:you have to be editing the makefile
you should have edited the makefile ANYWAYS just to get it to work
did you go through the minipov3 instructions & customization tutorial?
I re-did it again and it turns out that I didn't install the right stuff but I still am a bit confused.
http://i910.photobucket.com/albums/ac30 ... rmware.jpg (I think those are all of the files)

http://i910.photobucket.com/albums/ac30 ... s/code.jpg

I made a code already so I essentially highlight the old code and copy/paste in the new one? then entering "del mypov.hex" then "make mypov.hex" then "make program-mypov"?

Again thank you so much for your help :D

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

Re: Halp.....

Post by adafruit »

use wordpad not notepad
please just go through and follow the instructions on the site :)

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

adafruit wrote:use wordpad not notepad
please just go through and follow the instructions on the site :)
LOL I didn't even know I had word pad :lol: (nooooooooooooooooob)

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

Ok I think this could be it I made this code with a genarator. http://i910.photobucket.com/albums/ac30 ... mcode2.jpg

If you can't read it here is an example of one of the lines (copy paste) { 0b111, 0b111, 0b111, 0b000, 0b000, 0b000, 0b000, 0b000, 0b000, 26426 },
are they OK?or do I have to manually go in and insert "b8" in every line? :?:

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

YAY more problems! :lol: http://i910.photobucket.com/albums/ac30 ... oblems.jpg
None of the lights lit up after I did this

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

Re: Halp.....

Post by mtbf0 »

what's line 34 of your program look like?

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

mtbf0 wrote:what's line 34 of your program look like?
like of my code?or what? :?

youeatwaffles
 
Posts: 40
Joined: Wed Dec 30, 2009 9:22 pm

Re: Halp.....

Post by youeatwaffles »

mtbf0 wrote:what's line 34 of your program look like?
I counted down 34 lines and I think this is it.... http://i910.photobucket.com/albums/ac30 ... line32.jpg

Again thank you so much for all the help :D

charliex
 
Posts: 179
Joined: Sat Nov 28, 2009 5:54 pm

Re: Halp.....

Post by charliex »

as a quick tip: once you've loaded and saved it once with worpad, you can use notepad which has a ctrl+g goto line function, unlike wordpad.

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

Return to “MiniPOV”