Coilgun Power
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Coilgun Power

Microcontroller/Coilgun Ideas and Support
 
Main HomeMain Home  HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 Led cube 5x5x5 programming problem

Go down 
2 posters
AuthorMessage
stuffy




Posts : 1
Join date : 2009-04-04

Led cube 5x5x5 programming problem Empty
PostSubject: Led cube 5x5x5 programming problem   Led cube 5x5x5 programming problem Icon_minitimeSat Apr 04, 2009 8:07 am

Hi there

I recently finished my 5x5x5 cube. I am now having problems with programming it. The major problem is my programming knowledge Crying or Very sad . The original project http://courses.cit.cornell.edu/ee476/FinalProjects/s2008/pae26_rwc28/pae26_rwc28/index.html was made using a ATMEL32 chip. I have used in my project a PIC16F877 and I use PORTB for columns and PORTD for layers wich are the ground controls.

This what they used with ATMEL

// DDRC.0 = Decoder control bit 0 (LSB)
// DDRC.1 = Decoder control bit 1
// DDRC.2 = Decoder control bit 2
// DDRC.3 = Decoder control bit 3
// DDRC.4 = Decoder control bit 4 (MSB)
// DDRC.5 = 25th column
// DDRC.6 = Bit 0 of led ground
// DDRC.7 = Bit 1 of led ground

// DDRB.0 = Bit 2 of led ground
// DDRB.1 = Bit 3 of led ground
// DDRB.2 = Bit 4 of led ground

So with ATMEL PORTC is for columns and 2 of PORTC and PORTB for layers
And the original project has a accelerometer wich I don't have.

I have tried many times to make the code work on my PIC using MPLAB IDE v8.30 but no success. Someone told me that I should "port" the code but I don't know how.

I am desperate to make my cube work because I have worked so much on it. I have attached some important files (code and scheme + pics of the cube)

Can anyone please help me. Crying or Very sad


http://www10.zippyshare.com/v/37924573/file.html -> link to program
http://www10.zippyshare.com/v/27061491/file.html -> link to pic 1
http://www10.zippyshare.com/v/97278940/file.html -> link to pic 2
http://www2.zippyshare.com/v/62045185/file.html -> link to scheme
Back to top Go down
DaveyPocket




Posts : 74
Join date : 2008-04-01

Led cube 5x5x5 programming problem Empty
PostSubject: Quick question   Led cube 5x5x5 programming problem Icon_minitimeThu Apr 09, 2009 2:11 pm

Have you had any experience with programming the PIC16F877, or any sort of microcontroller?

If you've had experience with programming this stuff, try starting off simple; like making the cube flash on and off, just to see if it works.
Back to top Go down
 
Led cube 5x5x5 programming problem
Back to top 
Page 1 of 1
 Similar topics
-
» 4x4x4 or 5x5x5 RGB LED problem.
» juan caires
» Single color 4x4x4 led cube
» questions on a cube
» questions about the 3x3x3 rgb cube

Permissions in this forum:You cannot reply to topics in this forum
Coilgun Power :: PIC Microcontrollers :: LED Cubes-
Jump to: